larg4::CheckSimEnergyDeposit::CheckSimEnergyDeposit |
( |
fhicl::ParameterSet const & |
p | ) |
|
|
explicit |
void larg4::CheckSimEnergyDeposit::analyze |
( |
const art::Event & |
event | ) |
|
|
overrideprivate |
Definition at line 62 of file CheckSimEnergyDeposit_module.cc.
65 for (
auto const& sims : allSims) {
66 double sumPhotons=0.0;
69 for (
auto const&
hit : *sims) {
72 sumPhotons= sumPhotons +
hit.NumPhotons();
73 sumE= sumE +
hit.Energy();
std::vector< SimEnergyDeposit > SimEnergyDepositCollection
void larg4::CheckSimEnergyDeposit::beginJob |
( |
| ) |
|
|
overrideprivate |
Definition at line 49 of file CheckSimEnergyDeposit_module.cc.
51 art::ServiceHandle<art::TFileService const>
tfs;
52 _hnHits = tfs->make<TH1F>(
"hnHits",
"Number of SimEnergyDeposits", 300, 0, 0);
53 _hEdep = tfs->make<TH1F>(
"hEdep",
"Energy deposition in SimEnergyDeposits", 100,0.,0.02);
54 _hnumPhotons =
tfs->make<TH1F>(
"hnumPhotons",
"number of photons per SimEnergyDeposit", 100,0.,500.);
55 _hLandauPhotons=
tfs->make<TH1F>(
"hLandauPhotons",
"number of photons/cm", 100,0.,2000000.);
57 _hSteplength=
tfs->make<TH1F>(
"hSteplength",
"geant 4 step length", 100,0.,0.05);
58 _ntuple =
tfs->make<TNtuple>(
"ntuple",
"Demo ntuple",
59 "Event:Edep:em_Edep:nonem_Edep:xpos:ypos:zpos:time");
art::ServiceHandle< art::TFileService > tfs
TH1F* larg4::CheckSimEnergyDeposit::_hEdep {nullptr} |
|
private |
TH1F* larg4::CheckSimEnergyDeposit::_hLandauEdep {nullptr} |
|
private |
TH1F* larg4::CheckSimEnergyDeposit::_hLandauPhotons {nullptr} |
|
private |
TH1F* larg4::CheckSimEnergyDeposit::_hnHits {nullptr} |
|
private |
TH1F* larg4::CheckSimEnergyDeposit::_hnumPhotons {nullptr} |
|
private |
TH1F* larg4::CheckSimEnergyDeposit::_hSteplength {nullptr} |
|
private |
TNtuple* larg4::CheckSimEnergyDeposit::_ntuple {nullptr} |
|
private |
The documentation for this class was generated from the following file: