LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
evgen::NDKGen Class Reference

A module to check the results from the Monte Carlo generator. More...

Inheritance diagram for evgen::NDKGen:
art::EDProducer art::ProducerBase art::Consumer art::EngineCreator art::ProductRegistryHelper

Public Types

using ModuleType = EDProducer
 
using WorkerType = WorkerT< EDProducer >
 
template<typename UserConfig , typename KeysToIgnore = void>
using Table = ProducerBase::Table< UserConfig, KeysToIgnore >
 

Public Member Functions

 NDKGen (fhicl::ParameterSet const &pset)
 
virtual ~NDKGen ()
 
void produce (art::Event &evt)
 
void beginJob ()
 
void beginRun (art::Run &run)
 
void reconfigure (fhicl::ParameterSet const &p)
 
void endJob ()
 
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_tcreateEngine (seed_t seed)
 
base_engine_tcreateEngine (seed_t seed, std::string const &kind_of_engine_to_make)
 
base_engine_tcreateEngine (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< Consumernon_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

std::string ParticleStatus (int StatusCode)
 
std::string ReactionChannel (int ccnc, int mode)
 
void FillHistograms (simb::MCTruth mc)
 

Private Attributes

std::string fNdkFile
 
std::ifstream * fEventFile
 
TStopwatch fStopwatch
 
std::string fNDKModuleLabel
 keep track of how long it takes to run the job More...
 
TH1F * fGenerated [6]
 Spectra as generated. More...
 
TH1F * fVertexX
 vertex location of generated events in x More...
 
TH1F * fVertexY
 vertex location of generated events in y More...
 
TH1F * fVertexZ
 vertex location of generated events in z More...
 
TH2F * fVertexXY
 vertex location in xy More...
 
TH2F * fVertexXZ
 vertex location in xz More...
 
TH2F * fVertexYZ
 vertex location in yz More...
 
TH1F * fDCosX
 direction cosine in x More...
 
TH1F * fDCosY
 direction cosine in y More...
 
TH1F * fDCosZ
 direction cosine in z More...
 
TH1F * fMuMomentum
 momentum of outgoing muons More...
 
TH1F * fMuDCosX
 direction cosine of outgoing mu in x More...
 
TH1F * fMuDCosY
 direction cosine of outgoing mu in y More...
 
TH1F * fMuDCosZ
 direction cosine of outgoing mu in z More...
 
TH1F * fEMomentum
 momentum of outgoing electrons More...
 
TH1F * fEDCosX
 direction cosine of outgoing e in x More...
 
TH1F * fEDCosY
 direction cosine of outgoing e in y More...
 
TH1F * fEDCosZ
 direction cosine of outgoing e in z More...
 
TH1F * fCCMode
 CC interaction mode. More...
 
TH1F * fNCMode
 CC interaction mode. More...
 
TH1F * fECons
 histogram to determine if energy is conserved in the event More...
 

Detailed Description

A module to check the results from the Monte Carlo generator.

Definition at line 64 of file NDKGen_module.cc.

Member Typedef Documentation

using art::EDProducer::ModuleType = EDProducer
inherited

Definition at line 34 of file EDProducer.h.

template<typename UserConfig , typename KeysToIgnore = void>
using art::EDProducer::Table = ProducerBase::Table<UserConfig, KeysToIgnore>
inherited

Definition at line 43 of file EDProducer.h.

using art::EDProducer::WorkerType = WorkerT<EDProducer>
inherited

Definition at line 35 of file EDProducer.h.

Constructor & Destructor Documentation

evgen::NDKGen::NDKGen ( fhicl::ParameterSet const &  pset)
explicit

Definition at line 125 of file NDKGen_module.cc.

126  {
127  this->reconfigure(pset);
128  fStopwatch.Start();
129 
130  produces< std::vector<simb::MCTruth> >();
131  produces< sumdata::RunData, art::InRun >();
132 
133  fEventFile = new std::ifstream(fNdkFile.c_str());
134  if(!fEventFile->good())
135  exit(0);
136  // create a default random engine; obtain the random seed from NuRandomService,
137  // unless overridden in configuration with key "Seed"
139  ->createEngine(*this, pset, "Seed");
140 
141  }
void reconfigure(fhicl::ParameterSet const &p)
std::string fNdkFile
TStopwatch fStopwatch
base_engine_t & createEngine(seed_t seed)
std::ifstream * fEventFile
evgen::NDKGen::~NDKGen ( )
virtual

Definition at line 144 of file NDKGen_module.cc.

145  {
146  fStopwatch.Stop();
147  }
TStopwatch fStopwatch

Member Function Documentation

void evgen::NDKGen::beginJob ( )
virtual

Reimplemented from art::EDProducer.

Definition at line 157 of file NDKGen_module.cc.

References geo::GeometryCore::DetHalfHeight(), geo::GeometryCore::DetHalfWidth(), geo::GeometryCore::DetLength(), art::TFileDirectory::make(), x, y, and z.

157  {
158 
159  // Get access to the TFile service.
161 
162  fGenerated[0] = tfs->make<TH1F>("fGenerated_necc","", 100, 0.0, 20.0);
163  fGenerated[1] = tfs->make<TH1F>("fGenerated_nebcc","", 100, 0.0, 20.0);
164  fGenerated[2] = tfs->make<TH1F>("fGenerated_nmcc","", 100, 0.0, 20.0);
165  fGenerated[3] = tfs->make<TH1F>("fGenerated_nmbcc","", 100, 0.0, 20.0);
166  fGenerated[4] = tfs->make<TH1F>("fGenerated_nnc","", 100, 0.0, 20.0);
167  fGenerated[5] = tfs->make<TH1F>("fGenerated_nbnc","", 100, 0.0, 20.0);
168 
169  fDCosX = tfs->make<TH1F>("fDCosX", ";dx/ds", 200, -1., 1.);
170  fDCosY = tfs->make<TH1F>("fDCosY", ";dy/ds", 200, -1., 1.);
171  fDCosZ = tfs->make<TH1F>("fDCosZ", ";dz/ds", 200, -1., 1.);
172 
173  fMuMomentum = tfs->make<TH1F>("fMuMomentum", ";p_{#mu} (GeV/c)", 500, 0., 50.);
174  fMuDCosX = tfs->make<TH1F>("fMuDCosX", ";dx/ds;", 200, -1., 1.);
175  fMuDCosY = tfs->make<TH1F>("fMuDCosY", ";dy/ds;", 200, -1., 1.);
176  fMuDCosZ = tfs->make<TH1F>("fMuDCosZ", ";dz/ds;", 200, -1., 1.);
177 
178  fEMomentum = tfs->make<TH1F>("fEMomentum", ";p_{e} (GeV/c)", 500, 0., 50.);
179  fEDCosX = tfs->make<TH1F>("fEDCosX", ";dx/ds;", 200, -1., 1.);
180  fEDCosY = tfs->make<TH1F>("fEDCosY", ";dy/ds;", 200, -1., 1.);
181  fEDCosZ = tfs->make<TH1F>("fEDCosZ", ";dz/ds;", 200, -1., 1.);
182 
183  fCCMode = tfs->make<TH1F>("fCCMode", ";CC Interaction Mode;", 5, 0., 5.);
184  fCCMode->GetXaxis()->SetBinLabel(1, "QE");
185  fCCMode->GetXaxis()->SetBinLabel(2, "Res");
186  fCCMode->GetXaxis()->SetBinLabel(3, "DIS");
187  fCCMode->GetXaxis()->SetBinLabel(4, "Coh");
188  fCCMode->GetXaxis()->SetBinLabel(5, "kInverseMuDecay");
189  fCCMode->GetXaxis()->CenterLabels();
190 
191  fNCMode = tfs->make<TH1F>("fNCMode", ";NC Interaction Mode;", 5, 0., 5.);
192  fNCMode->GetXaxis()->SetBinLabel(1, "QE");
193  fNCMode->GetXaxis()->SetBinLabel(2, "Res");
194  fNCMode->GetXaxis()->SetBinLabel(3, "DIS");
195  fNCMode->GetXaxis()->SetBinLabel(4, "Coh");
196  fNCMode->GetXaxis()->SetBinLabel(5, "kNuElectronElastic");
197  fNCMode->GetXaxis()->CenterLabels();
198 
199  //fDeltaE = tfs->make<TH1F>("fDeltaE", ";#Delta E_{#nu} (GeV);", 200, -1., 1.);
200  fECons = tfs->make<TH1F>("fECons", ";#Delta E(#nu,lepton);", 500, -5., 5.);
201 
203  double x = 2.1*geo->DetHalfWidth();
204  double y = 2.1*geo->DetHalfHeight();
205  double z = 2.*geo->DetLength();
206  int xdiv = TMath::Nint(2*x/5.);
207  int ydiv = TMath::Nint(2*y/5.);
208  int zdiv = TMath::Nint(2*z/5.);
209 
210  fVertexX = tfs->make<TH1F>("fVertexX", ";x (cm)", xdiv, -x, x);
211  fVertexY = tfs->make<TH1F>("fVertexY", ";y (cm)", ydiv, -y, y);
212  fVertexZ = tfs->make<TH1F>("fVertexZ", ";z (cm)", zdiv, -0.2*z, z);
213 
214  fVertexXY = tfs->make<TH2F>("fVertexXY", ";x (cm);y (cm)", xdiv, -x, x, ydiv, -y, y);
215  fVertexXZ = tfs->make<TH2F>("fVertexXZ", ";z (cm);x (cm)", zdiv, -0.2*z, z, xdiv, -x, x);
216  fVertexYZ = tfs->make<TH2F>("fVertexYZ", ";z (cm);y (cm)", zdiv, -0.2*z, z, ydiv, -y, y);
217 
218  }
Float_t x
Definition: compare.C:6
TH1F * fMuMomentum
momentum of outgoing muons
TH2F * fVertexXY
vertex location in xy
TH1F * fGenerated[6]
Spectra as generated.
TH1F * fMuDCosY
direction cosine of outgoing mu in y
TH1F * fMuDCosZ
direction cosine of outgoing mu in z
geo::Length_t DetHalfWidth(geo::TPCID const &tpcid) const
Returns the half width of the active volume of the specified TPC.
TH1F * fECons
histogram to determine if energy is conserved in the event
Float_t y
Definition: compare.C:6
TH1F * fEDCosZ
direction cosine of outgoing e in z
TH1F * fEMomentum
momentum of outgoing electrons
Double_t z
Definition: plot.C:279
TH2F * fVertexXZ
vertex location in xz
TH1F * fVertexY
vertex location of generated events in y
TH1F * fCCMode
CC interaction mode.
TH1F * fEDCosY
direction cosine of outgoing e in y
geo::Length_t DetHalfHeight(geo::TPCID const &tpcid) const
Returns the half height of the active volume of the specified TPC.
TH1F * fMuDCosX
direction cosine of outgoing mu in x
TH2F * fVertexYZ
vertex location in yz
TH1F * fVertexZ
vertex location of generated events in z
geo::Length_t DetLength(geo::TPCID const &tpcid) const
Returns the length of the active volume of the specified TPC.
TH1F * fDCosZ
direction cosine in z
TH1F * fEDCosX
direction cosine of outgoing e in x
T * make(ARGS...args) const
TH1F * fNCMode
CC interaction mode.
TH1F * fDCosY
direction cosine in y
Namespace collecting geometry-related classes utilities.
TH1F * fVertexX
vertex location of generated events in x
TH1F * fDCosX
direction cosine in x
void evgen::NDKGen::beginRun ( art::Run run)
virtual

Reimplemented from art::EDProducer.

Definition at line 221 of file NDKGen_module.cc.

References geo::GeometryCore::DetectorName(), and art::Run::put().

222  {
223 
224  // grab the geometry object to see what geometry we are using
226  std::unique_ptr<sumdata::RunData> runcol(new sumdata::RunData(geo->DetectorName()));
227 
228  run.put(std::move(runcol));
229 
230  return;
231  }
art::ProductID put(std::unique_ptr< PROD > &&)
Definition: Run.h:148
std::string DetectorName() const
Returns a string with the name of the detector, as configured.
Namespace collecting geometry-related classes utilities.
template<typename T , BranchType = InEvent>
ProductToken<T> art::Consumer::consumes ( InputTag const &  )
inherited
template<typename T , art::BranchType BT>
art::ProductToken<T> art::Consumer::consumes ( InputTag const &  it)
inherited

Definition at line 147 of file Consumer.h.

References art::InputTag::instance(), art::InputTag::label(), and art::InputTag::process().

148 {
149  if (!moduleContext_)
150  return ProductToken<T>::invalid();
151 
152  consumables_[BT].emplace_back(ConsumableType::Product,
153  TypeID{typeid(T)},
154  it.label(),
155  it.instance(),
156  it.process());
157  return ProductToken<T>{it};
158 }
static ProductToken< T > invalid()
Definition: ProductToken.h:47
ConsumableProducts consumables_
Definition: Consumer.h:138
bool moduleContext_
Definition: Consumer.h:136
template<typename T , art::BranchType BT>
void art::Consumer::consumesMany ( )
inherited

Definition at line 162 of file Consumer.h.

163 {
164  if (!moduleContext_)
165  return;
166 
167  consumables_[BT].emplace_back(ConsumableType::Many, TypeID{typeid(T)});
168 }
ConsumableProducts consumables_
Definition: Consumer.h:138
bool moduleContext_
Definition: Consumer.h:136
template<typename Element , BranchType = InEvent>
ViewToken<Element> art::Consumer::consumesView ( InputTag const &  )
inherited
template<typename T , art::BranchType BT>
art::ViewToken<T> art::Consumer::consumesView ( InputTag const &  it)
inherited

Definition at line 172 of file Consumer.h.

References art::InputTag::instance(), art::InputTag::label(), and art::InputTag::process().

173 {
174  if (!moduleContext_)
175  return ViewToken<T>::invalid();
176 
177  consumables_[BT].emplace_back(ConsumableType::ViewElement,
178  TypeID{typeid(T)},
179  it.label(),
180  it.instance(),
181  it.process());
182  return ViewToken<T>{it};
183 }
static ViewToken< Element > invalid()
Definition: ProductToken.h:75
ConsumableProducts consumables_
Definition: Consumer.h:138
bool moduleContext_
Definition: Consumer.h:136
EngineCreator::base_engine_t & EngineCreator::createEngine ( seed_t  seed,
std::string const &  kind_of_engine_to_make 
)
inherited

Definition at line 32 of file EngineCreator.cc.

References art::EngineCreator::rng().

34 {
35  return rng()->createEngine(
36  placeholder_schedule_id(), seed, kind_of_engine_to_make);
37 }
long seed
Definition: chem4.cc:68
static art::ServiceHandle< art::RandomNumberGenerator > & rng()
EngineCreator::base_engine_t & EngineCreator::createEngine ( seed_t  seed,
std::string const &  kind_of_engine_to_make,
label_t const &  engine_label 
)
inherited

Definition at line 40 of file EngineCreator.cc.

References art::EngineCreator::rng().

43 {
44  return rng()->createEngine(
45  placeholder_schedule_id(), seed, kind_of_engine_to_make, engine_label);
46 }
long seed
Definition: chem4.cc:68
static art::ServiceHandle< art::RandomNumberGenerator > & rng()
CurrentProcessingContext const * art::EDProducer::currentContext ( ) const
protectedinherited

Definition at line 120 of file EDProducer.cc.

References art::EDProducer::current_context_.

121  {
122  return current_context_.get();
123  }
CPC_exempt_ptr current_context_
Definition: EDProducer.h:116
void evgen::NDKGen::endJob ( )
virtual

Reimplemented from art::EDProducer.

Definition at line 234 of file NDKGen_module.cc.

235  {
236  fEventFile->close();
237  }
std::ifstream * fEventFile
void evgen::NDKGen::FillHistograms ( simb::MCTruth  mc)
private

look for the outgoing lepton in the particle stack just interested in the first one

Definition at line 497 of file NDKGen_module.cc.

References simb::MCNeutrino::CCNC(), DEFINE_ART_MODULE, simb::MCParticle::E(), energy, simb::MCTruth::GetNeutrino(), simb::MCTruth::GetParticle(), simb::kCC, art::left(), simb::MCNeutrino::Mode(), simb::MCTruth::NParticles(), simb::MCNeutrino::Nu(), simb::MCParticle::P(), part, simb::MCParticle::PdgCode(), simb::MCParticle::Px(), simb::MCParticle::Py(), simb::MCParticle::Pz(), simb::MCParticle::Vx(), simb::MCParticle::Vy(), and simb::MCParticle::Vz().

498  {
499  // Decide which histograms to put the spectrum in
500  int id = -1;
501  if (mc.GetNeutrino().CCNC()==simb::kCC) {
502  fCCMode->Fill(mc.GetNeutrino().Mode());
503  if (mc.GetNeutrino().Nu().PdgCode() == 12) id = 0;
504  else if (mc.GetNeutrino().Nu().PdgCode() == -12) id = 1;
505  else if (mc.GetNeutrino().Nu().PdgCode() == 14) id = 2;
506  else if (mc.GetNeutrino().Nu().PdgCode() == -14) id = 3;
507  else return;
508  }
509  else {
510  fNCMode->Fill(mc.GetNeutrino().Mode());
511  if (mc.GetNeutrino().Nu().PdgCode() > 0) id = 4;
512  else id = 5;
513  }
514  if (id==-1) abort();
515 
516  // Fill the specta histograms
517  fGenerated[id]->Fill(mc.GetNeutrino().Nu().E() );
518 
519  //< fill the vertex histograms from the neutrino - that is always
520  //< particle 0 in the list
521  simb::MCNeutrino mcnu = mc.GetNeutrino();
522  const simb::MCParticle nu = mcnu.Nu();
523 
524  fVertexX->Fill(nu.Vx());
525  fVertexY->Fill(nu.Vy());
526  fVertexZ->Fill(nu.Vz());
527 
528  fVertexXY->Fill(nu.Vx(), nu.Vy());
529  fVertexXZ->Fill(nu.Vz(), nu.Vx());
530  fVertexYZ->Fill(nu.Vz(), nu.Vy());
531 
532  double mom = nu.P();
533  if(std::abs(mom) > 0.){
534  fDCosX->Fill(nu.Px()/mom);
535  fDCosY->Fill(nu.Py()/mom);
536  fDCosZ->Fill(nu.Pz()/mom);
537  }
538 
539 
540 // LOG_DEBUG("GENIEInteractionInformation")
541 // << std::endl
542 // << "REACTION: " << ReactionChannel(mc.GetNeutrino().CCNC(),mc.GetNeutrino().Mode())
543 // << std::endl
544 // << "-----------> Particles in the Stack = " << mc.NParticles() << std::endl
545 // << std::setiosflags(std::ios::left)
546 // << std::setw(20) << "PARTICLE"
547 // << std::setiosflags(std::ios::left)
548 // << std::setw(32) << "STATUS"
549 // << std::setw(18) << "E (GeV)"
550 // << std::setw(18) << "m (GeV/c2)"
551 // << std::setw(18) << "Ek (GeV)"
552 // << std::endl << std::endl;
553 
554 // const TDatabasePDG* databasePDG = TDatabasePDG::Instance();
555 
556 // // Loop over the particle stack for this event
557 // for(int i = 0; i < mc.NParticles(); ++i){
558 // simb::MCParticle part(mc.GetParticle(i));
559 // std::string name = databasePDG->GetParticle(part.PdgCode())->GetName();
560 // int code = part.StatusCode();
561 // std::string status = ParticleStatus(code);
562 // double mass = part.Mass();
563 // double energy = part.E();
564 // double Ek = (energy-mass); // Kinetic Energy (GeV)
565 // if(status=="kIStFinalStB4Interactions")
566 // LOG_DEBUG("GENIEFinalState")
567 // << std::setiosflags(std::ios::left) << std::setw(20) << name
568 // << std::setiosflags(std::ios::left) << std::setw(32) <<status
569 // << std::setw(18)<< energy
570 // << std::setw(18)<< mass
571 // << std::setw(18)<< Ek <<std::endl;
572 // else
573 // LOG_DEBUG("GENIEFinalState")
574 // << std::setiosflags(std::ios::left) << std::setw(20) << name
575 // << std::setiosflags(std::ios::left) << std::setw(32) << status
576 // << std::setw(18) << energy
577 // << std::setw(18) << mass <<std::endl;
578 
579  std::cout << "REACTION: " << ReactionChannel(mc.GetNeutrino().CCNC(),mc.GetNeutrino().Mode()) << std::endl;
580  std::cout << "-----------> Particles in the Stack = " << mc.NParticles() << std::endl;
581  std::cout << std::setiosflags(std::ios::left)
582  << std::setw(20) << "PARTICLE"
583  << std::setiosflags(std::ios::left)
584  << std::setw(32) << "STATUS"
585  << std::setw(18) << "E (GeV)"
586  << std::setw(18) << "m (GeV/c2)"
587  << std::setw(18) << "Ek (GeV)"
588  << std::endl << std::endl;
589 
590  const TDatabasePDG* databasePDG = TDatabasePDG::Instance();
591 
592  // Loop over the particle stack for this event
593  for(int i = 0; i < mc.NParticles(); ++i){
595  std::string name;
596  if (part.PdgCode() == 18040)
597  name = "Ar40 18040";
598  else if (part.PdgCode() != -99999 )
599  {
600  name = databasePDG->GetParticle(part.PdgCode())->GetName();
601  }
602 
603  int code = part.StatusCode();
604  std::string status = ParticleStatus(code);
605  double mass = part.Mass();
606  double energy = part.E();
607  double Ek = (energy-mass); // Kinetic Energy (GeV)
608 
609  std::cout << std::setiosflags(std::ios::left) << std::setw(20) << name
610  << std::setiosflags(std::ios::left) << std::setw(32) <<status
611  << std::setw(18)<< energy
612  << std::setw(18)<< mass
613  << std::setw(18)<< Ek <<std::endl;
614  }
615 
616  if(mc.GetNeutrino().CCNC() == simb::kCC){
617 
620  for(int i = 0; i < mc.NParticles(); ++i){
622  if(abs(part.PdgCode()) == 11){
623  fEMomentum->Fill(part.P());
624  fEDCosX->Fill(part.Px()/part.P());
625  fEDCosY->Fill(part.Py()/part.P());
626  fEDCosZ->Fill(part.Pz()/part.P());
627  fECons->Fill(nu.E() - part.E());
628  break;
629  }
630  else if(abs(part.PdgCode()) == 13){
631  fMuMomentum->Fill(part.P());
632  fMuDCosX->Fill(part.Px()/part.P());
633  fMuDCosY->Fill(part.Py()/part.P());
634  fMuDCosZ->Fill(part.Pz()/part.P());
635  fECons->Fill(nu.E() - part.E());
636  break;
637  }
638  }// end loop over particles
639  }//end if CC interaction
640 
641  return;
642  }
double E(const int i=0) const
Definition: MCParticle.h:237
TH1F * fMuMomentum
momentum of outgoing muons
TH2F * fVertexXY
vertex location in xy
int PdgCode() const
Definition: MCParticle.h:216
int CCNC() const
Definition: MCNeutrino.h:152
const simb::MCNeutrino & GetNeutrino() const
Definition: MCTruth.h:74
TH1F * fGenerated[6]
Spectra as generated.
double Py(const int i=0) const
Definition: MCParticle.h:235
TH1F * fMuDCosY
direction cosine of outgoing mu in y
TH1F * fMuDCosZ
direction cosine of outgoing mu in z
TH1F * fECons
histogram to determine if energy is conserved in the event
TH1F * fEDCosZ
direction cosine of outgoing e in z
const simb::MCParticle & Nu() const
Definition: MCNeutrino.h:150
TH1F * fEMomentum
momentum of outgoing electrons
TH2F * fVertexXZ
vertex location in xz
double Px(const int i=0) const
Definition: MCParticle.h:234
TH1F * fVertexY
vertex location of generated events in y
int NParticles() const
Definition: MCTruth.h:72
TH1F * fCCMode
CC interaction mode.
TH1F * fEDCosY
direction cosine of outgoing e in y
double P(const int i=0) const
Definition: MCParticle.h:238
TString part[npart]
Definition: Style.C:32
TH1F * fMuDCosX
direction cosine of outgoing mu in x
double energy
Definition: plottest35.C:25
TH2F * fVertexYZ
vertex location in yz
TH1F * fVertexZ
vertex location of generated events in z
TH1F * fDCosZ
direction cosine in z
std::string ReactionChannel(int ccnc, int mode)
const simb::MCParticle & GetParticle(int i) const
Definition: MCTruth.h:73
TH1F * fEDCosX
direction cosine of outgoing e in x
double Vx(const int i=0) const
Definition: MCParticle.h:225
constexpr auto const & left(const_AssnsIter< L, R, D, Dir > const &a, const_AssnsIter< L, R, D, Dir > const &b)
Definition: AssnsIter.h:104
double Pz(const int i=0) const
Definition: MCParticle.h:236
double Vz(const int i=0) const
Definition: MCParticle.h:227
std::string ParticleStatus(int StatusCode)
TH1F * fNCMode
CC interaction mode.
TH1F * fDCosY
direction cosine in y
Event generator information.
Definition: MCNeutrino.h:18
int Mode() const
Definition: MCNeutrino.h:153
TH1F * fVertexX
vertex location of generated events in x
TH1F * fDCosX
direction cosine in x
double Vy(const int i=0) const
Definition: MCParticle.h:226
EngineCreator::seed_t EngineCreator::get_seed_value ( fhicl::ParameterSet const &  pset,
char const  key[] = "seed",
seed_t const  implicit_seed = -1 
)
inherited

Definition at line 49 of file EngineCreator.cc.

References fhicl::ParameterSet::get().

Referenced by art::MixFilter< T >::initEngine_().

52 {
53  auto const& explicit_seeds = pset.get<std::vector<int>>(key, {});
54  return explicit_seeds.empty() ? implicit_seed : explicit_seeds.front();
55 }
template<typename PROD , BranchType B>
ProductID art::EDProducer::getProductID ( std::string const &  instanceName = {}) const
inlineinherited

Definition at line 123 of file EDProducer.h.

References art::EDProducer::moduleDescription_.

124  {
125  return ProducerBase::getProductID<PROD, B>(moduleDescription_,
126  instanceName);
127  }
ModuleDescription moduleDescription_
Definition: EDProducer.h:115
template<typename PROD , BranchType B>
ProductID art::ProducerBase::getProductID ( ModuleDescription const &  moduleDescription,
std::string const &  instanceName 
) const
inherited

Definition at line 56 of file ProducerBase.h.

References B, and art::ModuleDescription::moduleLabel().

Referenced by art::ProducerBase::modifiesEvent().

58  {
59  auto const& pd =
60  get_ProductDescription<PROD>(B, md.moduleLabel(), instanceName);
61  return pd.productID();
62  }
Int_t B
Definition: plot.C:25
template<typename T , BranchType = InEvent>
ProductToken<T> art::Consumer::mayConsume ( InputTag const &  )
inherited
template<typename T , art::BranchType BT>
art::ProductToken<T> art::Consumer::mayConsume ( InputTag const &  it)
inherited

Definition at line 190 of file Consumer.h.

References art::InputTag::instance(), art::InputTag::label(), and art::InputTag::process().

191 {
192  if (!moduleContext_)
193  return ProductToken<T>::invalid();
194 
195  consumables_[BT].emplace_back(ConsumableType::Product,
196  TypeID{typeid(T)},
197  it.label(),
198  it.instance(),
199  it.process());
200  return ProductToken<T>{it};
201 }
static ProductToken< T > invalid()
Definition: ProductToken.h:47
ConsumableProducts consumables_
Definition: Consumer.h:138
bool moduleContext_
Definition: Consumer.h:136
template<typename T , art::BranchType BT>
void art::Consumer::mayConsumeMany ( )
inherited

Definition at line 205 of file Consumer.h.

206 {
207  if (!moduleContext_)
208  return;
209 
210  consumables_[BT].emplace_back(ConsumableType::Many, TypeID{typeid(T)});
211 }
ConsumableProducts consumables_
Definition: Consumer.h:138
bool moduleContext_
Definition: Consumer.h:136
template<typename Element , BranchType = InEvent>
ViewToken<Element> art::Consumer::mayConsumeView ( InputTag const &  )
inherited
template<typename T , art::BranchType BT>
art::ViewToken<T> art::Consumer::mayConsumeView ( InputTag const &  it)
inherited

Definition at line 215 of file Consumer.h.

References art::InputTag::instance(), art::InputTag::label(), and art::InputTag::process().

216 {
217  if (!moduleContext_)
218  return ViewToken<T>::invalid();
219 
220  consumables_[BT].emplace_back(ConsumableType::ViewElement,
221  TypeID{typeid(T)},
222  it.label(),
223  it.instance(),
224  it.process());
225  return ViewToken<T>{it};
226 }
static ViewToken< Element > invalid()
Definition: ProductToken.h:75
ConsumableProducts consumables_
Definition: Consumer.h:138
bool moduleContext_
Definition: Consumer.h:136
bool art::ProducerBase::modifiesEvent ( ) const
inlineinherited

Definition at line 40 of file ProducerBase.h.

References art::ProducerBase::getProductID().

41  {
42  return true;
43  }
std::string evgen::NDKGen::ParticleStatus ( int  StatusCode)
private

Definition at line 445 of file NDKGen_module.cc.

References sim::ParticleStatusName().

446  {
447  int code = StatusCode;
448  std::string ParticleStatusName;
449 
450  switch(code)
451  {
452  case 0:
453  ParticleStatusName = "kIStInitialState";
454  break;
455  case 1:
456  ParticleStatusName = "kIStFinalState";
457  break;
458  case 11:
459  ParticleStatusName = "kIStNucleonTarget";
460  break;
461  default:
462  ParticleStatusName = "Status Unknown";
463  }
464  return ParticleStatusName;
465  }
std::string ParticleStatusName(int code)
Describes the status of a particle (simb::MCParticle::StatusCode()).
void art::Consumer::prepareForJob ( fhicl::ParameterSet const &  pset)
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().

90 {
91  if (!moduleContext_)
92  return;
93 
94  pset.get_if_present("errorOnMissingConsumes", requireConsumes_);
95  for (auto& consumablesPerBranch : consumables_) {
96  cet::sort_all(consumablesPerBranch);
97  }
98 }
bool requireConsumes_
Definition: Consumer.h:137
ConsumableProducts consumables_
Definition: Consumer.h:138
bool moduleContext_
Definition: Consumer.h:136
void evgen::NDKGen::produce ( art::Event evt)
virtual

Implements art::EDProducer.

Definition at line 239 of file NDKGen_module.cc.

References simb::MCTruth::Add(), simb::MCParticle::AddTrajectoryPoint(), geo::GeometryCore::DetHalfHeight(), geo::GeometryCore::DetHalfWidth(), geo::GeometryCore::DetLength(), E, art::EventID::event(), art::RandomNumberGenerator::getEngine(), art::Event::id(), in, simb::kUnknown, geo::TPCGeo::LocalToWorld(), simb::MCTruth::NParticles(), geo::GeometryCore::NTPC(), art::Event::put(), simb::MCTruth::SetOrigin(), and geo::GeometryCore::TPC().

240  {
241 
242  std::cout << std::endl;
243  std::cout<<"------------------------------------------------------------------------------"<<std::endl;
244  //std::cout << "run : " << evt.Header().Run() << std::endl;
245  //std::cout << "subrun : " << evt.Header().Subrun() << std::endl;
246  //std::cout << "event : " << evt.Header().Event() << std::endl;
247  std::cout << "event : " << evt.id().event() << std::endl;
248 
249  // TODO: fill more quantities out, as below.
250  /*
251  double X; // vertex position from Ndk
252  double Y; // vertex position from Ndk
253  double Z; // vertex position from Ndk
254  double PDGCODE = -9999.;
255  double CHANNEL = -9999.;
256  int channel = -9999;
257  double energy = 0.; // in MeV from Ndk
258  double cosx = 0.;
259  double cosy = 0.;
260  double cosz = 0.;
261 
262  int partnumber = 0;
263  */
264 
265  std::string name, k, dollar;
266 
267 
268  // event dump format on file output by the two commands ....
269  // gevgen_ndcy -g 1000180400 -m 8 -n 400 -o ndk
270  // gevdump -f ndk.1000.ghep.root > ndk.out
271  std::string Name;
272  int Idx, Ist, PDG, Mother1, Mother2, Daughter1 ,Daughter2;
273  double Px, Py, Pz, E, m ;
274  std::string p1,p2,p3,p4,p5,p6,p7,p8,p9,p10,p11,p12,p13,p14;
275 
276 
277  int trackid = -1; // set track id to -i as these are all primary particles and have id <= 0
278  std::string primary("primary");
279  int FirstMother = -1;
280  double Mass = -9999;
281  int Status = -9999;
282 
283  double P; // momentum of MCParticle IN GeV/c
284 
285  // TODO: Could perhaps imagine using these in NDk.
286  /*
287  int targetnucleusPdg = -9999;
288  int hitquarkPdg = -9999;
289  double Q2 = -9999;
290  */
291  TLorentzVector Neutrino;
292  TLorentzVector Lepton;
293  TLorentzVector Target;
294  TLorentzVector q;
295  TLorentzVector Hadron4mom;
296 
297  // TODO: Could perhaps imagine using these in NDk.
298  /*
299  int Tpdg = 0; // for target
300  double Tmass = 0;
301  int Tstatus = 11;
302  double Tcosx, Tcosy, Tcosz, Tenergy;
303  */
304 
305  TLorentzVector Tpos;
306 
307 
308  std::unique_ptr< std::vector<simb::MCTruth> > truthcol(new std::vector<simb::MCTruth>);
309  simb::MCTruth truth;
310 
313  CLHEP::HepRandomEngine &engine = rng->getEngine();
314  CLHEP::RandFlat flat(engine);
315 
316  double fvCut (5.0); // force vtx to be this far from any wall.
317 
318  // Find boundary of active volume
319  double minx = 1e9;
320  double maxx = -1e9;
321  double miny = 1e9;
322  double maxy = -1e9;
323  double minz = 1e9;
324  double maxz = -1e9;
325  for (size_t i = 0; i<geo->NTPC(); ++i)
326  {
327  double local[3] = {0.,0.,0.};
328  double world[3] = {0.,0.,0.};
329  const geo::TPCGeo &tpc = geo->TPC(i);
330  tpc.LocalToWorld(local,world);
331  if (minx>world[0]-geo->DetHalfWidth(i))
332  minx = world[0]-geo->DetHalfWidth(i);
333  if (maxx<world[0]+geo->DetHalfWidth(i))
334  maxx = world[0]+geo->DetHalfWidth(i);
335  if (miny>world[1]-geo->DetHalfHeight(i))
336  miny = world[1]-geo->DetHalfHeight(i);
337  if (maxy<world[1]+geo->DetHalfHeight(i))
338  maxy = world[1]+geo->DetHalfHeight(i);
339  if (minz>world[2]-geo->DetLength(i)/2.)
340  minz = world[2]-geo->DetLength(i)/2.;
341  if (maxz<world[2]+geo->DetLength(i)/2.)
342  maxz = world[2]+geo->DetLength(i)/2.;
343  }
344 
345  // Assign vertice position
346  double X0 = 0.0 + flat.fire( minx+fvCut , maxx-fvCut );
347  double Y0 = 0.0 + flat.fire( miny+fvCut , maxy-fvCut );
348  double Z0 = 0.0 + flat.fire( minz+fvCut , maxz-fvCut );
349 
350  std::cout << "NDKGen_module: X, Y, Z of vtx: " << X0 << ", "<< Y0 << ", "<< Z0 << std::endl;
351 
352  int GenieEvt = -999;
353 
354  if(!fEventFile->good())
355  std::cout << "NdkFile: Problem reading Ndk file" << std::endl;
356 
357  while(getline(*fEventFile,k)){
358 
359  if (k.find("** Event:")!= std::string::npos) {
360  std::istringstream in;
361  in.clear();
362  in.str(k);
363  std::string dummy;
364  in>> dummy>> dummy>> dummy >> dummy>> dummy>> dummy>> dummy >> dummy>> dummy>> dummy >> GenieEvt;
365  std::cout<<"Genie Evt "<< GenieEvt <<" art evt "<<evt.id().event()<<"\n";
366  }
367 
368  if (GenieEvt+1 != static_cast<int>(evt.id().event()))
369  continue;
370  else {
371 
372  if (!k.compare(0,25,"GENIE Interaction Summary")) // testing for new event.
373  break;
374  if (k.compare(0,1,"|") || k.compare(1,2," ")) continue; // uninteresting line if it doesn't start with "|" and if second and third characters aren't spaces.
375  if (k.find("Fin-Init") != std::string::npos) continue; // Meh.
376  if (k.find("Ar") != std::string::npos) continue; // Meh.
377  if (k.find("Cl") != std::string::npos) continue; // ignore chlorine nucleus in nnbar events
378  if (k.find("HadrBlob") != std::string::npos) continue; // Meh.
379  if (k.find("NucBindE") != std::string::npos) continue; // Meh. atmo
380  if (k.find("FLAGS") != std::string::npos) break; // Event end. gevgen_ndcy
381  if (k.find("Vertex") != std::string::npos) break; // Event end. atmo
382 
383  // if (!k.compare(26,1,"3") || !k.compare(26,1,"1")) ; // New event or stable particles.
384  if (!k.compare(26,1,"1")) // New event or stable particles.
385  {
386 
387  std::istringstream in;
388  in.clear();
389  in.str(k);
390 
391  in>>p1>> Idx >>p2>> Name >>p3>> Ist >>p4>> PDG >>p5>>Mother1 >> p6 >> Mother2 >>p7>> Daughter1 >>p8>> Daughter2 >>p9>>Px>>p10>>Py>>p11>>Pz>>p12>>E>>p13>> m>>p14;
392  //std::cout<<std::setprecision(9)<<dollar<<" "<<name<<" "<<PDGCODE<<" "<<energy<<" "<<cosx<<" "<<cosy<<" "<<cosz<<" "<<partnumber<<std::endl;
393  if (Ist!=1) continue;
394 
395  std::cout << "PDG = " << PDG << std::endl;
396 
397  const TDatabasePDG* databasePDG = TDatabasePDG::Instance();
398  const TParticlePDG* definition = databasePDG->GetParticle(PDG);
399  Mass = definition->Mass(); // GeV
400  if (E-Mass < 0.001) continue; // KE is too low.
401 
402  // if(partnumber == -1)
403  Status = 1;
404 
405  simb::MCParticle mcpart(trackid,
406  PDG,
407  primary,
408  FirstMother,
409  Mass,
410  Status
411  );
412 
413  P = std::sqrt(pow(E,2.) - pow(Mass,2.)); // GeV/c
414  std::cout << "Momentum = " << P << std::endl;
415 
416  TLorentzVector pos(X0, Y0, Z0, 0);
417 
418  Tpos = pos; // for target
419 
420  TLorentzVector mom(Px,Py,Pz, E);
421 
422  mcpart.AddTrajectoryPoint(pos,mom);
423  truth.Add(mcpart);
424 
425 
426  }// loop over particles in an event
427  truth.SetOrigin(simb::kUnknown);
428 
429  //if (!k.compare(1,1,"FLAGS")) // end of event
430  // break;
431 
432  }
433  } // end while loop
434 
436  std::cout << "NDKGen.cxx: Putting " << truth.NParticles() << " tracks on stack." << std::endl;
437  truthcol->push_back(truth);
438  //FillHistograms(truth);
439  evt.put(std::move(truthcol));
440 
441  return;
442  }
geo::Length_t DetHalfWidth(geo::TPCID const &tpcid) const
Returns the half width of the active volume of the specified TPC.
Float_t E
Definition: plot.C:23
void SetOrigin(simb::Origin_t origin)
Definition: MCTruth.h:78
Geometry information for a single TPC.
Definition: TPCGeo.h:37
int NParticles() const
Definition: MCTruth.h:72
void Add(simb::MCParticle &part)
Definition: MCTruth.h:77
ProductID put(std::unique_ptr< PROD > &&product)
Definition: Event.h:102
base_engine_t & getEngine() const
geo::Length_t DetHalfHeight(geo::TPCID const &tpcid) const
Returns the half height of the active volume of the specified TPC.
std::ifstream * fEventFile
geo::Length_t DetLength(geo::TPCID const &tpcid) const
Returns the length of the active volume of the specified TPC.
unsigned int NTPC(unsigned int cstat=0) const
Returns the total number of TPCs in the specified cryostat.
static art::ServiceHandle< art::RandomNumberGenerator > & rng()
ifstream in
Definition: comparison.C:7
EventNumber_t event() const
Definition: EventID.h:117
TPCGeo const & TPC(unsigned int const tpc=0, unsigned int const cstat=0) const
Returns the specified TPC.
Event generator information.
Definition: MCTruth.h:30
Namespace collecting geometry-related classes utilities.
void LocalToWorld(const double *tpc, double *world) const
Transform point from local TPC frame to world frame.
Definition: TPCGeo.h:490
EventID id() const
Definition: Event.h:56
std::string evgen::NDKGen::ReactionChannel ( int  ccnc,
int  mode 
)
private

Definition at line 469 of file NDKGen_module.cc.

470  {
471  std::string ReactionChannelName=" ";
472 
473  if(ccnc==0)
474  ReactionChannelName = "kCC";
475  else if(ccnc==1)
476  ReactionChannelName = "kNC";
477  else std::cout<<"Current mode unknown!! "<<std::endl;
478 
479  if(mode==0)
480  ReactionChannelName += "_kQE";
481  else if(mode==1)
482  ReactionChannelName += "_kRes";
483  else if(mode==2)
484  ReactionChannelName += "_kDIS";
485  else if(mode==3)
486  ReactionChannelName += "_kCoh";
487  else if(mode==4)
488  ReactionChannelName += "_kNuElectronElastic";
489  else if(mode==5)
490  ReactionChannelName += "_kInverseMuDecay";
491  else std::cout<<"interaction mode unknown!! "<<std::endl;
492 
493  return ReactionChannelName;
494  }
void evgen::NDKGen::reconfigure ( fhicl::ParameterSet const &  p)

Definition at line 150 of file NDKGen_module.cc.

References fhicl::ParameterSet::get().

151  {
152  fNdkFile =(p.get< std::string >("NdkFile"));
153  return;
154  }
std::string fNdkFile
void art::Consumer::showMissingConsumes ( ) const
protectedinherited

Definition at line 125 of file Consumer.cc.

Referenced by art::EDProducer::doEndJob(), art::EDFilter::doEndJob(), art::EDAnalyzer::doEndJob(), and art::RootOutput::endJob().

126 {
127  if (!moduleContext_)
128  return;
129 
130  // If none of the branches have missing consumes statements, exit early.
131  if (std::all_of(cbegin(missingConsumes_),
132  cend(missingConsumes_),
133  [](auto const& perBranch) { return perBranch.empty(); }))
134  return;
135 
136  constexpr cet::HorizontalRule rule{60};
137  mf::LogPrint log{"MTdiagnostics"};
138  log << '\n'
139  << rule('=') << '\n'
140  << "The following consumes (or mayConsume) statements are missing from\n"
141  << module_context(moduleDescription_) << '\n'
142  << rule('-') << '\n';
143 
144  cet::for_all_with_index(
145  missingConsumes_, [&log](std::size_t const i, auto const& perBranch) {
146  for (auto const& pi : perBranch) {
147  log << " "
148  << assemble_consumes_statement(static_cast<BranchType>(i), pi)
149  << '\n';
150  }
151  });
152  log << rule('=');
153 }
cet::exempt_ptr< ModuleDescription const > moduleDescription_
Definition: Consumer.h:140
constexpr T pi()
Returns the constant pi (up to 35 decimal digits of precision)
bool moduleContext_
Definition: Consumer.h:136
ConsumableProductSets missingConsumes_
Definition: Consumer.h:139
void art::Consumer::validateConsumedProduct ( BranchType const  bt,
ProductInfo const &  pi 
)
protectedinherited

Definition at line 101 of file Consumer.cc.

References art::errors::ProductRegistrationFailure.

103 {
104  // Early exits if consumes tracking has been disabled or if the
105  // consumed product is an allowed consumable.
106  if (!moduleContext_)
107  return;
108 
109  if (cet::binary_search_all(consumables_[bt], pi))
110  return;
111 
112  if (requireConsumes_) {
114  "Consumer: an error occurred during validation of a "
115  "retrieved product\n\n")
116  << "The following consumes (or mayConsume) statement is missing from\n"
117  << module_context(moduleDescription_) << ":\n\n"
118  << " " << assemble_consumes_statement(bt, pi) << "\n\n";
119  }
120 
121  missingConsumes_[bt].insert(pi);
122 }
cet::exempt_ptr< ModuleDescription const > moduleDescription_
Definition: Consumer.h:140
bool requireConsumes_
Definition: Consumer.h:137
cet::coded_exception< errors::ErrorCodes, ExceptionDetail::translate > Exception
Definition: Exception.h:66
constexpr T pi()
Returns the constant pi (up to 35 decimal digits of precision)
ConsumableProducts consumables_
Definition: Consumer.h:138
bool moduleContext_
Definition: Consumer.h:136
ConsumableProductSets missingConsumes_
Definition: Consumer.h:139

