FairRoot/PandaRoot
PndEmcDigiSorterTask.cxx
Go to the documentation of this file.
1 /*
2  * PndEmcDigiSorterTask.cxx
3  */
4 
5 #include <PndEmcDigiSorterTask.h>
6 
7 #include "PndEmcDigi.h"
8 #include "PndEmcDigiRingSorter.h"
9 
10 #include "TClonesArray.h"
11 
13 
15 }
16 
18 }
19 
20 
22 {
23  FairRootManager* ioman = FairRootManager::Instance();
24  TClonesArray* myArray = ioman->GetTClonesArray(fOutputBranch);
25  if (fVerbose > 1){
26  std::cout << "-I- PndEmcDigiSorterTask::AddNewDataToTClonesArray Data: " ;
27  std::cout << *(PndEmcDigi*)(data) << std::endl;
28  }
29  new ((*myArray)[myArray->GetEntries()]) PndEmcDigi(*(PndEmcDigi*)(data));
30 }
31 
32 FairRingSorter* PndEmcDigiSorterTask::InitSorter(Int_t numberOfCells, Double_t widthOfCells) const{
33  return new PndEmcDigiRingSorter(numberOfCells, widthOfCells);
34 }
int fVerbose
Definition: poormantracks.C:24
represents the reconstructed hit of one emc crystal
Definition: PndEmcDigi.h:40
virtual void AddNewDataToTClonesArray(FairTimeStamp *data)
ClassImp(PndEmcDigiSorterTask)
Double_t
virtual FairRingSorter * InitSorter(Int_t numberOfCells, Double_t widthOfCells) const