Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Attributes | List of all members
numue::NumuEnergy Class Reference
Inheritance diagram for numue::NumuEnergy:
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

 NumuEnergy (fhicl::ParameterSet const &pset)
 
virtual ~NumuEnergy ()
 
void produce (art::Event &e)
 
void beginRun (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< Tconsumes (InputTag const &)
 
template<typename T , art::BranchType BT>
art::ProductToken< Tconsumes (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< TconsumesView (InputTag const &it)
 
template<typename T , BranchType = InEvent>
ProductToken< TmayConsume (InputTag const &)
 
template<typename T , art::BranchType BT>
art::ProductToken< TmayConsume (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< TmayConsumeView (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 Attributes

fhicl::ParameterSet fTrackCleanUpAlgPSet
 Parameter Set to configure the TrackCleanUpAlg object. More...
 
murem::TrackCleanUpAlgfTrackCleanUpAlg
 Track Clean Up Algorithm Object. More...
 
std::string fHitModuleLabel
 Label for module making hits. More...
 
std::string fSlicerModuleLabel
 Label for module doing slicing. More...
 
std::string fTrackModuleLabel
 Label for module doing tracking. More...
 
std::string fCosRejModuleLabel
 Label for module doing cosmic rejection. More...
 
std::string fGeneratorLabel
 Generator label for the spillPot. More...
 
std::string fNuMIBeamLabel
 NuMI Beam label for the spillPot. More...
 
fhicl::ParameterSet fNumuEAlgPSet
 Parameter Set to configure the NumuEAlg object. More...
 
NumuEAlgfNumuEAlg
 Numu Energy Algorithm Object. More...
 
bool isRHC
 
bool fLoadHornCurrent
 

Detailed Description

Definition at line 40 of file NumuEnergy_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

numue::NumuEnergy::NumuEnergy ( fhicl::ParameterSet const &  pset)
explicit

Definition at line 65 of file NumuEnergy_module.cc.

References fLoadHornCurrent.

65  :
66  fTrackCleanUpAlgPSet(pset.get< fhicl::ParameterSet >("TrackCleanUpAlgPSet") ),
68  fHitModuleLabel(pset.get< std::string >("HitModuleLabel")),
69  fSlicerModuleLabel(pset.get< std::string >("SlicerModuleLabel")),
70  fTrackModuleLabel(pset.get< std::string >("TrackModuleLabel")),
71  fCosRejModuleLabel(pset.get< std::string >("CosRejModuleLabel")),
72  fGeneratorLabel (pset.get<std::string>("GeneratorLabel")),
73  fNuMIBeamLabel (pset.get<std::string>("NuMIBeamLabel")),
74  fNumuEAlgPSet(pset.get< fhicl::ParameterSet >("NumuEAlgPSet")),
75  fNumuEAlg(0)
76  {
77  produces< std::vector<NumuE> >();
78  produces< art::Assns<NumuE, rb::Cluster> >();
79 
80  produces< std::vector<rb::Energy> >();
81  produces< art::Assns<rb::Energy, rb::Track> >();
82  fLoadHornCurrent = false;
83  }
fhicl::ParameterSet fNumuEAlgPSet
Parameter Set to configure the NumuEAlg object.
std::string fTrackModuleLabel
Label for module doing tracking.
std::string fGeneratorLabel
Generator label for the spillPot.
NumuEAlg * fNumuEAlg
Numu Energy Algorithm Object.
murem::TrackCleanUpAlg * fTrackCleanUpAlg
Track Clean Up Algorithm Object.
std::string fSlicerModuleLabel
Label for module doing slicing.
std::string fCosRejModuleLabel
Label for module doing cosmic rejection.
fhicl::ParameterSet fTrackCleanUpAlgPSet
Parameter Set to configure the TrackCleanUpAlg object.
std::string fNuMIBeamLabel
NuMI Beam label for the spillPot.
enum BeamMode string
std::string fHitModuleLabel
Label for module making hits.
numue::NumuEnergy::~NumuEnergy ( )
virtual

Definition at line 87 of file NumuEnergy_module.cc.

References fNumuEAlg, and fTrackCleanUpAlg.

88  {
89  if (fNumuEAlg) delete fNumuEAlg;
91  }
NumuEAlg * fNumuEAlg
Numu Energy Algorithm Object.
murem::TrackCleanUpAlg * fTrackCleanUpAlg
Track Clean Up Algorithm Object.

Member Function Documentation

void numue::NumuEnergy::beginRun ( art::Run run)
virtual

Reimplemented from art::EDProducer.

Definition at line 94 of file NumuEnergy_module.cc.

References fNumuEAlg, fNumuEAlgPSet, fTrackCleanUpAlg, and fTrackCleanUpAlgPSet.

95  {
96  // Have to recreate these because behaviour can depend on run number
97  if(fNumuEAlg) delete fNumuEAlg;
98  fNumuEAlg = new NumuEAlg(fNumuEAlgPSet);
101  }//End of Begin Run
fhicl::ParameterSet fNumuEAlgPSet
Parameter Set to configure the NumuEAlg object.
NumuEAlg * fNumuEAlg
Numu Energy Algorithm Object.
murem::TrackCleanUpAlg * fTrackCleanUpAlg
Track Clean Up Algorithm Object.
fhicl::ParameterSet fTrackCleanUpAlgPSet
Parameter Set to configure the TrackCleanUpAlg object.
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 146 of file Consumer.h.

References art::InputTag::instance(), PandAna.reco_validation.prod5_pid_validation::invalid, art::InputTag::label(), art::InputTag::process(), and T.

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

Definition at line 161 of file Consumer.h.

References T.

162 {
163  if (!moduleContext_)
164  return;
165 
166  consumables_[BT].emplace_back(ConsumableType::Many, TypeID{typeid(T)});
167 }
ConsumableProducts consumables_
Definition: Consumer.h:137
double T
Definition: Xdiff_gwt.C:5
bool moduleContext_
Definition: Consumer.h:135
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 171 of file Consumer.h.

References art::InputTag::instance(), PandAna.reco_validation.prod5_pid_validation::invalid, art::InputTag::label(), art::InputTag::process(), and T.

172 {
173  if (!moduleContext_)
174  return ViewToken<T>::invalid();
175 
176  consumables_[BT].emplace_back(ConsumableType::ViewElement,
177  TypeID{typeid(T)},
178  it.label(),
179  it.instance(),
180  it.process());
181  return ViewToken<T>{it};
182 }
set< int >::iterator it
static ViewToken< Element > invalid()
Definition: ProductToken.h:75
ConsumableProducts consumables_
Definition: Consumer.h:137
double T
Definition: Xdiff_gwt.C:5
bool moduleContext_
Definition: Consumer.h:135
base_engine_t& art::EngineCreator::createEngine ( seed_t  seed)
inherited
base_engine_t& art::EngineCreator::createEngine ( seed_t  seed,
std::string const &  kind_of_engine_to_make 
)
inherited
base_engine_t& art::EngineCreator::createEngine ( seed_t  seed,
std::string const &  kind_of_engine_to_make,
label_t const &  engine_label 
)
inherited
CurrentProcessingContext const* art::EDProducer::currentContext ( ) const
protectedinherited
seed_t art::EngineCreator::get_seed_value ( fhicl::ParameterSet const &  pset,
char const  key[] = "seed",
seed_t const  implicit_seed = -1 
)
inherited
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_.

Referenced by skim::NueSkimmer::CopyMichelSlice(), and skim::NueSkimmer::CopyMichelTrack().

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 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  }
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 189 of file Consumer.h.

References art::InputTag::instance(), PandAna.reco_validation.prod5_pid_validation::invalid, art::InputTag::label(), art::InputTag::process(), and T.

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

Definition at line 204 of file Consumer.h.

References T.

205 {
206  if (!moduleContext_)
207  return;
208 
209  consumables_[BT].emplace_back(ConsumableType::Many, TypeID{typeid(T)});
210 }
ConsumableProducts consumables_
Definition: Consumer.h:137
double T
Definition: Xdiff_gwt.C:5
bool moduleContext_
Definition: Consumer.h:135
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 214 of file Consumer.h.

References art::InputTag::instance(), PandAna.reco_validation.prod5_pid_validation::invalid, art::InputTag::label(), art::InputTag::process(), and T.

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

Definition at line 40 of file ProducerBase.h.

References art::ProducerBase::getProductID(), and string.

41  {
42  return true;
43  }
static cet::exempt_ptr<Consumer> art::Consumer::non_module_context ( )
staticinherited
void art::Consumer::prepareForJob ( fhicl::ParameterSet const &  pset)
protectedinherited
void numue::NumuEnergy::produce ( art::Event e)
virtual

Implements art::EDProducer.

Definition at line 104 of file NumuEnergy_module.cc.

References rb::Cluster::AllCells(), plot_validation_datamc::c, numue::NumuE::CalCCE(), util::CreateAssn(), DEFINE_ART_MODULE(), geo::GeometryBase::DetId(), rb::Energy::E(), numue::NumuEAlg::Energy(), art::Handle< T >::failedToGet(), fCosRejModuleLabel, fGeneratorLabel, fHitModuleLabel, fLoadHornCurrent, fNuMIBeamLabel, fNumuEAlg, fSlicerModuleLabel, fTrackCleanUpAlg, fTrackModuleLabel, geom(), art::DataViewImpl::getByLabel(), numue::NumuEAlg::GetUCE(), numue::NumuEAlg::GetUCMuonENonSingle(), numue::NumuEAlg::GetUCMuonESingle(), cheat::BackTracker::HaveTruthInfo(), rb::Cluster::IsNoise(), art::Event::isRealData(), sumdata::SpillData::isRHC, isRHC, novadaq::cnv::kFARDET, numue::NumuE::MCGoodTrueMuon(), numue::NumuE::MCTrueMuonCatcherE(), numue::NumuE::MCTrueMuonE(), numue::NumuEAlg::MCTruthEnergyVariables(), numue::NumuEAlg::MuonEnergies(), rb::Cluster::NCell(), art::Event::put(), numue::NumuEAlg::QEFormulaEnergy(), art::Event::run(), numue::NumuE::SetAngleQEE(), numue::NumuE::SetAngleQEError(), numue::NumuE::SetMCGoodTrueMuon(), numue::NumuE::SetMCTrueMuonCatcherE(), numue::NumuE::SetMCTrueMuonE(), numue::NumuE::SetUCCCE(), numue::NumuE::SetUCMuonENonSingle(), numue::NumuE::SetUCMuonESingle(), and rb::Cluster::TotalGeV().

105  {
107  novadaq::cnv::DetId detID = geom->DetId();
108 
109  //Get all the hits from the event
111  e.getByLabel(fHitModuleLabel, allHits);
112 
114 
115  //Load the slicer list from the event
117  e.getByLabel(fSlicerModuleLabel,slicecol);
118 
119  if(slicecol->empty()){
120  mf::LogWarning ("No Slices")<<"No Slices in the input file";
121  return;
122  }
123 
124  //Getting tracks associated with slices
125  art::FindManyP<rb::Track> sliceToTracks(slicecol, e, fTrackModuleLabel);
126 
127  //Declaring containers for things to be stored in event
128  std::unique_ptr< std::vector<NumuE> > energyCol(new std::vector<NumuE>);
129  std::unique_ptr< art::Assns<NumuE, rb::Cluster> > assoc(new art::Assns<NumuE, rb::Cluster>);
130 
131  std::unique_ptr< std::vector<rb::Energy> > trackECol(new std::vector<rb::Energy>);
132  std::unique_ptr< art::Assns<rb::Energy, rb::Track> > trackAssoc(new art::Assns<rb::Energy, rb::Track>);
133 
135 
136  if (!fLoadHornCurrent){
138  if (!e.isRealData()) {
139  e.getByLabel(fGeneratorLabel, spillPot);
140  }
141  else {
142  e.getByLabel(fNuMIBeamLabel, spillPot);
143  }
144 
145  if (spillPot.failedToGet()) {
146  mf::LogError("NumuEAlg") << "Spill Data not found, "
147  "aborting without horn current information";
148  abort();
149  }
150  isRHC = spillPot->isRHC;
151  mf::LogInfo("NumuEAlg") << "Setting Horn Current isRHC to: "<<isRHC;
152  fLoadHornCurrent = true;
153  }
154 
155  for(size_t s = 0; s < slicecol->size(); ++s){
156  const art::Ptr<rb::Cluster> slice(slicecol, s);
157 
158  if(slice->IsNoise()) continue;
159 
160  art::PtrVector<rb::CellHit> sliceHits = slice->AllCells();
161 
162  // Get all of the tracks in the slice
163  const std::vector< art::Ptr<rb::Track> > sliceTracks = sliceToTracks.at(s);
164  if(sliceTracks.empty()) continue;
165 
166  NumuE sliceEnergy;
167  rb::Energy angleqeE;
168  double errAngleQEE = -1.0;
169  NumuE truthEnergy;
170  std::vector<rb::Energy> trackEnergies;
171 
173  bool ismc = bt->HaveTruthInfo();
174 
175 
176 
177  trackEnergies = fNumuEAlg->MuonEnergies(sliceTracks,
178  e.run(),
179  ismc,
180  isRHC);
181  sliceEnergy = fNumuEAlg->Energy(sliceTracks,sliceHits,slice,e,fTrackCleanUpAlg,isRHC);
182  angleqeE = fNumuEAlg->QEFormulaEnergy(sliceTracks,sliceHits,errAngleQEE,e,isRHC);
183  sliceEnergy.SetAngleQEE(angleqeE.E());
184  sliceEnergy.SetAngleQEError(errAngleQEE);
185  truthEnergy = fNumuEAlg->MCTruthEnergyVariables(sliceTracks,slice,*allHits,e);
186  sliceEnergy.SetMCTrueMuonE(truthEnergy.MCTrueMuonE());
187  sliceEnergy.SetMCTrueMuonCatcherE(truthEnergy.MCTrueMuonCatcherE());
188  sliceEnergy.SetMCGoodTrueMuon(truthEnergy.MCGoodTrueMuon());
189 
190  if(nCosRej.isValid() && nCosRej.at(s).size() > 0) {
191  sliceEnergy.SetUCCCE(fNumuEAlg->GetUCE(nCosRej,s,slice->TotalGeV(),slice->NCell()));
192  if (detID == novadaq::cnv::kFARDET){
193  sliceEnergy.SetUCMuonESingle(fNumuEAlg->GetUCMuonESingle(sliceTracks,sliceHits,e,nCosRej,s));
194  sliceEnergy.SetUCMuonENonSingle(fNumuEAlg->GetUCMuonENonSingle(sliceTracks,sliceHits,e,nCosRej,s));
195  }
196  else{
197  sliceEnergy.SetUCMuonESingle(-5.0);
198  sliceEnergy.SetUCMuonENonSingle(-5.0);
199  }// Only for FarDet so far
200  }// End CosRej object conditional
201 
202  if((sliceEnergy.E() > 0) || (sliceEnergy.CalCCE() > 0)){
203  energyCol->push_back(sliceEnergy);
204  util::CreateAssn(*this,e,*(energyCol.get()),slice,*(assoc.get()));
205  }//End of loop over non-zero energy
206  for(size_t c = 0; c < trackEnergies.size(); ++c){
207  trackECol->push_back(trackEnergies[c]);
208  util::CreateAssn(*this,e,*(trackECol.get()),sliceTracks[c],*(trackAssoc.get()));
209  }//End of loop over track energies for the slice
210 
211  }//End of loop over slices
212 
213  //Put objects and associations in file
214  e.put(std::move(energyCol));
215  e.put(std::move(assoc));
216  e.put(std::move(trackECol));
217  e.put(std::move(trackAssoc));
218 
219  return;
220  }//End of Produce
bool isRHC
is the beam in antineutrino mode, aka RHC
Definition: SpillData.h:28
double GetUCMuonENonSingle(std::vector< art::Ptr< rb::Track > > const sliceTracks, art::PtrVector< rb::CellHit > sliceHits, art::Event const &e, art::FindManyP< cosrej::CosRejObj > CRO, size_t slicenum)
Get values from cosrej object and use them to get TMVA trained value of uncontained muon energy for F...
Definition: NumuEAlg.cxx:1404
static bool CreateAssn(art::EDProducer const &prod, art::Event &evt, std::vector< T > &a, art::Ptr< U > b, art::Assns< T, U > &assn, size_t indx=UINT_MAX, std::string const &instance=std::string())
Create a 1 to 1 association between a new product and one already in the event.
std::string fTrackModuleLabel
Label for module doing tracking.
std::string fGeneratorLabel
Generator label for the spillPot.
NumuEAlg * fNumuEAlg
Numu Energy Algorithm Object.
float E() const
Definition: Energy.cxx:27
MaybeLogger_< ELseverityLevel::ELsev_info, false > LogInfo
NumuE Energy(std::vector< art::Ptr< rb::Track > > const sliceTracks, art::PtrVector< rb::CellHit > sliceHits, art::Ptr< rb::Cluster > sliceCluster, art::Event const &e, murem::TrackCleanUpAlg *trkCleanUpAlg, bool isRHC)
Returns various energy estimations for the current detector. See comments at top of function in ...
Definition: NumuEAlg.cxx:639
void SetMCTrueMuonE(float mctruemuone)
Definition: NumuE.cxx:219
murem::TrackCleanUpAlg * fTrackCleanUpAlg
Track Clean Up Algorithm Object.
MaybeLogger_< ELseverityLevel::ELsev_error, false > LogError
bool isRealData() const
Definition: Event.h:83
std::string fSlicerModuleLabel
Label for module doing slicing.
ProductID put(std::unique_ptr< PROD > &&product)
Definition: Event.h:102
const XML_Char * s
Definition: expat.h:262
Far Detector at Ash River, MN.
double GetUCMuonESingle(std::vector< art::Ptr< rb::Track > > const sliceTracks, art::PtrVector< rb::CellHit > sliceHits, art::Event const &e, art::FindManyP< cosrej::CosRejObj > CRO, size_t slicenum)
Get values from cosrej object and use them to get TMVA trained value of uncontained muon energy for F...
Definition: NumuEAlg.cxx:1365
novadaq::cnv::DetId DetId() const
Prefer ds::DetectorService::DetId() instead.
Definition: GeometryBase.h:243
std::string fCosRejModuleLabel
Label for module doing cosmic rejection.
rb::Energy QEFormulaEnergy(std::vector< art::Ptr< rb::Track > > const sliceTracks, art::PtrVector< rb::CellHit > sliceHits, double &error, art::Event const &e, bool isRHC)
Returns QE energy estimation using formula. See comments at top of function in .cxx for full explanat...
Definition: NumuEAlg.cxx:324
NumuE MCTruthEnergyVariables(const std::vector< art::Ptr< rb::Track >> &sliceTracks, const art::Ptr< rb::Cluster > &slice, const std::vector< rb::CellHit > &allHits, const art::Event &e)
Returns various useful truth energy values, good for fitting.
Definition: NumuEAlg.cxx:655
reference at(size_type n)
Definition: PtrVector.h:365
std::string fNuMIBeamLabel
NuMI Beam label for the spillPot.
double GetUCE(art::FindManyP< cosrej::CosRejObj > CRO, size_t slicenum, float totalgev, int nhitslice)
Get values from cosrej object and use them to get TMVA trained value of uncontained energy for FD...
Definition: NumuEAlg.cxx:1350
A container for energy information.
Definition: Energy.h:20
bool getByLabel(std::string const &label, std::string const &productInstanceName, Handle< PROD > &result) const
Definition: DataViewImpl.h:344
MaybeLogger_< ELseverityLevel::ELsev_warning, false > LogWarning
void geom(int which=0)
Definition: geom.C:163
bool HaveTruthInfo() const
Is this a file with truth info in? (Is BackTracker going to be any use to you?)
Definition: BackTracker.h:133
RunNumber_t run() const
Definition: Event.h:77
bool failedToGet() const
Definition: Handle.h:196
std::vector< rb::Energy > MuonEnergies(std::vector< art::Ptr< rb::Track > > const sliceTracks, int run, bool ismc, bool isRHC) const
Function that returns energy for each track given the assumption that it is a muon. It uses the functions above, like MuonEFromTrackLength and NDMuonEFromTrackLength.
Definition: NumuEAlg.cxx:1137
std::string fHitModuleLabel
Label for module making hits.
void art::Consumer::showMissingConsumes ( ) const
protectedinherited

Referenced by art::RootOutput::endJob().

void art::Consumer::validateConsumedProduct ( BranchType const  bt,
ProductInfo const &  pi 
)
protectedinherited

Member Data Documentation

std::string numue::NumuEnergy::fCosRejModuleLabel
private

Label for module doing cosmic rejection.

Definition at line 55 of file NumuEnergy_module.cc.

Referenced by produce().

std::string numue::NumuEnergy::fGeneratorLabel
private

Generator label for the spillPot.

Definition at line 56 of file NumuEnergy_module.cc.

Referenced by produce().

std::string numue::NumuEnergy::fHitModuleLabel
private

Label for module making hits.

Definition at line 52 of file NumuEnergy_module.cc.

Referenced by produce().

bool numue::NumuEnergy::fLoadHornCurrent
private

Definition at line 61 of file NumuEnergy_module.cc.

Referenced by NumuEnergy(), and produce().

std::string numue::NumuEnergy::fNuMIBeamLabel
private

NuMI Beam label for the spillPot.

Definition at line 57 of file NumuEnergy_module.cc.

Referenced by produce().

NumuEAlg* numue::NumuEnergy::fNumuEAlg
private

Numu Energy Algorithm Object.

Definition at line 59 of file NumuEnergy_module.cc.

Referenced by beginRun(), produce(), and ~NumuEnergy().

fhicl::ParameterSet numue::NumuEnergy::fNumuEAlgPSet
private

Parameter Set to configure the NumuEAlg object.

Definition at line 58 of file NumuEnergy_module.cc.

Referenced by beginRun().

std::string numue::NumuEnergy::fSlicerModuleLabel
private

Label for module doing slicing.

Definition at line 53 of file NumuEnergy_module.cc.

Referenced by produce().

murem::TrackCleanUpAlg* numue::NumuEnergy::fTrackCleanUpAlg
private

Track Clean Up Algorithm Object.

Definition at line 51 of file NumuEnergy_module.cc.

Referenced by beginRun(), produce(), and ~NumuEnergy().

fhicl::ParameterSet numue::NumuEnergy::fTrackCleanUpAlgPSet
private

Parameter Set to configure the TrackCleanUpAlg object.

Definition at line 50 of file NumuEnergy_module.cc.

Referenced by beginRun().

std::string numue::NumuEnergy::fTrackModuleLabel
private

Label for module doing tracking.

Definition at line 54 of file NumuEnergy_module.cc.

Referenced by produce().

bool numue::NumuEnergy::isRHC
private

Definition at line 60 of file NumuEnergy_module.cc.

Referenced by produce().


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