Member Data Documentation

TH1F* evgen::NDKGen::fCCMode
private

CC interaction mode.

Definition at line 112 of file NDKGen_module.cc.

TH1F* evgen::NDKGen::fDCosX
private

direction cosine in x

Definition at line 98 of file NDKGen_module.cc.

TH1F* evgen::NDKGen::fDCosY
private

direction cosine in y

Definition at line 99 of file NDKGen_module.cc.

TH1F* evgen::NDKGen::fDCosZ
private

direction cosine in z

Definition at line 100 of file NDKGen_module.cc.

TH1F* evgen::NDKGen::fECons
private

histogram to determine if energy is conserved in the event

Definition at line 117 of file NDKGen_module.cc.

TH1F* evgen::NDKGen::fEDCosX
private

direction cosine of outgoing e in x

Definition at line 108 of file NDKGen_module.cc.

TH1F* evgen::NDKGen::fEDCosY
private

direction cosine of outgoing e in y

Definition at line 109 of file NDKGen_module.cc.

TH1F* evgen::NDKGen::fEDCosZ
private

direction cosine of outgoing e in z

Definition at line 110 of file NDKGen_module.cc.

TH1F* evgen::NDKGen::fEMomentum
private

momentum of outgoing electrons

Definition at line 107 of file NDKGen_module.cc.

