All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Namespaces | Functions | Variables
NucleonDecay_module.cc File Reference
#include "art/Framework/Core/EDProducer.h"
#include "art/Framework/Core/ModuleMacros.h"
#include "art/Framework/Principal/Event.h"
#include "art/Framework/Principal/Run.h"
#include "art/Framework/Services/Registry/ServiceHandle.h"
#include "fhiclcpp/ParameterSet.h"
#include "messagefacility/MessageLogger/MessageLogger.h"
#include "Framework/Algorithm/AlgFactory.h"
#include "Framework/EventGen/EventRecordVisitorI.h"
#include "Framework/EventGen/EventRecord.h"
#include "Physics/NucleonDecay/NucleonDecayMode.h"
#include "Physics/NucleonDecay/NucleonDecayUtils.h"
#include "Framework/ParticleData/PDGLibrary.h"
#include "Framework/GHEP/GHepParticle.h"
#include "Framework/Utils/AppInit.h"
#include "nusimdata/SimulationBase/MCTruth.h"
#include "nusimdata/SimulationBase/MCParticle.h"
#include "nugen/EventGeneratorBase/GENIE/GENIE2ART.h"
#include "larcore/Geometry/Geometry.h"
#include "larcoreobj/SummaryData/RunData.h"
#include "nurandom/RandomUtils/NuRandomService.h"
#include <memory>
#include <string>
#include "CLHEP/Random/RandFlat.h"

Go to the source code of this file.

Classes

class  evgen::NucleonDecay
 

Namespaces

 evgen
 Event Generation using GENIE, cosmics or single particles.
 

Functions

 if (!mcgen)
 
 if (p.get< int >("DecayedNucleon") > 0)
 
 produces< std::vector< simb::MCTruth > > ()
 
 produces< sumdata::RunData, art::InRun > ()
 

Variables

createEngine this
 
string sname = "genie::EventGenerator"
 
string sconfig = "NucleonDecay"
 
genie::AlgFactory * algf = genie::AlgFactory::Instance()
 
 mcgen
 
int fDecayMode = p.get<int>("DecayMode")
 
 gOptDecayMode = (genie::NucleonDecayMode_t) fDecayMode
 
 else
 
unsigned int seed = art::ServiceHandle<rndm::NuRandomService>()->getSeed()
 

Function Documentation

if ( mcgen)

Definition at line 96 of file NucleonDecay_module.cc.

96  {
97  throw cet::exception("NucleonDecay") << "Couldn't instantiate the nucleon decay generator";
98  }
if ( p.get< int >  "DecayedNucleon",
 
)

Definition at line 102 of file NucleonDecay_module.cc.

102  {
103  dpdg = p.get<int>("DecayedNucleon");
104  }
pdgs p
Definition: selectors.fcl:22
produces< std::vector< simb::MCTruth > > ( )
produces< sumdata::RunData, art::InRun > ( )

Variable Documentation

genie::AlgFactory* algf = genie::AlgFactory::Instance()

Definition at line 93 of file NucleonDecay_module.cc.

else
Initial value:
{
dpdg = genie::utils::nucleon_decay::DecayedNucleonPdgCode(gOptDecayMode)
gOptDecayMode

Definition at line 105 of file NucleonDecay_module.cc.

int fDecayMode = p.get<int>("DecayMode")

Definition at line 99 of file NucleonDecay_module.cc.

gOptDecayMode = (genie::NucleonDecayMode_t) fDecayMode

Definition at line 100 of file NucleonDecay_module.cc.

mcgen
Initial value:
=
dynamic_cast<const genie::EventRecordVisitorI *> (algf->GetAlgorithm(sname,sconfig))
string sconfig
string sname
genie::AlgFactory * algf

Definition at line 94 of file NucleonDecay_module.cc.

string sconfig = "NucleonDecay"

Definition at line 89 of file NucleonDecay_module.cc.

unsigned int seed = art::ServiceHandle<rndm::NuRandomService>()->getSeed()

Definition at line 112 of file NucleonDecay_module.cc.

string sname = "genie::EventGenerator"

Definition at line 88 of file NucleonDecay_module.cc.

createEngine this
Initial value:
{
genie::PDGLibrary::Instance()

Definition at line 85 of file NucleonDecay_module.cc.