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  virtual ~HFShowerParam();
32 
33 public:
34  struct Hit {
35  Hit() {}
36  G4ThreeVector position;
37  int depth;
38  double time;
39  double edep;
40  };
41  std::vector<Hit> getHits(const G4Step* aStep, double weight, bool& isKilled);
42 
43 private:
45  std::unique_ptr<HFShowerLibrary> showerLibrary_;
46  std::unique_ptr<HFFibre> fibre_;
47  std::unique_ptr<HFGflash> gflash_;
48  bool fillHisto_;
52  std::vector<double> gpar_;
55  TH1F* em_long_sl_;
56  TH2F *em_2d_1_, *em_2d_2_;
57 };
58 
59 #endif // HFShowerParam_h
HFShowerParam::onlyLong_
bool onlyLong_
Definition: HFShowerParam.h:50
MessageLogger.h
HFShowerParam::getHits
std::vector< Hit > getHits(const G4Step *aStep, double weight, bool &isKilled)
Definition: HFShowerParam.cc:108
HFGflash.h
HFShowerParam::Hit::Hit
Hit()
Definition: HFShowerParam.h:35
HFFibre.h
HFShowerParam::em_long_gflash_
TH1F * em_long_gflash_
Definition: HFShowerParam.h:54
HFShowerParam::gammaPDG_
G4int gammaPDG_
Definition: HFShowerParam.h:51
HFShowerParam::~HFShowerParam
virtual ~HFShowerParam()
Definition: HFShowerParam.cc:106
HFShowerParam::fibre_
std::unique_ptr< HFFibre > fibre_
Definition: HFShowerParam.h:46
HFShowerParam::hzvhad_
TH1F * hzvhad_
Definition: HFShowerParam.h:54
HFShowerParam::Hit::time
double time
Definition: HFShowerParam.h:38
HcalDDDSimConstants
Definition: HcalDDDSimConstants.h:24
HFShowerParam::hzvem_
TH1F * hzvem_
Definition: HFShowerParam.h:54
HFShowerParam::Hit::edep
double edep
Definition: HFShowerParam.h:39
HFShowerParam::HFShowerParam
HFShowerParam(const std::string &name, const HcalDDDSimConstants *hcons, const HcalSimulationParameters *hps, edm::ParameterSet const &p)
Definition: HFShowerParam.cc:29
HFShowerParam::gpar_
std::vector< double > gpar_
Definition: HFShowerParam.h:52
HFShowerParam::applyFidCut_
bool applyFidCut_
Definition: HFShowerParam.h:50
HFShowerParam::em_long_1_
TH1F * em_long_1_
Definition: HFShowerParam.h:53
HFShowerParam::showerLibrary_
std::unique_ptr< HFShowerLibrary > showerLibrary_
Definition: HFShowerParam.h:45
HcalSimulationParameters.h
HFShowerParam::em_lateral_2_
TH1F * em_lateral_2_
Definition: HFShowerParam.h:53
HFShowerParam::em_lateral_1_
TH1F * em_lateral_1_
Definition: HFShowerParam.h:53
HFShowerParam::Hit::position
G4ThreeVector position
Definition: HFShowerParam.h:36
edm::ParameterSet
Definition: ParameterSet.h:47
HFShowerParam::em_long_1_tuned_
TH1F * em_long_1_tuned_
Definition: HFShowerParam.h:54
AlCaHLTBitMon_ParallelJobs.p
def p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
HFShowerParam::trackEM_
bool trackEM_
Definition: HFShowerParam.h:50
HFShowerParam::em_long_sl_
TH1F * em_long_sl_
Definition: HFShowerParam.h:55
HFShowerLibrary.h
HFShowerParam::hcalConstants_
const HcalDDDSimConstants * hcalConstants_
Definition: HFShowerParam.h:44
HFShowerParam::parametrizeLast_
bool parametrizeLast_
Definition: HFShowerParam.h:50
HFShowerParam::edMin_
double edMin_
Definition: HFShowerParam.h:49
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
HFShowerParam::gflash_
std::unique_ptr< HFGflash > gflash_
Definition: HFShowerParam.h:47
HFShowerParam::ref_index_
double ref_index_
Definition: HFShowerParam.h:49
HFShowerParam::em_long_2_
TH1F * em_long_2_
Definition: HFShowerParam.h:53
HFShowerParam::emPDG_
G4int emPDG_
Definition: HFShowerParam.h:51
HFShowerParam::fillHisto_
bool fillHisto_
Definition: HFShowerParam.h:48
HFShowerParam::pePerGeV_
double pePerGeV_
Definition: HFShowerParam.h:49
HFShowerParam::Hit::depth
int depth
Definition: HFShowerParam.h:37
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
HFShowerParam::attLMeanInv_
double attLMeanInv_
Definition: HFShowerParam.h:49
ParameterSet.h
HFShowerParam
Definition: HFShowerParam.h:25
HFShowerParam::Hit
Definition: HFShowerParam.h:34
HcalSimulationParameters
Definition: HcalSimulationParameters.h:6
HFShowerParam::equalizeTimeShift_
bool equalizeTimeShift_
Definition: HFShowerParam.h:50
HFShowerParam::epPDG_
G4int epPDG_
Definition: HFShowerParam.h:51
HFShowerParam::aperture_
double aperture_
Definition: HFShowerParam.h:49
weight
Definition: weight.py:1
HFShowerParam::em_2d_1_
TH2F * em_2d_1_
Definition: HFShowerParam.h:56
HFShowerParam::em_2d_2_
TH2F * em_2d_2_
Definition: HFShowerParam.h:56
HcalDDDSimConstants.h