std::ifstream* evgen::NDKGen::fEventFile
private

Definition at line 83 of file NDKGen_module.cc.

TH1F* evgen::NDKGen::fGenerated[6]
private

Spectra as generated.

Definition at line 88 of file NDKGen_module.cc.

TH1F* evgen::NDKGen::fMuDCosX
private

direction cosine of outgoing mu in x

Definition at line 103 of file NDKGen_module.cc.

TH1F* evgen::NDKGen::fMuDCosY
private

direction cosine of outgoing mu in y

Definition at line 104 of file NDKGen_module.cc.

TH1F* evgen::NDKGen::fMuDCosZ
private

direction cosine of outgoing mu in z

Definition at line 105 of file NDKGen_module.cc.

TH1F* evgen::NDKGen::fMuMomentum
private

momentum of outgoing muons

Definition at line 102 of file NDKGen_module.cc.

TH1F* evgen::NDKGen::fNCMode
private

CC interaction mode.

Definition at line 113 of file NDKGen_module.cc.

std::string evgen::NDKGen::fNdkFile
private

Definition at line 82 of file NDKGen_module.cc.

std::string evgen::NDKGen::fNDKModuleLabel
private

keep track of how long it takes to run the job

Definition at line 86 of file NDKGen_module.cc.

TStopwatch evgen::NDKGen::fStopwatch
private

Definition at line 84 of file NDKGen_module.cc.

TH1F* evgen::NDKGen::fVertexX
private

vertex location of generated events in x

Definition at line 90 of file NDKGen_module.cc.

TH2F* evgen::NDKGen::fVertexXY
private

vertex location in xy

Definition at line 94 of file NDKGen_module.cc.

TH2F* evgen::NDKGen::fVertexXZ
private

vertex location in xz

Definition at line 95 of file NDKGen_module.cc.

TH1F* evgen::NDKGen::fVertexY
private

vertex location of generated events in y

Definition at line 91 of file NDKGen_module.cc.

TH2F* evgen::NDKGen::fVertexYZ
private

vertex location in yz

Definition at line 96 of file NDKGen_module.cc.

TH1F* evgen::NDKGen::fVertexZ
private

vertex location of generated events in z

Definition at line 92 of file NDKGen_module.cc.


The documentation for this class was generated from the following file: