LArSoft
v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
|
module to produce single or multiple specified particles in the detector More...
Public Types | |
using | ModuleType = EDProducer |
using | WorkerType = WorkerT< EDProducer > |
template<typename UserConfig , typename KeysToIgnore = void> | |
using | Table = ProducerBase::Table< UserConfig, KeysToIgnore > |
Public Member Functions | |
MUSUN (fhicl::ParameterSet const &pset) | |
virtual | ~MUSUN () |
void | produce (art::Event &evt) |
void | beginJob () |
void | beginRun (art::Run &run) |
void | reconfigure (fhicl::ParameterSet const &p) |
void | endRun (art::Run &run) |
template<typename PROD , BranchType B = InEvent> | |
ProductID | getProductID (std::string const &instanceName={}) const |
template<typename PROD , BranchType B> | |
ProductID | getProductID (ModuleDescription const &moduleDescription, std::string const &instanceName) const |
bool | modifiesEvent () const |
template<typename T , BranchType = InEvent> | |
ProductToken< T > | consumes (InputTag const &) |
template<typename T , art::BranchType BT> | |
art::ProductToken< T > | consumes (InputTag const &it) |
template<typename T , BranchType = InEvent> | |
void | consumesMany () |
template<typename Element , BranchType = InEvent> | |
ViewToken< Element > | consumesView (InputTag const &) |
template<typename T , art::BranchType BT> | |
art::ViewToken< T > | consumesView (InputTag const &it) |
template<typename T , BranchType = InEvent> | |
ProductToken< T > | mayConsume (InputTag const &) |
template<typename T , art::BranchType BT> | |
art::ProductToken< T > | mayConsume (InputTag const &it) |
template<typename T , BranchType = InEvent> | |
void | mayConsumeMany () |
template<typename Element , BranchType = InEvent> | |
ViewToken< Element > | mayConsumeView (InputTag const &) |
template<typename T , art::BranchType BT> | |
art::ViewToken< T > | mayConsumeView (InputTag const &it) |
base_engine_t & | createEngine (seed_t seed) |
base_engine_t & | createEngine (seed_t seed, std::string const &kind_of_engine_to_make) |
base_engine_t & | createEngine (seed_t seed, std::string const &kind_of_engine_to_make, label_t const &engine_label) |
seed_t | get_seed_value (fhicl::ParameterSet const &pset, char const key[]="seed", seed_t const implicit_seed=-1) |
Static Public Member Functions | |
static cet::exempt_ptr< Consumer > | non_module_context () |
Protected Member Functions | |
CurrentProcessingContext const * | currentContext () const |
void | validateConsumedProduct (BranchType const bt, ProductInfo const &pi) |
void | prepareForJob (fhicl::ParameterSet const &pset) |
void | showMissingConsumes () const |
Private Member Functions | |
void | SampleOne (unsigned int i, simb::MCTruth &mct) |
void | initialization (double theta1, double theta2, double phi1, double phi2, int figflag, double s_hor, double s_ver1, double s_ver2, double &FI) |
void | sampling (double &E, double &theta, double &phi, double &dep) |
Private Attributes | |
int | fPDG |
PDG code of particles to generate. More... | |
double | fChargeRatio |
Charge ratio of particle / anti-particle. More... | |
std::string | fInputDir |
Input Directory. More... | |
std::string | fInputFile1 |
Input File 1. More... | |
std::string | fInputFile2 |
Input File 2. More... | |
std::string | fInputFile3 |
Input File 3. More... | |
double | fCavernAngle |
Angle of the detector from the North to the East. More... | |
double | fRockDensity |
double | fEmin |
Minimum Kinetic Energy (GeV) More... | |
double | fEmax |
Maximum Kinetic Energy (GeV) More... | |
double | fThetamin |
Minimum theta. More... | |
double | fThetamax |
Maximum theta. More... | |
double | fPhimin |
Minimum phi. More... | |
double | fPhimax |
Maximum phi. More... | |
int | figflag |
If want sampled from sphere or parallelepiped. More... | |
double | fXmin |
Minimum X position. More... | |
double | fYmin |
Minimum Y position. More... | |
double | fZmin |
Minimum Z position. More... | |
double | fXmax |
Maximum X position. More... | |
double | fYmax |
Maximum Y position. More... | |
double | fZmax |
Maximum Z position. More... | |
double | fT0 |
Central t position (ns) in world coordinates. More... | |
double | fSigmaT |
Variation in t position (ns) More... | |
int | fTDist |
How to distribute t (gaus, or uniform) More... | |
int | PdgCode |
double | Energy |
double | phi |
double | theta |
double | dep |
double | Time |
double | Momentum |
double | px0 |
double | py0 |
double | pz0 |
double | x0 |
double | y0 |
double | z0 |
double | cx |
double | cy |
double | cz |
double | FI = 0. |
double | s_hor = 0. |
double | s_ver1 = 0. |
double | s_ver2 = 0. |
double | spmu [121][62][51] |
double | fnmu [32401] |
double | depth [360][91] |
double | fmu [360][91] |
double | the1 |
double | the2 |
double | ph1 |
double | ph2 |
double | se = 0. |
double | st = 0. |
double | sp = 0. |
double | sd = 0. |
unsigned int | NEvents = 0 |
TTree * | fTree |
Static Private Attributes | |
static const int | kGAUS = 1 |
module to produce single or multiple specified particles in the detector
Definition at line 210 of file MUSUN_module.cc.
|
inherited |
Definition at line 34 of file EDProducer.h.
|
inherited |
Definition at line 43 of file EDProducer.h.
|
inherited |
Definition at line 35 of file EDProducer.h.
|
explicit |
Definition at line 333 of file MUSUN_module.cc.
|
virtual |
Definition at line 346 of file MUSUN_module.cc.
|
virtual |
Reimplemented from art::EDProducer.
Definition at line 395 of file MUSUN_module.cc.
References art::TFileDirectory::make().
|
virtual |
Reimplemented from art::EDProducer.
Definition at line 448 of file MUSUN_module.cc.
References geo::GeometryCore::DetectorName(), and art::Run::put().
|
inherited |
|
inherited |
Definition at line 147 of file Consumer.h.
References art::InputTag::instance(), art::InputTag::label(), and art::InputTag::process().
|
inherited |
Definition at line 162 of file Consumer.h.
|
inherited |
|
inherited |
Definition at line 172 of file Consumer.h.
References art::InputTag::instance(), art::InputTag::label(), and art::InputTag::process().
|
inherited |
Definition at line 26 of file EngineCreator.cc.
References art::EngineCreator::rng().
Referenced by evgen::CosmicsGen::CosmicsGen(), rndm::NuRandomService::createEngine(), cluster::fuzzyCluster::fuzzyCluster(), cluster::HoughLineFinder::HoughLineFinder(), art::MixFilter< T >::initEngine_(), larg4::LArG4::LArG4(), evgen::LightSource::LightSource(), evgen::NeutronOsc::NeutronOsc(), evgen::NucleonDecay::NucleonDecay(), opdet::OpMCDigi::OpMCDigi(), opdet::OptDetDigitizer::OptDetDigitizer(), phot::PhotonLibraryPropagation::PhotonLibraryPropagation(), detsim::SimDriftElectrons::SimDriftElectrons(), evgen::SingleGen::SingleGen(), evgen::SNNueAr40CCGen::SNNueAr40CCGen(), ToyOneShowerGen::ToyOneShowerGen(), and trkf::Track3DKalman::Track3DKalman().
|
inherited |
Definition at line 32 of file EngineCreator.cc.
References art::EngineCreator::rng().
|
inherited |
Definition at line 40 of file EngineCreator.cc.
References art::EngineCreator::rng().
|
protectedinherited |
|
virtual |
|
inherited |
Definition at line 49 of file EngineCreator.cc.
References fhicl::ParameterSet::get().
Referenced by art::MixFilter< T >::initEngine_().
|
inlineinherited |
|
inherited |
Definition at line 56 of file ProducerBase.h.
References B, and art::ModuleDescription::moduleLabel().
Referenced by art::ProducerBase::modifiesEvent().
|
private |
Definition at line 695 of file MUSUN_module.cc.
|
inherited |
|
inherited |
Definition at line 190 of file Consumer.h.
References art::InputTag::instance(), art::InputTag::label(), and art::InputTag::process().
|
inherited |
Definition at line 205 of file Consumer.h.
|
inherited |
|
inherited |
Definition at line 215 of file Consumer.h.
References art::InputTag::instance(), art::InputTag::label(), and art::InputTag::process().
|
inlineinherited |
Definition at line 40 of file ProducerBase.h.
References art::ProducerBase::getProductID().
|
staticinherited |
Definition at line 76 of file Consumer.cc.
Referenced by art::RootOutput::beginSubRun(), art::OutputModule::doBeginRun(), art::OutputModule::doBeginSubRun(), art::OutputModule::doEndRun(), art::OutputModule::doEndSubRun(), art::ProducingService::doPostReadEvent(), art::ProducingService::doPostReadRun(), art::ProducingService::doPostReadSubRun(), art::OutputModule::doWriteEvent(), art::ProcessPackage< L >::postScheduleSignal(), art::BeginEndPackage< Level::Run >::Begin::postScheduleSignal(), art::BeginEndPackage< Level::Run >::End::postScheduleSignal(), art::BeginEndPackage< Level::SubRun >::Begin::postScheduleSignal(), art::BeginEndPackage< Level::SubRun >::End::postScheduleSignal(), art::ProcessPackage< L >::preScheduleSignal(), art::BeginEndPackage< Level::Run >::Begin::preScheduleSignal(), art::BeginEndPackage< Level::SubRun >::Begin::preScheduleSignal(), art::EventProcessor::readEvent(), art::EventProcessor::readRun(), art::EmptyEvent::readRun_(), art::EventProcessor::readSubRun(), and art::EmptyEvent::readSubRun_().
|
protectedinherited |
Definition at line 89 of file Consumer.cc.
References fhicl::ParameterSet::get_if_present().
Referenced by art::EDProducer::doBeginJob(), art::EDFilter::doBeginJob(), and art::EDAnalyzer::doBeginJob().
|
virtual |
unique_ptr allows ownership to be transferred to the art::Event after the put statement
Implements art::EDProducer.
Definition at line 525 of file MUSUN_module.cc.
References simb::kSingleParticle, LOG_DEBUG, art::Event::put(), and simb::MCTruth::SetOrigin().
void evgen::MUSUN::reconfigure | ( | fhicl::ParameterSet const & | p | ) |
Definition at line 353 of file MUSUN_module.cc.
References fhicl::ParameterSet::get().
|
private |
Definition at line 549 of file MUSUN_module.cc.
References simb::MCTruth::Add(), simb::MCParticle::AddTrajectoryPoint(), art::RandomNumberGenerator::getEngine(), part, and ss.
|
private |
Definition at line 888 of file MUSUN_module.cc.
References DEFINE_ART_MODULE, and art::RandomNumberGenerator::getEngine().
|
protectedinherited |
Definition at line 125 of file Consumer.cc.
Referenced by art::EDProducer::doEndJob(), art::EDFilter::doEndJob(), art::EDAnalyzer::doEndJob(), and art::RootOutput::endJob().
|
protectedinherited |
Definition at line 101 of file Consumer.cc.
References art::errors::ProductRegistrationFailure.
|
private |
Definition at line 290 of file MUSUN_module.cc.
|
private |
Definition at line 290 of file MUSUN_module.cc.
|
private |
Definition at line 290 of file MUSUN_module.cc.
|
private |
Definition at line 288 of file MUSUN_module.cc.
|
private |
Definition at line 300 of file MUSUN_module.cc.
|
private |
Definition at line 288 of file MUSUN_module.cc.
|
private |
Angle of the detector from the North to the East.
Definition at line 243 of file MUSUN_module.cc.
|
private |
Charge ratio of particle / anti-particle.
Definition at line 236 of file MUSUN_module.cc.
|
private |
Maximum Kinetic Energy (GeV)
Definition at line 250 of file MUSUN_module.cc.
|
private |
Minimum Kinetic Energy (GeV)
Definition at line 249 of file MUSUN_module.cc.
|
private |
Definition at line 293 of file MUSUN_module.cc.
|
private |
If want sampled from sphere or parallelepiped.
Definition at line 257 of file MUSUN_module.cc.
|
private |
Input Directory.
Definition at line 238 of file MUSUN_module.cc.
|
private |
Input File 1.
Definition at line 239 of file MUSUN_module.cc.
|
private |
Input File 2.
Definition at line 240 of file MUSUN_module.cc.
|
private |
Input File 3.
Definition at line 241 of file MUSUN_module.cc.
|
private |
Definition at line 301 of file MUSUN_module.cc.
|
private |
Definition at line 299 of file MUSUN_module.cc.
|
private |
PDG code of particles to generate.
Definition at line 235 of file MUSUN_module.cc.
|
private |
Maximum phi.
Definition at line 255 of file MUSUN_module.cc.
|
private |
Minimum phi.
Definition at line 254 of file MUSUN_module.cc.
|
private |
Default rock density is 2.70 g cm-3. If this is changed then the three input files need to be remade. If there is a desire for this contact Vitaly Kudryavtsev at V.Kud ryav tsev@ shef .ac.u k
Definition at line 244 of file MUSUN_module.cc.
|
private |
Variation in t position (ns)
Definition at line 266 of file MUSUN_module.cc.
|
private |
Central t position (ns) in world coordinates.
Definition at line 265 of file MUSUN_module.cc.
|
private |
How to distribute t (gaus, or uniform)
Definition at line 267 of file MUSUN_module.cc.
|
private |
Maximum theta.
Definition at line 253 of file MUSUN_module.cc.
|
private |
Minimum theta.
Definition at line 252 of file MUSUN_module.cc.
|
private |
Definition at line 313 of file MUSUN_module.cc.
|
private |
Maximum X position.
Definition at line 261 of file MUSUN_module.cc.
|
private |
Minimum X position.
Definition at line 258 of file MUSUN_module.cc.
|
private |
Maximum Y position.
Definition at line 262 of file MUSUN_module.cc.
|
private |
Minimum Y position.
Definition at line 259 of file MUSUN_module.cc.
|
private |
Maximum Z position.
Definition at line 263 of file MUSUN_module.cc.
|
private |
Minimum Z position.
Definition at line 260 of file MUSUN_module.cc.
|
staticprivate |
Definition at line 233 of file MUSUN_module.cc.
|
private |
Definition at line 289 of file MUSUN_module.cc.
|
private |
Definition at line 310 of file MUSUN_module.cc.
|
private |
Definition at line 287 of file MUSUN_module.cc.
|
private |
Definition at line 304 of file MUSUN_module.cc.
|
private |
Definition at line 304 of file MUSUN_module.cc.
|
private |
Definition at line 288 of file MUSUN_module.cc.
|
private |
Definition at line 289 of file MUSUN_module.cc.
|
private |
Definition at line 289 of file MUSUN_module.cc.
|
private |
Definition at line 289 of file MUSUN_module.cc.
|
private |
Definition at line 294 of file MUSUN_module.cc.
|
private |
Definition at line 295 of file MUSUN_module.cc.
|
private |
Definition at line 296 of file MUSUN_module.cc.
|
private |
Definition at line 308 of file MUSUN_module.cc.
|
private |
Definition at line 305 of file MUSUN_module.cc.
|
private |
Definition at line 307 of file MUSUN_module.cc.
|
private |
Definition at line 298 of file MUSUN_module.cc.
|
private |
Definition at line 306 of file MUSUN_module.cc.
|
private |
Definition at line 304 of file MUSUN_module.cc.
|
private |
Definition at line 304 of file MUSUN_module.cc.
|
private |
Definition at line 288 of file MUSUN_module.cc.
|
private |
Definition at line 288 of file MUSUN_module.cc.
|
private |
Definition at line 290 of file MUSUN_module.cc.
|
private |
Definition at line 290 of file MUSUN_module.cc.
|
private |
Definition at line 290 of file MUSUN_module.cc.