CMS 3D CMS Logo

HcalQie.h
Go to the documentation of this file.
1 #ifndef SimG4CMS_Calo_HcalQie_H
2 #define SimG4CMS_Calo_HcalQie_H
3 // File: HcalQie.h
5 // Qie simulation for HCal hits
7 
11 
12 #include <vector>
13 
14 namespace CLHEP {
15  class HepRandomEngine;
16 }
17 
18 class HcalQie {
19 public:
20  HcalQie(edm::ParameterSet const& p);
21  virtual ~HcalQie();
22 
23  std::vector<int> getCode(int, const std::vector<CaloHit>&, CLHEP::HepRandomEngine*);
24  double getEnergy(const std::vector<int>&);
25 
26 private:
27  std::vector<double> shape();
28  std::vector<int> code();
29  std::vector<double> charge();
30  std::vector<double> weight(int binofmax, int mode, int npre, int numbucket);
31  double codeToQ(int ic);
32  int getCode(double charge);
33  double getShape(double time);
34 
35 private:
36  std::vector<double> shape_;
37  std::vector<int> code_;
38  std::vector<double> charge_;
40  std::vector<double> weight_;
42  int bmin_, bmax_;
43  double phase_, rescale_;
44 };
45 
46 #endif
HcalQie::charge_
std::vector< double > charge_
Definition: HcalQie.h:38
MessageLogger.h
HcalQie::codeToQ
double codeToQ(int ic)
Definition: HcalQie.cc:229
HcalQie::charge
std::vector< double > charge()
Definition: HcalQie.cc:182
ALCARECOPromptCalibProdSiPixelAli0T_cff.mode
mode
Definition: ALCARECOPromptCalibProdSiPixelAli0T_cff.py:96
protons_cff.time
time
Definition: protons_cff.py:35
HcalQie::preSamples
int preSamples
Definition: HcalQie.h:39
HcalQie::shape
std::vector< double > shape()
Definition: HcalQie.cc:73
HcalQie::bmin_
int bmin_
Definition: HcalQie.h:42
HcalQie::qToPE
double qToPE
Definition: HcalQie.h:41
HcalQie::sigma
double sigma
Definition: HcalQie.h:41
HcalQie::numOfBuckets
int numOfBuckets
Definition: HcalQie.h:39
HcalQie::code_
std::vector< int > code_
Definition: HcalQie.h:37
HcalQie::bmax_
int bmax_
Definition: HcalQie.h:42
HcalQie::code
std::vector< int > code()
Definition: HcalQie.cc:159
HcalQie::HcalQie
HcalQie(edm::ParameterSet const &p)
Definition: HcalQie.cc:18
HcalQie::eDepPerPE
double eDepPerPE
Definition: HcalQie.h:41
CLHEP
Definition: CocoaGlobals.h:27
HcalQie::rescale_
double rescale_
Definition: HcalQie.h:43
edm::ParameterSet
Definition: ParameterSet.h:47
AlCaHLTBitMon_ParallelJobs.p
def p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
HcalQie::getCode
std::vector< int > getCode(int, const std::vector< CaloHit > &, CLHEP::HepRandomEngine *)
Definition: HcalQie.cc:268
HcalQie::phase_
double phase_
Definition: HcalQie.h:43
HcalQie::weight_
std::vector< double > weight_
Definition: HcalQie.h:40
HcalQie::baseline
double baseline
Definition: HcalQie.h:41
HcalQie::getEnergy
double getEnergy(const std::vector< int > &)
Definition: HcalQie.cc:354
HcalQie::shape_
std::vector< double > shape_
Definition: HcalQie.h:36
HcalQie::signalBuckets
int signalBuckets
Definition: HcalQie.h:39
HcalQie::getShape
double getShape(double time)
Definition: HcalQie.cc:259
ParameterSet.h
HcalQie
Definition: HcalQie.h:18
HcalQie::~HcalQie
virtual ~HcalQie()
Definition: HcalQie.cc:71
HcalQie::binOfMax
int binOfMax
Definition: HcalQie.h:39
HcalQie::weight
std::vector< double > weight(int binofmax, int mode, int npre, int numbucket)
Definition: HcalQie.cc:208
CaloHit.h