FairRoot/PandaRoot
PndSdsDigiPixelSorterTask.cxx
Go to the documentation of this file.
1 /*
2  * PndSdsDigiPixelSorterTask.cxx
3  *
4  * Created on: Sep 9, 2011
5  * Author: stockman
6  */
7 
9 
10 #include "PndSdsDigiPixel.h"
12 
13 #include "TClonesArray.h"
14 
16 
18  // TODO Auto-generated constructor stub
19 
20 }
21 
23  // TODO Auto-generated destructor stub
24 }
25 
26 
28 {
29  FairRootManager* ioman = FairRootManager::Instance();
30  TClonesArray* myArray = ioman->GetTClonesArray(fOutputBranch);
31  if (fVerbose > 1){
32  std::cout << "-I- PndSdsDigiPixelSorterTask::AddNewDataToTClonesArray Data: " ;
33  std::cout << *(PndSdsDigiPixel*)(data) << std::endl;
34  }
35  new ((*myArray)[myArray->GetEntries()]) PndSdsDigiPixel(*(PndSdsDigiPixel*)(data));
36 }
37 
38 FairRingSorter* PndSdsDigiPixelSorterTask::InitSorter(Int_t numberOfCells, Double_t widthOfCells) const{
39  return new PndSdsDigiPixelRingSorter(numberOfCells, widthOfCells);
40 }
int fVerbose
Definition: poormantracks.C:24
virtual void AddNewDataToTClonesArray(FairTimeStamp *data)
ClassImp(PndSdsDigiPixelSorterTask)
Double_t
virtual FairRingSorter * InitSorter(Int_t numberOfCells, Double_t widthOfCells) const
Data class to store the digi output of a pixel module.