FairRoot/PandaRoot
PndSttHitSorterTask.cxx
Go to the documentation of this file.
1 /*
2  * PndSttHitSorterTask.cxx
3  *
4  * Created on: Sep 9, 2011
5  * Author: stockman
6  */
7 
8 #include <PndSttHitSorterTask.h>
9 
10 #include "PndSttHit.h"
11 #include "PndSttHitRingSorter.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- PndSttHitSorterTask::AddNewDataToTClonesArray Data: " ;
33  std::cout << *(PndSttHit*)(data) << std::endl;
34  }
35  new ((*myArray)[myArray->GetEntries()]) PndSttHit(*(PndSttHit*)(data));
36 }
37 
38 FairRingSorter* PndSttHitSorterTask::InitSorter(Int_t numberOfCells, Double_t widthOfCells) const{
39  return new PndSttHitRingSorter(numberOfCells, widthOfCells);
40 }
int fVerbose
Definition: poormantracks.C:24
virtual void AddNewDataToTClonesArray(FairTimeStamp *data)
Double_t
ClassImp(PndSttHitSorterTask)
virtual FairRingSorter * InitSorter(Int_t numberOfCells, Double_t widthOfCells) const