Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
fnex::SpectrumTest Class Reference
Inheritance diagram for fnex::SpectrumTest:
art::EDAnalyzer art::EventObserverBase art::Consumer art::EngineCreator

Public Types

using WorkerType = WorkerT< EDAnalyzer >
 
using ModuleType = EDAnalyzer
 

Public Member Functions

 SpectrumTest (fhicl::ParameterSet const &pset)
 
virtual ~SpectrumTest ()=default
 
void beginJob () override
 
void beginRun (const art::Run &run) override
 
void beginSubRun (const art::SubRun &sr) override
 
void analyze (const art::Event &evt) override
 
void reconfigure (fhicl::ParameterSet const &p) override
 
void endSubRun (const art::SubRun &sr) override
 
void endRun (const art::Run &run) override
 
void endJob () override
 
std::string workerType () const
 
bool modifiesEvent () const
 
void registerProducts (MasterProductRegistry &, ProductDescriptions &, ModuleDescription const &)
 
std::string const & processName () const
 
bool wantAllEvents () const
 
bool wantEvent (Event const &e)
 
fhicl::ParameterSetID selectorConfig () const
 
art::Handle< art::TriggerResultsgetTriggerResults (Event const &e) 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
 
detail::CachedProducts & cachedProducts ()
 
void validateConsumedProduct (BranchType const bt, ProductInfo const &pi)
 
void prepareForJob (fhicl::ParameterSet const &pset)
 
void showMissingConsumes () const
 

Private Member Functions

void CreateSpectra ()
 
void InitializeWeighters (fhicl::ParameterSet const &pset)
 
void InitializeShifters (const fhicl::ParameterSet &pset)
 
void InspectEventLists () const
 
void SavePlots () const
 

Private Attributes

std::unique_ptr< fnex::EventListManipulatorfManipulator
 helper object to work with event lists from TTrees More...
 
fnex::EventListMap fEventLists
 event lists More...
 
std::unordered_map< std::string, std::shared_ptr< fnex::Weighter > > fWeighters
 
std::unordered_map< std::string, std::shared_ptr< fnex::Shifter > > fShifters
 
std::unordered_map< fnex::MetaData, fnex::Spectrum, fnex::MetaDataHasherfSpectra
 
std::vector< std::stringfVarNames
 

Detailed Description

Definition at line 33 of file SpectrumTest_module.cc.

Member Typedef Documentation

Definition at line 39 of file EDAnalyzer.h.

Definition at line 38 of file EDAnalyzer.h.

Constructor & Destructor Documentation

fnex::SpectrumTest::SpectrumTest ( fhicl::ParameterSet const &  pset)
explicit

Definition at line 69 of file SpectrumTest_module.cc.

References InitializeShifters(), InitializeWeighters(), and reconfigure().

70  : art::EDAnalyzer(pset)
71  {
72  // do the necessary setup
73  this->reconfigure(pset);
74  this->InitializeWeighters(pset);
75  this->InitializeShifters(pset);
76  }
void InitializeShifters(const fhicl::ParameterSet &pset)
void reconfigure(fhicl::ParameterSet const &p) override
void InitializeWeighters(fhicl::ParameterSet const &pset)
virtual fnex::SpectrumTest::~SpectrumTest ( )
virtualdefault

Member Function Documentation

void fnex::SpectrumTest::analyze ( const art::Event evt)
inlineoverride

Definition at line 44 of file SpectrumTest_module.cc.

References reconfigure().

44 {};
void fnex::SpectrumTest::beginJob ( )
overridevirtual

Reimplemented from art::EDAnalyzer.

Definition at line 89 of file SpectrumTest_module.cc.

References CreateSpectra(), fEventLists, and fManipulator.

