CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 
20 public:
21 
22  HcalQie(edm::ParameterSet const & p);
23  virtual ~HcalQie();
24 
25  std::vector<int> getCode(int, const std::vector<CaloHit>&, CLHEP::HepRandomEngine*);
26  double getEnergy(const std::vector<int>&);
27 
28 private:
29 
30  std::vector<double> shape();
31  std::vector<int> code();
32  std::vector<double> charge();
33  std::vector<double> weight(int binofmax, int mode, int npre, int numbucket);
34  double codeToQ(int ic);
35  int getCode(double charge);
36  double getShape(double time);
37 
38 private:
39 
40  std::vector<double> shape_;
41  std::vector<int> code_;
42  std::vector<double> charge_;
44  std::vector<double> weight_;
46  int bmin_, bmax_;
47  double phase_, rescale_;
48 
49 };
50 
51 #endif
std::vector< double > shape()
Definition: HcalQie.cc:74
int preSamples
Definition: HcalQie.h:43
virtual ~HcalQie()
Definition: HcalQie.cc:70
double eDepPerPE
Definition: HcalQie.h:45
double codeToQ(int ic)
Definition: HcalQie.cc:252
int bmax_
Definition: HcalQie.h:46
double baseline
Definition: HcalQie.h:45
HcalQie(edm::ParameterSet const &p)
Definition: HcalQie.cc:18
int signalBuckets
Definition: HcalQie.h:43
double getShape(double time)
Definition: HcalQie.cc:285
std::vector< double > weight_
Definition: HcalQie.h:44
double getEnergy(const std::vector< int > &)
Definition: HcalQie.cc:390
std::vector< double > charge()
Definition: HcalQie.cc:195
double qToPE
Definition: HcalQie.h:45
int bmin_
Definition: HcalQie.h:46
double rescale_
Definition: HcalQie.h:47
std::vector< double > charge_
Definition: HcalQie.h:42
std::vector< int > code_
Definition: HcalQie.h:41
double phase_
Definition: HcalQie.h:47
std::vector< int > getCode(int, const std::vector< CaloHit > &, CLHEP::HepRandomEngine *)
Definition: HcalQie.cc:296
int binOfMax
Definition: HcalQie.h:43
std::vector< double > shape_
Definition: HcalQie.h:40
double sigma
Definition: HcalQie.h:45
std::vector< double > weight(int binofmax, int mode, int npre, int numbucket)
Definition: HcalQie.cc:227
std::vector< int > code()
Definition: HcalQie.cc:163
int numOfBuckets
Definition: HcalQie.h:43