er  dev
ERTelescopeDigitizer.h
1 /********************************************************************************
2  * Copyright (C) Joint Institute for Nuclear Research *
3  * *
4  * This software is distributed under the terms of the *
5  * GNU Lesser General Public Licence version 3 (LGPL) version 3, *
6  * copied verbatim in the file "LICENSE" *
7  ********************************************************************************/
8 
9 #ifndef ERTelescopeDigitizer_H
10 #define ERTelescopeDigitizer_H
11 
12 #include <limits>
13 
14 #include "TClonesArray.h"
15 
16 #include "ERDigitizer.h"
17 #include "ERDigi.h"
18 #include "ERTelescopeSetup.h"
19 
20 class ERTelescopeSetup;
21 
23  public:
28  ERTelescopeDigitizer(Int_t verbose);
29  virtual ~ERTelescopeDigitizer() = default;
31  virtual InitStatus Init();
33  virtual void Exec(Option_t* opt);
35  virtual void Finish();
37  virtual void Reset();
39  void SetSiElossThreshold(Float_t th){fSiElossThreshold = th;}
40  void SetSiElossSigma(Float_t sigma) {fSiElossSigma = sigma;}
41  void SetSiTimeSigma(Float_t sigma) {fSiTimeSigma = sigma;}
42  void SetCsIElossThreshold(Float_t th){fCsIElossThreshold = th;}
43  void SetCsIElossSigma(Float_t sigma) {fCsIElossSigma = sigma;}
44  void SetCsITimeSigma(Float_t sigma) {fCsITimeSigma = sigma;}
45 protected:
46  //Input arrays
47  std::map<TString, TClonesArray*> fQTelescopePoints;
48  //Output arrays
49  std::map<TString, TClonesArray*> fQTelescopeDigi;
50  Float_t fSiElossThreshold = 0.;
51  Float_t fSiElossSigma = 0.;
52  Float_t fSiTimeSigma = 0.;
53  Float_t fCsIElossThreshold = 0.;
54  Float_t fCsIElossSigma = 0.;
55  Float_t fCsITimeSigma = 0.;
56 protected:
57  ERDigi* AddDigi(Float_t edep, Double_t time, Int_t stripNb, TString digiBranchName);
58 private:
59  ClassDef(ERTelescopeDigitizer,1)
60 };
61 
62 #endif
virtual InitStatus Init()
Definition: ERDigi.h:15
void SetSiElossThreshold(Float_t th)
virtual void Exec(Option_t *opt)