BmnRoot
Loading...
Searching...
No Matches
BmnEcal.h
Go to the documentation of this file.
1/*************************************************************************************
2 *
3 * Class BmnEcal
4 *
5 * Adopted for BMN by: Elena Litvinenko
6 * e-mail: litvin@nf.jinr.ru
7 * Version: 10-02-2016
8 * Updated: 09-08-2019 by Petr Alekseev <pnaleks@gmail.com>
9 *
10************************************************************************************/
11
12#ifndef BMNECAL_H
13#define BMNECAL_H
14
15#include "BmnEcalPoint.h"
16
17#include "TClonesArray.h"
18#include "TVector3.h"
19#include "TLorentzVector.h"
20#include "FairDetector.h"
21#include "BmnEcalGeoPar.h"
22
23
24class BmnEcal : public FairDetector
25{
26 public:
27
30
31
36 BmnEcal(const char* name, Bool_t active);
37
38
40 virtual ~BmnEcal();
41
42
46 virtual void Initialize();
47
48
56 virtual Bool_t ProcessHits(FairVolume* vol = 0);
57
58
64 virtual void EndOfEvent();
65
66
67 virtual void BeginEvent();
72 virtual void Register();
73
74
76 virtual TClonesArray* GetCollection(Int_t iColl) const;
77
78
83 virtual void Print(Option_t*) const;
84
85
90 virtual void Reset();
91
92
100 virtual void CopyClones(TClonesArray* cl1, TClonesArray* cl2,
101 Int_t offset);
102
103
107 virtual void ConstructGeometry();
108
109 virtual Bool_t CheckIfSensitive(std::string name);
110
116 void SetToFile(Bool_t toFile) { fToFile = toFile; }
117
118 BmnEcalPoint* AddHit(Int_t trackID, Int_t detID, Int_t copyNo, Int_t copyNoMother,
119 TVector3 pos, TVector3 mom,
120 Double_t tof, Double_t length, Double_t eLoss);
121
122 private:
123 Int_t fTrackID;
124 Int_t fVolumeID;
125 TLorentzVector fPos;
126 TLorentzVector fMom;
127 Double32_t fTime;
128 Double32_t fLength;
129 Double32_t fELoss;
130
131 TClonesArray* fEcalCollection;
132
133 Bool_t fToFile = kTRUE;
134
135 BmnEcal(const BmnEcal&) = delete;
136 BmnEcal operator=(const BmnEcal&) = delete;
137
138 ClassDef(BmnEcal,3)
139};
140
141#endif
virtual void ConstructGeometry()
virtual Bool_t CheckIfSensitive(std::string name)
virtual void CopyClones(TClonesArray *cl1, TClonesArray *cl2, Int_t offset)
void SetToFile(Bool_t toFile)
Definition BmnEcal.h:116
virtual void Reset()
BmnEcalPoint * AddHit(Int_t trackID, Int_t detID, Int_t copyNo, Int_t copyNoMother, TVector3 pos, TVector3 mom, Double_t tof, Double_t length, Double_t eLoss)
virtual ~BmnEcal()
virtual void Register()
virtual void Print(Option_t *) const
virtual TClonesArray * GetCollection(Int_t iColl) const
virtual void BeginEvent()
virtual void Initialize()
virtual Bool_t ProcessHits(FairVolume *vol=0)
virtual void EndOfEvent()
BmnEcal(const char *name, Bool_t active)