CbmRoot
Loading...
Searching...
No Matches
CbmTrdModuleRec.h
Go to the documentation of this file.
1/* Copyright (C) 2018-2019 GSI Helmholtzzentrum fuer Schwerionenforschung, Darmstadt
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Florian Uhlig [committer] */
4
5#ifndef CBMTRDMODULEREC_H
6#define CBMTRDMODULEREC_H
7
9
10#include <map>
11#include <vector>
12
13class CbmTrdDigi;
14class CbmTrdCluster;
15class CbmTrdHit;
16class TClonesArray;
21 public:
29 CbmTrdModuleRec(Int_t mod, Int_t ly = -1, Int_t rot = 0);
30
31 virtual ~CbmTrdModuleRec();
32
36 virtual Bool_t AddDigi(const CbmTrdDigi* /*d*/, Int_t /*id*/) { return kTRUE; }
40 virtual void Clear(Option_t* opt = "");
42 virtual Bool_t PreProcessHits() { return kTRUE; }
44 virtual Bool_t PostProcessHits() { return kTRUE; }
48 virtual Int_t FindClusters(bool clr = true) = 0;
49 virtual Int_t GetOverThreshold() const { return 0; }
50 virtual TClonesArray* GetClusters() { return fClusters; }
51 virtual const TClonesArray* GetClusters() const { return fClusters; }
52 virtual TClonesArray* GetHits() { return fHits; }
53 virtual const TClonesArray* GetHits() const { return fHits; }
54
58 virtual Bool_t MakeHits() = 0;
62 virtual CbmTrdHit* MakeHit(Int_t cId, const CbmTrdCluster* c, 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
Data Container for TRD clusters.
data class for a reconstructed Energy-4D measurement in the TRD
Definition CbmTrdHit.h:40
Abstract class for the TRD module It provides access to the basic properties of the chamber as follow...
Abstract class for module wise cluster finding and hit reconstruction.
virtual TClonesArray * GetHits()
virtual ~CbmTrdModuleRec()
virtual const TClonesArray * GetHits() const
virtual void Clear(Option_t *opt="")
Clear local storage.
virtual Bool_t PostProcessHits()
Hit quality assesment.
virtual Int_t GetOverThreshold() const
virtual TClonesArray * GetClusters()
virtual Bool_t PreProcessHits()
Hit quality assesment.
virtual CbmTrdHit * MakeHit(Int_t cId, const CbmTrdCluster *c, std::vector< const CbmTrdDigi * > *digis)=0
Steering routine for converting cluster to hit.
CbmTrdModuleRec()
Default constructor.
UInt_t fCalled
counter for the number of calls
virtual Bool_t AddDigi(const CbmTrdDigi *, Int_t)
Add digi to local module.
const CbmTrdModuleRec & operator=(const CbmTrdModuleRec &ref)
TClonesArray * fClusters
module wise storage of reconstructed cluster
CbmTrdModuleRec(const CbmTrdModuleRec &ref)
virtual Int_t FindClusters(bool clr=true)=0
Steering routine for finding digits clusters.
virtual Bool_t MakeHits()=0
Steering routine for building hits.
TClonesArray * fHits
module wise storage of reconstructed hits
virtual const TClonesArray * GetClusters() const