PandaRoot
PndEmcClusterSorterTask.h
Go to the documentation of this file.
1 /*
2  * PndEmcClusterSorterTask.h
3  */
4 
5 #ifndef PNDEMCCLUSTERSORTERTASK_H_
6 #define PNDEMCCLUSTERSORTERTASK_H_
7 
8 #include <FairRingSorterTask.h>
9 #include <FairRingSorter.h>
10 #include <FairRootManager.h>
11 
12 class PndEmcClusterSorterTask : public FairRingSorterTask {
13  public:
15  PndEmcClusterSorterTask(const char *name) : FairRingSorterTask(name){};
16  PndEmcClusterSorterTask(Int_t numberOfCells, Double_t widthOfCells, TString inputBranch, TString outputBranch, TString folderName)
17  : FairRingSorterTask(numberOfCells, widthOfCells, inputBranch, outputBranch, folderName)
18  {
19  FairRootManager::Instance()->GetObject(inputBranch);
20  };
21 
22  virtual ~PndEmcClusterSorterTask();
23 
24  virtual void AddNewDataToTClonesArray(FairTimeStamp *data);
25  virtual FairRingSorter *InitSorter(Int_t numberOfCells, Double_t widthOfCells) const;
26 
27  void SetClusterType(Int_t type = 0) { fClusterType = type; };
28 
29  private:
30  Int_t fClusterType = 0;
31 
32  ClassDef(PndEmcClusterSorterTask, 1);
33 };
34 
35 #endif /* PNDEMCCLUSTERSORTERTASK_H_ */
PndEmcClusterSorterTask(const char *name)
virtual ~PndEmcClusterSorterTask()
PndEmcClusterSorterTask(Int_t numberOfCells, Double_t widthOfCells, TString inputBranch, TString outputBranch, TString folderName)
virtual void AddNewDataToTClonesArray(FairTimeStamp *data)
void SetClusterType(Int_t type=0)
virtual FairRingSorter * InitSorter(Int_t numberOfCells, Double_t widthOfCells) const