PandaRoot
BSEmcRingSorter.h
Go to the documentation of this file.
1 /*
2  * BSEmcRingSorter.h
3  */
4 
5 #ifndef BSEMCRINGSORTER_HH
6 #define BSEMCRINGSORTER_HH
7 
8 #include <FairRingSorter.h>
9 
18 template <class T>
19 class BSEmcRingSorter : public FairRingSorter {
20  public:
21  BSEmcRingSorter(Int_t t_size = 100, Double_t t_width = 10) : FairRingSorter(t_size, t_width){};
22  virtual ~BSEmcRingSorter(){};
23 
24  virtual FairTimeStamp *CreateElement(FairTimeStamp *t_data) /*override*/ { return new T(*(dynamic_cast<T *>(t_data))); }
25 
27 };
28 
29 #endif /*BSEMCRINGSORTER_HH*/
virtual FairTimeStamp * CreateElement(FairTimeStamp *t_data)
ClassDef(BSEmcRingSorter, 1)
templated version of a ring sorter
virtual ~BSEmcRingSorter()
BSEmcRingSorter(Int_t t_size=100, Double_t t_width=10)