23 #include "art_root_io/TFileService.h" 68 std::cout <<
"ISCalcAna constructor." << std::endl;
73 std::cout <<
"ISCalcAna beginJob." << std::endl;
74 std::cout <<
"Using " <<
calcTag.
label() <<
" algorithm to calculate IS." << std::endl;
77 fISAlg = std::make_unique<larg4::ISCalcSeparate>();
80 fISAlg = std::make_unique<larg4::ISCalcCorrelated>(detProp,
fEngine);
85 mf::LogWarning(
"IonAndScint") <<
"No ISCalculation set, this can't be good.";
90 "EDep IS Calc Ntuple",
91 "run:event:t:x:y:z:ds:e:trackid:pdg:e_deposit:n_electron:n_photon:scintyield");
95 std::cout <<
"ISCalcAna endJob." << std::endl;
102 std::cout <<
"PDFastSimPAR Module Cannot getByLabel: " <<
fEDepTag << std::endl;
108 for (
auto const& edepi : *edep_handle) {
109 auto const [energyDeposit, nElectrons, nPhotons, scintYieldRatio] =
110 fISAlg->CalcIonAndScint(detProp, edepi);
127 std::cout <<
"ISCalcAna analyze completed." << std::endl;
base_engine_t & createEngine(seed_t seed)
Store parameters for running LArG4.
void analyze(art::Event const &event) override
EDAnalyzer(fhicl::ParameterSet const &pset)
ISCalcAna & operator=(ISCalcAna const &)=delete
ISCalcAna(fhicl::ParameterSet const &p)
#define DEFINE_ART_MODULE(klass)
T get(std::string const &key) const
An art service to assist in the distribution of guaranteed unique seeds to all engines within an art ...
std::unique_ptr< ISCalc > fISAlg
CLHEP::HepRandomEngine & fEngine
bool getByLabel(std::string const &label, std::string const &instance, Handle< PROD > &result) const
contains information for a single step in the detector simulation
MaybeLogger_< ELseverityLevel::ELsev_warning, false > LogWarning
Event finding and building.