PandaRoot
PndEmcClusterSorterTask.h
Go to the documentation of this file.
1 //****************************************************************************
2 //* This file is part of PandaRoot. *
3 //* *
4 //* PandaRoot is distributed under the terms of the *
5 //* GNU General Public License (GPL) version 3, *
6 //* copied verbatim in the file "LICENSE". *
7 //* *
8 //* Copyright (C) 2006 - 2024 FAIR GmbH and copyright holders of PandaRoot *
9 //* The copyright holders are listed in the file "COPYRIGHTHOLDERS". *
10 //* The authors are listed in the file "AUTHORS". *
11 //****************************************************************************
12 
13 /*
14  * PndEmcClusterSorterTask.h
15  */
16 
17 #ifndef PNDEMCCLUSTERSORTERTASK_H_
18 #define PNDEMCCLUSTERSORTERTASK_H_
19 
20 #include <FairRingSorterTask.h>
21 #include <FairRingSorter.h>
22 #include <FairRootManager.h>
23 
24 class PndEmcClusterSorterTask : public FairRingSorterTask {
25  public:
27  PndEmcClusterSorterTask(const char *name) : FairRingSorterTask(name){};
28  PndEmcClusterSorterTask(Int_t numberOfCells, Double_t widthOfCells, TString inputBranch, TString outputBranch, TString folderName)
29  : FairRingSorterTask(numberOfCells, widthOfCells, inputBranch, outputBranch, folderName)
30  {
31  FairRootManager::Instance()->GetObject(inputBranch);
32  };
33 
34  virtual ~PndEmcClusterSorterTask();
35 
36  virtual void AddNewDataToTClonesArray(FairTimeStamp *data);
37  virtual FairRingSorter *InitSorter(Int_t numberOfCells, Double_t widthOfCells) const;
38 
39  void SetClusterType(Int_t type = 0) { fClusterType = type; };
40 
41  private:
42  Int_t fClusterType = 0;
43 
44  ClassDef(PndEmcClusterSorterTask, 1);
45 };
46 
47 #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