Definition at line 37 of file ISCalcAna_module.cc.
larg4::ISCalcAna::ISCalcAna |
( |
fhicl::ParameterSet const & |
p | ) |
|
|
explicit |
Definition at line 57 of file ISCalcAna_module.cc.
59 ,
fEDepTag{pset.get<art::InputTag>(
"SimulationLabel")}
60 ,
calcTag{pset.get<art::InputTag>(
"ISCalcAlg")}
61 ,
fEngine(art::ServiceHandle<rndm::NuRandomService>()
62 ->createEngine(*
this,
"HepJamesRandom",
"NEST", pset,
"SeedNEST"))
64 std::cout <<
"ISCalcAna constructor." << std::endl;
CLHEP::HepRandomEngine & fEngine
BEGIN_PROLOG could also be cout
larg4::ISCalcAna::ISCalcAna |
( |
ISCalcAna const & |
| ) |
|
|
delete |
void larg4::ISCalcAna::analyze |
( |
art::Event const & |
event | ) |
|
|
override |
Definition at line 97 of file ISCalcAna_module.cc.
99 art::Handle<std::vector<sim::SimEnergyDeposit>> edep_handle;
100 if (!event.getByLabel(
fEDepTag, edep_handle)) {
106 art::ServiceHandle<detinfo::DetectorPropertiesService const>()->DataFor(event);
107 for (
auto const& edepi : *edep_handle) {
108 auto const [energyDeposit, nElectrons, nPhotons, scintYieldRatio] =
126 std::cout <<
"ISCalcAna analyze completed." << std::endl;
std::unique_ptr< ISCalc > fISAlg
BEGIN_PROLOG could also be cout
void larg4::ISCalcAna::beginJob |
( |
| ) |
|
|
override |
Definition at line 68 of file ISCalcAna_module.cc.
70 std::cout <<
"ISCalcAna beginJob." << std::endl;
71 std::cout <<
"Using " <<
calcTag.label() <<
" algorithm to calculate IS." << std::endl;
73 if (
calcTag.label() ==
"Separate")
74 fISAlg = std::make_unique<larg4::ISCalcSeparate>();
75 else if (
calcTag.label() ==
"Correlated") {
76 auto const detProp = art::ServiceHandle<detinfo::DetectorPropertiesService>()->DataForJob();
79 else if (
calcTag.label() ==
"NEST")
82 mf::LogWarning(
"IonAndScint") <<
"No ISCalculation set, this can't be good.";
84 art::ServiceHandle<art::TFileService const>
tfs;
87 "EDep IS Calc Ntuple",
88 "run:event:t:x:y:z:ds:e:trackid:pdg:e_deposit:n_electron:n_photon:scintyield");
std::unique_ptr< ISCalc > fISAlg
CLHEP::HepRandomEngine & fEngine
art::ServiceHandle< art::TFileService > tfs
BEGIN_PROLOG could also be cout
void larg4::ISCalcAna::endJob |
( |
| ) |
|
|
override |
art::InputTag larg4::ISCalcAna::calcTag |
|
private |
art::InputTag larg4::ISCalcAna::fEDepTag |
|
private |
CLHEP::HepRandomEngine& larg4::ISCalcAna::fEngine |
|
private |
std::unique_ptr<ISCalc> larg4::ISCalcAna::fISAlg |
|
private |
TNtuple* larg4::ISCalcAna::fNtuple |
|
private |
The documentation for this class was generated from the following file: