CMS 3D CMS Logo

HFShowerParam.h
Go to the documentation of this file.
1 #ifndef SimG4CMS_HFShowerParam_h
2 #define SimG4CMS_HFShowerParam_h
3 // File: HFShowerParam.h
5 // Description: Generates hits for HF with some parametrized information
7 
15 
16 #include "G4ThreeVector.hh"
17 
18 class G4Step;
19 
20 #include <TH1F.h>
21 #include <TH2F.h>
22 #include <string>
23 #include <vector>
24 
26 public:
28  const HcalDDDSimConstants* hcons,
29  const HcalSimulationParameters* hps,
30  edm::ParameterSet const& p);
31 
32 public:
33  struct Hit {
34  Hit() {}
35  G4ThreeVector position;
36  int depth;
37  double time;
38  double edep;
39  };
40  std::vector<Hit> getHits(const G4Step* aStep, double weight, bool& isKilled);
41 
42 private:
43  std::unique_ptr<HFShowerLibrary> showerLibrary_;
45  std::unique_ptr<HFGflash> gflash_;
46  bool fillHisto_;
50  std::vector<double> gpar_;
53  TH1F* em_long_sl_;
54  TH2F *em_2d_1_, *em_2d_2_;
55 };
56 
57 #endif // HFShowerParam_h
std::unique_ptr< HFGflash > gflash_
Definition: HFShowerParam.h:45
HFFibre fibre_
Definition: HFShowerParam.h:44
HFShowerParam(const std::string &name, const HcalDDDSimConstants *hcons, const HcalSimulationParameters *hps, edm::ParameterSet const &p)
double aperture_
Definition: HFShowerParam.h:47
TH1F * em_long_sl_
Definition: HFShowerParam.h:53
double attLMeanInv_
Definition: HFShowerParam.h:47
double pePerGeV_
Definition: HFShowerParam.h:47
TH1F * em_long_2_
Definition: HFShowerParam.h:51
Definition: weight.py:1
TH1F * em_long_1_tuned_
Definition: HFShowerParam.h:52
TH1F * em_long_1_
Definition: HFShowerParam.h:51
TH1F * em_long_gflash_
Definition: HFShowerParam.h:52
TH1F * em_lateral_2_
Definition: HFShowerParam.h:51
std::vector< double > gpar_
Definition: HFShowerParam.h:50
std::vector< Hit > getHits(const G4Step *aStep, double weight, bool &isKilled)
TH1F * em_lateral_1_
Definition: HFShowerParam.h:51
G4ThreeVector position
Definition: HFShowerParam.h:35
bool equalizeTimeShift_
Definition: HFShowerParam.h:48
bool parametrizeLast_
Definition: HFShowerParam.h:48
std::unique_ptr< HFShowerLibrary > showerLibrary_
Definition: HFShowerParam.h:43
double ref_index_
Definition: HFShowerParam.h:47