All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Namespaces | Functions | Variables
NeutronOsc_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/NNBarOscillation/NNBarOscMode.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::NeutronOsc
 

Namespaces

 evgen
 Event Generation using GENIE, cosmics or single particles.
 

Functions

 if (!mcgen)
 
 produces< std::vector< simb::MCTruth > > ()
 
 produces< sumdata::RunData, art::InRun > ()
 

Variables

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

Function Documentation

if ( mcgen)

Definition at line 120 of file NeutronOsc_module.cc.

120  {
121  throw cet::exception("NeutronOsc") << "Couldn't instantiate the neutron-antineutron oscillation generator";
122  }
produces< std::vector< simb::MCTruth > > ( )
produces< sumdata::RunData, art::InRun > ( )

Variable Documentation

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

Definition at line 117 of file NeutronOsc_module.cc.

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

Definition at line 123 of file NeutronOsc_module.cc.

gOptDecayMode = (genie::NNBarOscMode_t) fDecayMode

Definition at line 124 of file NeutronOsc_module.cc.

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

Definition at line 118 of file NeutronOsc_module.cc.

string sconfig = "NNBarOsc"

Definition at line 113 of file NeutronOsc_module.cc.

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

Definition at line 129 of file NeutronOsc_module.cc.

string sname = "genie::EventGenerator"

Definition at line 111 of file NeutronOsc_module.cc.

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

Definition at line 108 of file NeutronOsc_module.cc.