CbmRoot
CbmTrdModuleRec.cxx
Go to the documentation of this file.
1 #include "CbmTrdModuleRec.h"
2 
3 #include <TClonesArray.h>
4 
5 //_______________________________________________________________________________
8  , fCalled(0)
9  , fClusters(new TClonesArray("CbmTrdCluster", 100))
10  , fHits(new TClonesArray("CbmTrdHit", 100)) {}
11 
12 //_______________________________________________________________________________
13 CbmTrdModuleRec::CbmTrdModuleRec(Int_t mod, Int_t ly, Int_t rot)
14  : CbmTrdModuleAbstract(mod, ly, rot)
15  , fCalled(0)
16  , fClusters(new TClonesArray("CbmTrdCluster", 100))
17  , fHits(new TClonesArray("CbmTrdHit", 100)) {}
18 
19 //_______________________________________________________________________________
21  if (fHits) {
22  fHits->Delete();
23  delete fHits;
24  }
25  if (fClusters) {
26  fClusters->Delete();
27  delete fClusters;
28  }
29 }
30 
31 //_______________________________________________________________________________
32 void CbmTrdModuleRec::Clear(Option_t* opt) {
33  fCalled++;
34  if (strcmp(opt, "hit") == 0 && fHits) fHits->Clear();
35  if (strcmp(opt, "cls") == 0 && fClusters) fClusters->Clear();
36 }
37 
CbmTrdModuleRec
Abstract class for module wise cluster finding and hit reconstruction.
Definition: CbmTrdModuleRec.h:16
CbmTrdModuleRec::CbmTrdModuleRec
CbmTrdModuleRec()
Default constructor.
Definition: CbmTrdModuleRec.cxx:6
ClassImp
ClassImp(CbmConverterManager) InitStatus CbmConverterManager
Definition: CbmConverterManager.cxx:12
CbmTrdModuleRec::fClusters
TClonesArray * fClusters
module wise storage of reconstructed cluster
Definition: CbmTrdModuleRec.h:66
CbmTrdModuleRec.h
CbmTrdModuleAbstract
Abstract class for TRD module.
Definition: CbmTrdModuleAbstract.h:18
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