90  {
91  this->fEventLists = this->fManipulator->Deserialize(); // copy the event lists from the deserializer.
92 
93  mf::LogDebug("SpectrumTest") << "Got " << this->fEventLists.size() << " event lists from the deserializer.";
94 
95  this->CreateSpectra();
96  }
std::unique_ptr< fnex::EventListManipulator > fManipulator
helper object to work with event lists from TTrees
MaybeLogger_< ELseverityLevel::ELsev_success, false > LogDebug
fnex::EventListMap fEventLists
event lists
void fnex::SpectrumTest::beginRun ( const art::Run run)
inlineoverride

Definition at line 42 of file SpectrumTest_module.cc.

42 {};
void fnex::SpectrumTest::beginSubRun ( const art::SubRun sr)
inlineoverride

Definition at line 43 of file SpectrumTest_module.cc.

43 {};
detail::CachedProducts& art::EventObserverBase::cachedProducts ( )
inlineprotectedinherited

Definition at line 79 of file EventObserverBase.h.

References art::EventObserverBase::selectors_.

80  {
81  return selectors_;
82  }
detail::CachedProducts selectors_
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
void fnex::SpectrumTest::CreateSpectra ( )
private

Definition at line 108 of file SpectrumTest_module.cc.

References fEventLists, and fSpectra.

Referenced by beginJob(), and endRun().

109  {
110  for (auto & evListPair : this->fEventLists)
111  {
112  this->fSpectra.emplace(std::piecewise_construct,
113  std::make_tuple(evListPair.first),
114  std::make_tuple(evListPair.second)
115  );
116  }
117  } // SpectrumTest::CreateSpectra()
std::unordered_map< fnex::MetaData, fnex::Spectrum, fnex::MetaDataHasher > fSpectra
fnex::EventListMap fEventLists
event lists
CurrentProcessingContext const* art::EDAnalyzer::currentContext ( ) const
protectedinherited
void fnex::SpectrumTest::endJob ( )
overridevirtual

Reimplemented from art::EDAnalyzer.

Definition at line 100 of file SpectrumTest_module.cc.

References InspectEventLists(), and SavePlots().

Referenced by endRun().

101  {
102  this->SavePlots();
103  this->InspectEventLists();
104  } // SpectrumTest::endJob()
void InspectEventLists() const
void fnex::SpectrumTest::endRun ( const art::Run run)
inlineoverride
void fnex::SpectrumTest::endSubRun ( const art::SubRun sr)
inlineoverride

Definition at line 46 of file SpectrumTest_module.cc.

46 {};
seed_t art::EngineCreator::get_seed_value ( fhicl::ParameterSet const &  pset,
char const  key[] = "seed",
seed_t const  implicit_seed = -1 
)
inherited
art::Handle<art::TriggerResults> art::EventObserverBase::getTriggerResults ( Event const &  e) const
inlineinherited

Definition at line 61 of file EventObserverBase.h.

References art::detail::CachedProducts::getOneTriggerResults(), and art::EventObserverBase::selectors_.

62  {
64  }
detail::CachedProducts selectors_
art::Handle< art::TriggerResults > getOneTriggerResults(Event const &) const
Float_t e
Definition: plot.C:35
void fnex::SpectrumTest::InitializeShifters ( const fhicl::ParameterSet pset)
private

Definition at line 134 of file SpectrumTest_module.cc.

References fShifters.

Referenced by endRun(), and SpectrumTest().

135  {
136  this->fShifters["EnergyShift"] = fnex::kShifterRegistry.at("RecoHadEShifter");
137  }
std::unordered_map< std::string, std::shared_ptr< fnex::Shifter > > fShifters
void fnex::SpectrumTest::InitializeWeighters ( fhicl::ParameterSet const &  pset)
private

Definition at line 121 of file SpectrumTest_module.cc.

References fWeighters, and fhicl::ParameterSet::get().

Referenced by endRun(), and SpectrumTest().

122  {
123  auto oscParams_config = pset.get<fhicl::ParameterSet>("OscillationParams");
124  std::unordered_map<std::string, double> oscParams;
125  // unfortunately you can't get a map back from a fhicl::ParameterSet, so we're forced to make do with copying
126  for (const auto & pName : oscParams_config.get_all_keys())
127  {
128 // std::cout << " loading oscillation parameter with name: " << pName << std::endl;
129  oscParams[pName] = oscParams_config.get<double>(pName);
130  }
131  this->fWeighters.emplace("OscillationWgt", std::make_shared<fnex::Weighter>("OscillationWgt", new fnex::OscillationWeightFn(oscParams)));
132  }
T get(std::string const &key) const
Definition: ParameterSet.h:231
std::unordered_map< std::string, std::shared_ptr< fnex::Weighter > > fWeighters
void fnex::SpectrumTest::InspectEventLists ( ) const
private

Definition at line 141 of file SpectrumTest_module.cc.

References om::cout, allTimeWatchdog::endl, fnex::EventList::EventNum(), fnex::Spectrum::Events(), fSpectra, fnex::kBeam, novadaq::cnv::kNEARDET, fnex::kNuMuSelection, fnex::kUnknownInteraction, fetch_tb_beamline_files::md, and febshutoff_auto::val.

Referenced by endJob(), and endRun().

142  {
144  const fnex::Spectrum & spec = this->fSpectra.at(md);
145 
146 // std::cout << "Stored histograms for spectrum " << md.ToString() << ":" << std::endl;
147 // for (const auto & hsetPair : spec.Histograms())
148 // {
149 // std::cout << " Variable '" << hsetPair.first << "':" << std::endl;
150 //
151 // for (const auto & histObj : hsetPair.second)
152 // std::cout << " hash = " << histObj.histhash.hash.to_string() << ", name = " << histObj.hist->GetName() << ", ptr = " << histObj.hist.get() << std::endl;
153 // } // for (hsetPair)
154 
155 
156  const auto & ev = spec.Events().EventNum(35);
157  std::cout << "Event tree for event #35:" << std::endl;
158  std::cout << " Weights:" << std::endl;
159  for (const auto & wgtPair : ev->weights)
160  std::cout << " name = " << wgtPair.first->Name() << "; wgt = " << wgtPair.second.first << std::endl;
161 
162  std::cout << "\n CV vals:" << std::endl;
163  for (const auto & varPair : ev->cvVals)
164  std::cout << " name = " << varPair.first << ", ptr = " << varPair.second.get() << ", val = " << std::dynamic_pointer_cast<fnex::SimpleVar>(varPair.second)->val() << std::endl;
165 
166  std::cout << "\n shifted vals:" << std::endl;
167  fnex::ShiftCollectionHasher hasher;
168  for (const auto & shiftPair : ev->shiftedVals)
169  {
170  std::cout << " shift hash: " << hasher(shiftPair.first) << std::endl;
171  for (const auto & varPair : shiftPair.second)
172  std::cout << " name = " << varPair.first << ", ptr = " << varPair.second.get() << ", val = " << std::dynamic_pointer_cast<fnex::SimpleVar>(varPair.second)->val() << std::endl;
173  }
174  } // SpectrumTest::InspectEventLists()
The Spectrum is the means for interaction with Event collections.
Definition: Spectrum.h:29
Near Detector in the NuMI cavern.
OStream cout
Definition: OStream.cxx:6
std::unordered_map< fnex::MetaData, fnex::Spectrum, fnex::MetaDataHasher > fSpectra
fnex::EventList const & Events() const
Get the EventList that was supplied to this Spectrum.
Definition: Spectrum.h:57
EventPtr EventNum(std::size_t idx)
Definition: Event.h:113
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::EventObserverBase::modifiesEvent ( ) const
inlineinherited

Definition at line 25 of file EventObserverBase.h.

26  {
27  return false;
28  }
static cet::exempt_ptr<Consumer> art::Consumer::non_module_context ( )
staticinherited
void art::Consumer::prepareForJob ( fhicl::ParameterSet const &  pset)
protectedinherited
std::string const& art::EventObserverBase::processName ( ) const
inlineinherited
void fnex::SpectrumTest::reconfigure ( fhicl::ParameterSet const &  p)
override

