PandaRoot
BSEmcRingSorter.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  * BSEmcRingSorter.h
15  */
16 
17 #ifndef BSEMCRINGSORTER_HH
18 #define BSEMCRINGSORTER_HH
19 
20 #include <FairRingSorter.h>
21 
30 template <class T>
31 class BSEmcRingSorter : public FairRingSorter {
32  public:
33  BSEmcRingSorter(Int_t t_size = 100, Double_t t_width = 10) : FairRingSorter(t_size, t_width){};
34  virtual ~BSEmcRingSorter(){};
35 
36  virtual FairTimeStamp *CreateElement(FairTimeStamp *t_data) /*override*/ { return new T(*(dynamic_cast<T *>(t_data))); }
37 
39 };
40 
41 #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)