CbmRoot
CbmTrdModuleRec.h
Go to the documentation of this file.
1 #ifndef CBMTRDMODULEREC_H
2 #define CBMTRDMODULEREC_H
3 
4 #include "CbmTrdModuleAbstract.h"
5 
6 #include <map>
7 #include <vector>
8 
9 class CbmTrdDigi;
10 class CbmTrdCluster;
11 class CbmTrdHit;
12 class TClonesArray;
17 public:
25  CbmTrdModuleRec(Int_t mod, Int_t ly = -1, Int_t rot = 0);
26 
27  virtual ~CbmTrdModuleRec();
28 
32  virtual Bool_t AddDigi(const CbmTrdDigi* /*d*/, Int_t /*id*/) {
33  return kTRUE;
34  }
38  virtual void Clear(Option_t* opt = "");
42  virtual Bool_t Finalize() { return kTRUE; }
46  virtual Int_t FindClusters() = 0;
47  virtual Int_t GetOverThreshold() const { return 0; }
48  virtual TClonesArray* GetClusters() { return fClusters; }
49  virtual const TClonesArray* GetClusters() const { return fClusters; }
50  virtual TClonesArray* GetHits() { return fHits; }
51  virtual const TClonesArray* GetHits() const { return fHits; }
52 
56  virtual Bool_t MakeHits() = 0;
60  virtual CbmTrdHit* MakeHit(Int_t cId,
61  const CbmTrdCluster* c,
62  std::vector<const CbmTrdDigi*>* digis) = 0;
63 
64 protected:
65  UInt_t fCalled;
66  TClonesArray* fClusters;
67  TClonesArray* fHits;
68 
69 private:
72 
73  ClassDef(CbmTrdModuleRec, 1)
74 };
75 #endif
CbmTrdModuleRec::MakeHits
virtual Bool_t MakeHits()=0
Steering routine for building hits.
CbmTrdModuleRec::AddDigi
virtual Bool_t AddDigi(const CbmTrdDigi *, Int_t)
Add digi to local module.
Definition: CbmTrdModuleRec.h:32
CbmTrdModuleRec::MakeHit
virtual CbmTrdHit * MakeHit(Int_t cId, const CbmTrdCluster *c, std::vector< const CbmTrdDigi * > *digis)=0
Steering routine for converting cluster to hit.
CbmTrdModuleRec::GetHits
virtual const TClonesArray * GetHits() const
Definition: CbmTrdModuleRec.h:51
CbmTrdHit
data class for a reconstructed Energy-4D measurement in the TRD
Definition: CbmTrdHit.h:35
CbmTrdModuleRec
Abstract class for module wise cluster finding and hit reconstruction.
Definition: CbmTrdModuleRec.h:16
CbmTrdModuleRec::CbmTrdModuleRec
CbmTrdModuleRec()
Default constructor.
Definition: CbmTrdModuleRec.cxx:6
CbmTrdCluster
Data Container for TRD clusters.
Definition: CbmTrdCluster.h:23
CbmTrdModuleRec::Finalize
virtual Bool_t Finalize()
Reconstruct physics observables on hits.
Definition: CbmTrdModuleRec.h:42
CbmTrdModuleRec::GetHits
virtual TClonesArray * GetHits()
Definition: CbmTrdModuleRec.h:50
CbmTrdModuleRec::GetClusters
virtual TClonesArray * GetClusters()
Definition: CbmTrdModuleRec.h:48
CbmTrdModuleRec::CbmTrdModuleRec
CbmTrdModuleRec(const CbmTrdModuleRec &ref)
CbmTrdModuleRec::GetOverThreshold
virtual Int_t GetOverThreshold() const
Definition: CbmTrdModuleRec.h:47
CbmTrdModuleAbstract.h
CbmTrdModuleRec::fClusters
TClonesArray * fClusters
module wise storage of reconstructed cluster
Definition: CbmTrdModuleRec.h:66
CbmTrdModuleAbstract
Abstract class for TRD module.
Definition: CbmTrdModuleAbstract.h:18
CbmTrdModuleRec::GetClusters
virtual const TClonesArray * GetClusters() const
Definition: CbmTrdModuleRec.h:49
CbmTrdDigi
Definition: CbmTrdDigi.h:14
CbmTrdModuleRec::operator=
const CbmTrdModuleRec & operator=(const CbmTrdModuleRec &ref)
CbmTrdModuleRec::~CbmTrdModuleRec
virtual ~CbmTrdModuleRec()
Definition: CbmTrdModuleRec.cxx:20
CbmTrdModuleRec::Clear
virtual void Clear(Option_t *opt="")
Clear local storage.
Definition: CbmTrdModuleRec.cxx:32
CbmTrdModuleRec::fHits
TClonesArray * fHits
module wise storage of reconstructed hits
Definition: CbmTrdModuleRec.h:67
CbmTrdModuleRec::fCalled
UInt_t fCalled
counter for the number of calls
Definition: CbmTrdModuleRec.h:65
CbmTrdModuleRec::FindClusters
virtual Int_t FindClusters()=0
Steering routine for finding digits clusters.