Definition at line 80 of file SpectrumTest_module.cc.

References fManipulator, fVarNames, and fhicl::ParameterSet::get().

Referenced by analyze(), and SpectrumTest().

81  {
82  this->fManipulator = std::make_unique<fnex::EventListManipulator>(pset);
83 
84  fVarNames = pset.get< std::vector<std::string> >("SpectrumVars");
85  }
std::vector< std::string > fVarNames
std::unique_ptr< fnex::EventListManipulator > fManipulator
helper object to work with event lists from TTrees
void art::EventObserverBase::registerProducts ( MasterProductRegistry ,
ProductDescriptions ,
ModuleDescription const &   
)
inlineinherited

Definition at line 33 of file EventObserverBase.h.

References string.

36  {}
void fnex::SpectrumTest::SavePlots ( ) const
private

Definition at line 178 of file SpectrumTest_module.cc.

References fnex::DEFINE_ART_MODULE(), MakeMiniprodValidationCuts::f, fShifters, fSpectra, fWeighters, ana::kIsNC, sigma(), and string.

Referenced by endJob(), and endRun().

179  {
180 // std::cout << "Weight parameter names:\n";
181 // for (const auto & paramPair : this->fWeighters.at("OscillationWgt").GetDefaultConfig())
182 // std::cout << " " << paramPair.first << " = " << paramPair.second << "\n";
183 // std::cout << std::endl;
184 
185  std::string varName = fnex::var::Nu_RecoE::Name();
186 
187  std::unique_ptr<TFile> f(TFile::Open("/nova/ana/users/jwolcott/scratch/spectrum_test_hists.root", "recreate"));
188  mf::LogDebug("SpectrumTest") << "Got spectra for metadata:";
189  for (auto & specPair : this->fSpectra)
190  {
191  mf::LogDebug("SpectrumTest") << " " << specPair.first.ToString();
192 
193  const TH1F * hSpec = dynamic_cast<const TH1F*>(specPair.second.Histogram(varName));
194 
195  TH1F * hnew = new TH1F(*hSpec);
196  hnew->SetName( (varName + "_" + specPair.first.ToString()).c_str() );
197  hnew->Write();
198 
199  if (!specPair.first.isMC)
200  continue;
201 
202  const std::string wgtName = "OscillationWgt";
203 // std::string wgtName = "TestWgt";
204 
205  const TH1F * hSpecWgtd = dynamic_cast<const TH1F*>(specPair.second.Histogram(varName, {{}}, {{this->fWeighters.at(wgtName), this->fWeighters.at(wgtName)->State()}}));
206  TH1F * hnewWgtd = new TH1F(*hSpecWgtd);
207  hnewWgtd->SetName( (varName + "_" + specPair.first.ToString() + "_" + this->fWeighters.at(wgtName)->Name()).c_str() );
208  hnewWgtd->Write();
209 
210  const std::string shiftName = "EnergyShift";
211  int sigma, sigmaMax;
212  if (specPair.first.ToString() == "MCNearNonSwapNuMuSel")
213  sigma = -5, sigmaMax = 6;
214  else
215  sigma = 0; sigmaMax = 1;
216  for (; sigma < sigmaMax; sigma++)
217  {
218  const TH1F * hSpecShifted = dynamic_cast<const TH1F*>(specPair.second.Histogram(varName, fnex::ShiftCollection{{this->fShifters.at(shiftName), sigma}}));
219  TH1F * hnewShifted = new TH1F(*hSpecShifted);
220  hnewShifted->SetName( Form("%s_%s_%s_shift=%dsigma", varName.c_str(), specPair.first.ToString().c_str(), this->fShifters.at(shiftName)->Name().c_str(), sigma) );
221  hnewShifted->Write();
222  }
223 
224  const TH1F * hSpecNC = dynamic_cast<const TH1F*>(specPair.second.Histogram(varName, {{}}, {{}}, fnex::CutCollection{std::make_shared<fnex::Cut>(fnex::kIsNC)}));
225  // might be NULL if no events passed...
226  if (hSpecNC)
227  {
228  TH1F * hnewNC = new TH1F(*hSpecNC);
229  hnewNC->SetName( Form("%s_%s_cut=NC", varName.c_str(), specPair.first.ToString().c_str()) );
230  hnewNC->Write();
231  }
232  } // for (specPair)
233  f->Close();
234 
235  } // SpectrumTest::SavePlots()
const Cut kIsNC([](const caf::SRProxy *sr){if(sr->mc.nnu==0) return false;assert(sr->mc.nnu==1);return!sr->mc.nu[0].iscc;})
Is this a Neutral Current event?
Definition: TruthCuts.h:8
double sigma(TH1F *hist, double percentile)
std::unordered_map< fnex::MetaData, fnex::Spectrum, fnex::MetaDataHasher > fSpectra
MaybeLogger_< ELseverityLevel::ELsev_success, false > LogDebug
std::unordered_map< std::string, std::shared_ptr< fnex::Shifter > > fShifters
std::unordered_map< std::string, std::shared_ptr< fnex::Weighter > > fWeighters
enum BeamMode string
fhicl::ParameterSetID art::EventObserverBase::selectorConfig ( ) const
inlineinherited

