A module to check the results from the Monte Carlo generator. More...
Public Member Functions | |
CORSIKAGendp (fhicl::ParameterSet const &pset) | |
virtual | ~CORSIKAGendp () |
void | produce (art::Event &evt) |
void | beginJob () |
void | beginRun (art::Run &run) |
void | reconfigure (fhicl::ParameterSet const &p) |
Public Member Functions inherited from art::EDProducer | |
EDProducer (fhicl::ParameterSet const &pset) | |
template<typename Config > | |
EDProducer (Table< Config > const &config) | |
std::string | workerType () const |
Public Member Functions inherited from art::detail::Producer | |
virtual | ~Producer () noexcept |
Producer (fhicl::ParameterSet const &) | |
Producer (Producer const &)=delete | |
Producer (Producer &&)=delete | |
Producer & | operator= (Producer const &)=delete |
Producer & | operator= (Producer &&)=delete |
void | doBeginJob (SharedResources const &resources) |
void | doEndJob () |
void | doRespondToOpenInputFile (FileBlock const &fb) |
void | doRespondToCloseInputFile (FileBlock const &fb) |
void | doRespondToOpenOutputFiles (FileBlock const &fb) |
void | doRespondToCloseOutputFiles (FileBlock const &fb) |
bool | doBeginRun (RunPrincipal &rp, ModuleContext const &mc) |
bool | doEndRun (RunPrincipal &rp, ModuleContext const &mc) |
bool | doBeginSubRun (SubRunPrincipal &srp, ModuleContext const &mc) |
bool | doEndSubRun (SubRunPrincipal &srp, ModuleContext const &mc) |
bool | doEvent (EventPrincipal &ep, ModuleContext const &mc, std::atomic< std::size_t > &counts_run, std::atomic< std::size_t > &counts_passed, std::atomic< std::size_t > &counts_failed) |
Public Member Functions inherited from art::Modifier | |
~Modifier () noexcept | |
Modifier () | |
Modifier (Modifier const &)=delete | |
Modifier (Modifier &&)=delete | |
Modifier & | operator= (Modifier const &)=delete |
Modifier & | operator= (Modifier &&)=delete |
Public Member Functions inherited from art::ModuleBase | |
virtual | ~ModuleBase () noexcept |
ModuleBase () | |
ModuleDescription const & | moduleDescription () const |
void | setModuleDescription (ModuleDescription const &) |
std::array< std::vector< ProductInfo >, NumBranchTypes > const & | getConsumables () const |
void | sortConsumables (std::string const ¤t_process_name) |
template<typename T , BranchType BT> | |
ViewToken< T > | consumesView (InputTag const &tag) |
template<typename T , BranchType BT> | |
ViewToken< T > | mayConsumeView (InputTag const &tag) |
Private Member Functions | |
void | openDBs (std::string const &module_label) |
void | populateNShowers () |
void | populateTOffset () |
void | GetSample (simb::MCTruth &) |
double | wrapvar (const double var, const double low, const double high) |
double | wrapvarBoxNo (const double var, const double low, const double high, int &boxno) |
void | DoRotation (double vec[]) |
void | ProjectToBoxEdge (const double xyz[], const double dxyz[], const double xlo, const double xhi, const double ylo, const double yhi, const double zlo, const double zhi, double xyzout[]) |
Private Attributes | |
int | fShowerInputs =0 |
Number of shower inputs to process from. More... | |
std::vector< double > | fNShowersPerEvent |
Number of showers to put in each event of duration fSampleTime; one per showerinput. More... | |
std::vector< int > | fMaxShowers |
double | fShowerBounds [6] ={0.,0.,0.,0.,0.,0.} |
Boundaries of area over which showers are to be distributed. More... | |
double | fToffset_corsika =0. |
Timing offset to account for propagation time through atmosphere, populated from db. More... | |
ifdh_ns::ifdh * | fIFDH =0 |
(optional) flux file handling More... | |
double | fProjectToHeight =0. |
Height to which particles will be projected [cm]. More... | |
std::vector< std::string > | fShowerInputFiles |
Set of CORSIKA shower data files to use. More... | |
std::vector< double > | fShowerFluxConstants |
Set of flux constants to be associated with each shower data file. More... | |
double | fSampleTime =0. |
Duration of sample [s]. More... | |
double | fToffset =0. |
Time offset of sample, defaults to zero (no offset) [s]. More... | |
std::vector< double > | fBuffBox |
Buffer box extensions to cryostat in each direction (6 of them: x_lo,x_hi,y_lo,y_hi,z_lo,z_hi) [cm]. More... | |
double | fShowerAreaExtension =0. |
Extend distribution of corsika particles in x,z by this much (e.g. 1000 will extend 10 m in -x, +x, -z, and +z) [cm]. More... | |
sqlite3 * | fdb [5] |
Pointers to sqlite3 database object, max of 5. More... | |
double | fRandomXZShift =0. |
Each shower will be shifted by a random amount in xz so that showers won't repeatedly sample the same space [cm]. More... | |
bool | fDoRotation |
bool | fUseIFDH |
< use ifdh protocol? More... | |
CLHEP::HepRandomEngine & | fGenEngine |
CLHEP::HepRandomEngine & | fPoisEngine |
Additional Inherited Members | |
Public Types inherited from art::EDProducer | |
using | ModuleType = EDProducer |
using | WorkerType = WorkerT< EDProducer > |
Public Types inherited from art::detail::Producer | |
template<typename UserConfig , typename KeysToIgnore = void> | |
using | Table = Modifier::Table< UserConfig, KeysToIgnore > |
Public Types inherited from art::Modifier | |
template<typename UserConfig , typename UserKeysToIgnore = void> | |
using | Table = ProducerTable< UserConfig, detail::ModuleConfig, UserKeysToIgnore > |
Static Public Member Functions inherited from art::EDProducer | |
static void | commitEvent (EventPrincipal &ep, Event &e) |
Protected Member Functions inherited from art::ModuleBase | |
ConsumesCollector & | consumesCollector () |
template<typename T , BranchType = InEvent> | |
ProductToken< T > | consumes (InputTag const &) |
template<typename Element , BranchType = InEvent> | |
ViewToken< Element > | consumesView (InputTag const &) |
template<typename T , BranchType = InEvent> | |
void | consumesMany () |
template<typename T , BranchType = InEvent> | |
ProductToken< T > | mayConsume (InputTag const &) |
template<typename Element , BranchType = InEvent> | |
ViewToken< Element > | mayConsumeView (InputTag const &) |
template<typename T , BranchType = InEvent> | |
void | mayConsumeMany () |
A module to check the results from the Monte Carlo generator.
Definition at line 54 of file CORSIKAGendp_module.cc.
|
explicit |
Definition at line 110 of file CORSIKAGendp_module.cc.
|
virtual |
Definition at line 150 of file CORSIKAGendp_module.cc.
|
virtual |
|
virtual |
Reimplemented from art::EDProducer.
Definition at line 627 of file CORSIKAGendp_module.cc.
|
private |
Definition at line 158 of file CORSIKAGendp_module.cc.
|
private |
Definition at line 443 of file CORSIKAGendp_module.cc.
|
private |
Definition at line 210 of file CORSIKAGendp_module.cc.
|
private |
Definition at line 364 of file CORSIKAGendp_module.cc.
|
private |
Definition at line 337 of file CORSIKAGendp_module.cc.
|
virtual |
Implements art::EDProducer.
Definition at line 639 of file CORSIKAGendp_module.cc.
|
private |
Definition at line 171 of file CORSIKAGendp_module.cc.
void evgendp::CORSIKAGendp::reconfigure | ( | fhicl::ParameterSet const & | p | ) |
Definition at line 616 of file CORSIKAGendp_module.cc.
|
private |
Definition at line 326 of file CORSIKAGendp_module.cc.
|
private |
Definition at line 331 of file CORSIKAGendp_module.cc.
|
private |
Buffer box extensions to cryostat in each direction (6 of them: x_lo,x_hi,y_lo,y_hi,z_lo,z_hi) [cm].
Definition at line 96 of file CORSIKAGendp_module.cc.
|
private |
Pointers to sqlite3 database object, max of 5.
Definition at line 98 of file CORSIKAGendp_module.cc.
|
private |
Definition at line 100 of file CORSIKAGendp_module.cc.
|
private |
Definition at line 103 of file CORSIKAGendp_module.cc.
|
private |
(optional) flux file handling
Definition at line 88 of file CORSIKAGendp_module.cc.
|
private |
Definition at line 85 of file CORSIKAGendp_module.cc.
|
private |
Number of showers to put in each event of duration fSampleTime; one per showerinput.
Definition at line 84 of file CORSIKAGendp_module.cc.
|
private |
Definition at line 104 of file CORSIKAGendp_module.cc.
|
private |
Height to which particles will be projected [cm].
Definition at line 91 of file CORSIKAGendp_module.cc.
|
private |
Each shower will be shifted by a random amount in xz so that showers won't repeatedly sample the same space [cm].
Definition at line 99 of file CORSIKAGendp_module.cc.
|
private |
Duration of sample [s].
Definition at line 94 of file CORSIKAGendp_module.cc.
|
private |
Extend distribution of corsika particles in x,z by this much (e.g. 1000 will extend 10 m in -x, +x, -z, and +z) [cm].
Definition at line 97 of file CORSIKAGendp_module.cc.
|
private |
Boundaries of area over which showers are to be distributed.
Definition at line 86 of file CORSIKAGendp_module.cc.
|
private |
Set of flux constants to be associated with each shower data file.
Definition at line 93 of file CORSIKAGendp_module.cc.
|
private |
Set of CORSIKA shower data files to use.
Definition at line 92 of file CORSIKAGendp_module.cc.
|
private |
Number of shower inputs to process from.
Definition at line 83 of file CORSIKAGendp_module.cc.
|
private |
Time offset of sample, defaults to zero (no offset) [s].
Definition at line 95 of file CORSIKAGendp_module.cc.
|
private |
Timing offset to account for propagation time through atmosphere, populated from db.
Definition at line 87 of file CORSIKAGendp_module.cc.
|
private |
< use ifdh protocol?
Definition at line 101 of file CORSIKAGendp_module.cc.