Definition at line 56 of file EventObserverBase.h.

References art::EventObserverBase::selector_config_id_.

57  {
58  return selector_config_id_;
59  }
fhicl::ParameterSetID selector_config_id_
void art::Consumer::showMissingConsumes ( ) const
protectedinherited

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

void art::Consumer::validateConsumedProduct ( BranchType const  bt,
ProductInfo const &  pi 
)
protectedinherited
bool art::EventObserverBase::wantAllEvents ( ) const
inlineinherited

Definition at line 46 of file EventObserverBase.h.

References art::EventObserverBase::wantAllEvents_.

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

47  {
48  return wantAllEvents_;
49  }
bool art::EventObserverBase::wantEvent ( Event const &  e)
inlineinherited

Definition at line 51 of file EventObserverBase.h.

References art::EventObserverBase::selectors_, and art::detail::CachedProducts::wantEvent().

52  {
53  return selectors_.wantEvent(e);
54  }
detail::CachedProducts selectors_
Float_t e
Definition: plot.C:35
bool wantEvent(Event const &)
std::string art::EDAnalyzer::workerType ( ) const
inlineinherited

Definition at line 109 of file EDAnalyzer.h.

References art::EDAnalyzer::currentContext().

110  {
111  return "WorkerT<EDAnalyzer>";
112  }

Member Data Documentation

fnex::EventListMap fnex::SpectrumTest::fEventLists
private

event lists

Definition at line 58 of file SpectrumTest_module.cc.

Referenced by beginJob(), and CreateSpectra().

std::unique_ptr<fnex::EventListManipulator> fnex::SpectrumTest::fManipulator
private

helper object to work with event lists from TTrees

Definition at line 57 of file SpectrumTest_module.cc.

Referenced by beginJob(), and reconfigure().

std::unordered_map<std::string, std::shared_ptr<fnex::Shifter> > fnex::SpectrumTest::fShifters
private

Definition at line 60 of file SpectrumTest_module.cc.

Referenced by InitializeShifters(), and SavePlots().

std::unordered_map<fnex::MetaData, fnex::Spectrum, fnex::MetaDataHasher> fnex::SpectrumTest::fSpectra
private

Definition at line 61 of file SpectrumTest_module.cc.

Referenced by CreateSpectra(), InspectEventLists(), and SavePlots().

std::vector<std::string> fnex::SpectrumTest::fVarNames
private

Definition at line 64 of file SpectrumTest_module.cc.

Referenced by reconfigure().

std::unordered_map<std::string, std::shared_ptr<fnex::Weighter> > fnex::SpectrumTest::fWeighters
private

Definition at line 59 of file SpectrumTest_module.cc.

Referenced by InitializeWeighters(), and SavePlots().


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