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

 FluxWeightCalculator (const fhicl::ParameterSet &pset)
 
 ~FluxWeightCalculator ()
 
virtual void reconfigure (const fhicl::ParameterSet &pset)
 
virtual void produce (art::Event &evt)
 
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

std::vector< std::stringfInputLabels
 
std::string fPPFXMode
 label(s) for generator information More...
 
int fVerbose
 PPFX mode. More...
 
NeutrinoFluxReweight::MakeReweight * makerew
 Set verbose level. More...
 

Detailed Description

Definition at line 55 of file FluxWeightCalculator_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

fxwgt::FluxWeightCalculator::FluxWeightCalculator ( const fhicl::ParameterSet pset)
explicit

Definition at line 75 of file FluxWeightCalculator_module.cc.

References reconfigure().

76  {
77  reconfigure(pset);
78  produces<std::vector<fxwgt::FluxWeights>>();
79  //RWH ?? should this be other direction??
80  produces<art::Assns<fxwgt::FluxWeights, simb::MCTruth>>();
81  //RWH// fails because CreateAssn is stupid .. you don't just give it to ptrs
82  //produces<art::Assns<simb::MCTruth,fxwgt::FluxWeights>>();
83  }
virtual void reconfigure(const fhicl::ParameterSet &pset)
fxwgt::FluxWeightCalculator::~FluxWeightCalculator ( )

Definition at line 86 of file FluxWeightCalculator_module.cc.

87  {
88  }

Member Function Documentation

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 fxwgt::FluxWeightCalculator::produce ( art::Event evt)
virtual

Implements art::EDProducer.

Definition at line 166 of file FluxWeightCalculator_module.cc.

References om::cout, util::CreateAssn(), DEFINE_ART_MODULE(), allTimeWatchdog::endl, fInputLabels, fVerbose, evg::MCTruthToDk2NuHackItr::GetDk2Nu(), evg::MCTruthToDk2NuHackItr::GetLabel(), evg::MCTruthToDk2NuHackItr::GetMCTruth(), evg::MCTruthToDk2NuHackItr::GetMCTruthPtr(), bsim::DkMeta::horncfg, label, makerew, evg::MCTruthToDk2NuHackItr::Next(), push_back(), art::Event::put(), fxwgt::FluxWeights::SetBeamFocusingCentralValue(), fxwgt::FluxWeights::SetBeamFocusingMultiUniverses(), fxwgt::FluxWeights::SetHadronProductionCentralValue(), fxwgt::FluxWeights::SetHadronProductionMultiUniverses(), string, bsim::DkMeta::tgtcfg, copy_new_pkl_files::verbose, and bsim::DkMeta::vintnames.

166  {
167 
168  std::unique_ptr<std::vector<fxwgt::FluxWeights>>
169  rescol(new std::vector<fxwgt::FluxWeights>);
170 
171  //std::unique_ptr<art::Assns<simb::MCTruth, fxwgt::FluxWeights>>
172  // assns(new art::Assns<simb::MCTruth, fxwgt::FluxWeights>);
173  std::unique_ptr<art::Assns<fxwgt::FluxWeights, simb::MCTruth>>
175 
176 
177  int verbose=fVerbose;
178  int nmctruth=0, nmatched=0;
179 
180  // get a fancy iterator that hides a bunch of association stuff
181  evg::MCTruthToDk2NuHackItr mcitr(evt,fInputLabels,verbose);
182 
183  bool flag = true;
184  int ievt = -1;
185  while ( ( flag = mcitr.Next() ) ) {
186  std::string label = mcitr.GetLabel();
187  const simb::MCTruth* pmctruth = mcitr.GetMCTruth();
188  // const simb::GTruth* pgtruth = mcitr.GetGTruth();
189  //not-used//const simb::MCFlux* pmcflux = mcitr.GetMCFlux();
190  const bsim::Dk2Nu* pdk2nu = mcitr.GetDk2Nu();
191  //not-used//const bsim::NuChoice* pnuchoice = mcitr.GetNuChoice();
192 
193  art::Ptr<simb::MCTruth> mctruthptr = mcitr.GetMCTruthPtr();
194 
195  ++ievt;
196  ++nmctruth;
197  if ( verbose > 0 ) {
198  std::cout << "FluxWeightCalculator [" << std::setw(4) << ievt << "] "
199  << " label \"" << label << "\" MCTruth@ " << pmctruth
200  << " Dk2Nu@ " << pdk2nu << std::endl;
201  }
202  if ( ! pdk2nu ) continue;
203  ++nmatched;
204 
205  //RWH//bsim::Dk2Nu* tmp_dk2nu = fTmpDK2NUConversorAlg.construct_toy_dk2nu( &mctruth,&mcflux);
206  //RWH//bsim::DkMeta* tmp_dkmeta = fTmpDK2NUConversorAlg.construct_toy_dkmeta(&mctruth,&mcflux);
207  //RWH// those appear to have been memory leaks
208  //RWH// herein begins the replacment for the "construct_toy_dkmeta"
209  static bsim::DkMeta dkmeta_obj; //RWH// create this on stack (destroyed when out-of-scope) ... or static
210  dkmeta_obj.tgtcfg = "me000z"; //RWH// this should come from FCL parameter
211  dkmeta_obj.horncfg = "200i"; //RWH// as should this
212  (dkmeta_obj.vintnames).push_back("Index_Tar_In_Ancestry");
213  (dkmeta_obj.vintnames).push_back("Playlist");
214  bsim::DkMeta* tmp_dkmeta = &dkmeta_obj;
215  //RWH// herein ends this block
216 
217  // sigh ....
218  //RWH// this is the signature in NeutrinoFluxReweight::MakeReweight :
219  // //! create an interaction chain from the new dk2nu(dkmeta) format
220  // void calculateWeights(bsim::Dk2Nu* nu, bsim::DkMeta* meta);
221  //RWH// these _should_ be "const <class>*" because we don't need to change them
222  //RWH// and the pointers we get out of the ART record are going to be const.
223  bsim::Dk2Nu* tmp_dk2nu = const_cast<bsim::Dk2Nu*>(pdk2nu); // remove const-ness
224 
225  makerew->calculateWeights(tmp_dk2nu,tmp_dkmeta);
226 
227  //Get weights:
228  double ppfx_cv_wgt = makerew->GetCVWeight();
229  std::vector<double> vmipppion = makerew->GetWeights("MIPPNumiPionYields");
230  std::vector<double> vmippkaon = makerew->GetWeights("MIPPNumiKaonYields");
231  std::vector<double> vtgtatt = makerew->GetWeights("TargetAttenuation");
232  std::vector<double> vabsorp = makerew->GetWeights("TotalAbsorption");
233  std::vector<double> vttpcpion = makerew->GetWeights("ThinTargetpCPion");
234  std::vector<double> vttpckaon = makerew->GetWeights("ThinTargetpCKaon");
235  std::vector<double> vttpcnucleon = makerew->GetWeights("ThinTargetpCNucleon");
236  std::vector<double> vttncpion = makerew->GetWeights("ThinTargetnCPion");
237  std::vector<double> vttnucleona = makerew->GetWeights("ThinTargetnucleonA");
238  std::vector<double> vttmesoninc = makerew->GetWeights("ThinTargetMesonIncident");
239  std::vector<double> vothers = makerew->GetWeights("Other");
240 
241  std::vector<float> tmp_vhptot;
242  std::vector<float> tmp_vbftot;
243  for(unsigned int iuniv=0;iuniv<vtgtatt.size();iuniv++){
244  tmp_vhptot.push_back(float(vmipppion[iuniv]*vmippkaon[iuniv]*vtgtatt[iuniv]*vabsorp[iuniv]*vttpcpion[iuniv]*
245  vttpckaon[iuniv]*vttpcnucleon[iuniv]*vttncpion[iuniv]*vttnucleona[iuniv]*
246  vttmesoninc[iuniv]*vothers[iuniv]));
247  tmp_vbftot.push_back(1.0);
248  }
249 
250  fxwgt::FluxWeights fluxweights;
251  fluxweights.SetHadronProductionCentralValue(float(ppfx_cv_wgt));
252  fluxweights.SetBeamFocusingCentralValue(1.0);
253  fluxweights.SetHadronProductionMultiUniverses(tmp_vhptot);
254  fluxweights.SetBeamFocusingMultiUniverses(tmp_vbftot);
255 
256  //Test:
257  /* std::cout<<"=> Test of new flux weigth product:"<<std::endl;
258  std::cout<<"=> cv, Nuniv: "<<ppfx_cv_wgt<<", "<<tmp_vhptot.size()<<std::endl;
259  std::cout<<"";for(unsigned int j=0;j<tmp_vhptot.size();j++)std::cout<<tmp_vhptot[j]<<" ";std::cout<<""<<std::endl;
260  std::cout<<" "<<std::endl;*/
261 
262  rescol->push_back(fluxweights);
263  // need pmctruth to be Ptr<> ??
264  util::CreateAssn(*this, evt, *rescol, mctruthptr, *assns);
265 
266  } // loop over MCTruthToDk2NuHackItr items
267 
268  if ( verbose > 0 ) {
269  std::cout << "FluxWeightCalculator saw " << nmctruth
270  << " MCTruth obj, matched " << nmatched
271  << " with Dk2Nu and generated "
272  << rescol->size() << " fxwgt::FluxWeight obj "
273  << std::endl;
274  }
275 
276  evt.put(std::move(rescol));
277  evt.put(std::move(assns));
278 
279  } // end of produce() method
void SetBeamFocusingMultiUniverses(std::vector< float > vuniv)
Set a vector of beam focusing weights. Each entry represents the correction for one universe...
Definition: FluxWeights.cxx:30
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::vector< std::string > vintnames
names of elements for user defined vector of integers
Definition: dkmeta.h:126
void SetBeamFocusingCentralValue(float cv)
Set beam focusing central value correction from PPFX.
Definition: FluxWeights.cxx:24
NeutrinoFluxReweight::MakeReweight * makerew
Set verbose level.
const char * label
std::string tgtcfg
target config e.g. "minos/epoch3/-10cm"
Definition: dkmeta.h:98
ProductID put(std::unique_ptr< PROD > &&product)
Definition: Event.h:102
Store flux weigths for neutrino correction.
Definition: FluxWeights.h:15
base_types push_back(int_type())
void SetHadronProductionCentralValue(float cv)
Set HP central value correction from PPFX.
Definition: FluxWeights.cxx:21
OStream cout
Definition: OStream.cxx:6
std::string horncfg
horn config e.g. "FHC/185A/LE/h1xoff=1mm"
Definition: dkmeta.h:99
std::vector< std::string > fInputLabels
Event generator information.
Definition: MCTruth.h:32
void SetHadronProductionMultiUniverses(std::vector< float > vuniv)
Set a vector of HP weights. Each entry represents the correction for one universe.
Definition: FluxWeights.cxx:27
enum BeamMode string
void fxwgt::FluxWeightCalculator::reconfigure ( const fhicl::ParameterSet pset)
virtual

Definition at line 91 of file FluxWeightCalculator_module.cc.

References om::cerr, om::cout, allTimeWatchdog::endl, fInputLabels, fPPFXMode, fVerbose, fhicl::ParameterSet::get(), cet::getenv(), makerew, and string.

Referenced by FluxWeightCalculator().

92  {
93  std::cerr << "FluxWeightCalculator::reconfigure(const fhicl::ParameterSet& pset)" << std::endl;
94  fInputLabels = pset.get<std::vector<std::string>>("InputLabels");
95  fPPFXMode = pset.get<std::string>("PPFXMode");
96  fVerbose = pset.get<int>("Verbose");
97  const char* ppfx_Dir = std::getenv("PPFX_DIR");
98  const char* ppfx = std::getenv("PPFX");
99 
100  // internally PPFX core uses ${PPFX_DIR} to be top everything
101  // with subdirs: src include scripts uncertainties data
102 
103  // $ echo $PPFX
104  // /grid/fermiapp/products/nova/externals/ppfx/v01_09/Linux64bit+2.6-2.12-e9-r5-debug
105  // $ echo $PPFX_DIR
106  // /grid/fermiapp/products/nova/externals/ppfx/v01_09
107  //
108  // but those subdirs are in equivalent of ${PPFX}/ppfx
109 
110 
111  // write code that does the right thing _if_ things are correct as well as current state
112 
113  std::cerr << " ppfx_Dir is \"" << ppfx_Dir << "\"" << std::endl;
114  //std::cerr << " ppfx is \"" << ppfx << "\"" << std::endl; //this variable is actually used.
115 
116  std::string right_PPFX_DIR, testParamPath;
117  bool not_found;
118 
119  right_PPFX_DIR = std::string(ppfx_Dir);
120  // virtual Bool_t AccessPathName (const char *path, EAccessMode mode=kFileExists)
121  // Returns FALSE if one can access a file using the specified access mode. More...
122  testParamPath = right_PPFX_DIR + "/uncertainties/Parameters_default.xml";
123  not_found = gSystem->AccessPathName(testParamPath.c_str()); // true if NOT found
124  if ( not_found ) {
125  //RWH// hack because env variables aren't right
126  // try this path
127  std::cerr << " huh, first try didn't work using \"" << right_PPFX_DIR << "\"" << std::endl;
128  right_PPFX_DIR = std::string(ppfx) + std::string("/ppfx");
129  testParamPath = right_PPFX_DIR + "/uncertainties/Parameters_default.xml";
130  not_found = gSystem->AccessPathName(testParamPath.c_str()); // true if NOT found
131  if ( not_found ) {
132  std::cerr << " tried PPFX_DIR as \"" << right_PPFX_DIR << "\", still not right"
133  << std::endl
134  << " everything is likely to end in tears..."
135  << std::endl;
136  } else {
137  gSystem->Setenv("PPFX_DIR", right_PPFX_DIR.c_str());
138  std::cerr << " setenv PPFX_DIR to \"" << right_PPFX_DIR << "\"" << std::endl;
139  }
140  }
141  std::cerr << " using right_PPFX_DIR is \"" << right_PPFX_DIR << "\"" << std::endl;
142 
143  std::cerr << " about to getInstance()" << std::endl;
144  makerew = NeutrinoFluxReweight::MakeReweight::getInstance();
145 
146  std::string inputOptions = right_PPFX_DIR +"/scripts/inputs_"+fPPFXMode+".xml";
147  not_found = gSystem->AccessPathName(inputOptions.c_str());
148  if ( not_found ) {
149  std::cerr << " huh, try to find the location of input_defaul.xml\"" << "\"" << std::endl;
150  inputOptions = right_PPFX_DIR +"/xml/inputs_"+fPPFXMode+".xml";
151  not_found = gSystem->AccessPathName(inputOptions.c_str());
152  if ( not_found ) {
153  std::cerr << " tried to locate input_default.xml but it is not at "<<inputOptions<<std::endl;
154  }
155  else {
156  std::cout << "input_default.xml found at "<<inputOptions<<std::endl;
157  }
158  }
159 
160  std::cout << "Setting PPFX, inputs: " << inputOptions << std::endl;
161  makerew->SetOptions(inputOptions);
162  std::cout << "PPFX just set with mode: " << fPPFXMode << std::endl;
163  }
OStream cerr
Definition: OStream.cxx:7
NeutrinoFluxReweight::MakeReweight * makerew
Set verbose level.
std::string getenv(std::string const &name)
T get(std::string const &key) const
Definition: ParameterSet.h:231
OStream cout
Definition: OStream.cxx:6
std::vector< std::string > fInputLabels
std::string fPPFXMode
label(s) for generator information
enum BeamMode string
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::vector<std::string> fxwgt::FluxWeightCalculator::fInputLabels
private

Definition at line 66 of file FluxWeightCalculator_module.cc.

Referenced by produce(), and reconfigure().

std::string fxwgt::FluxWeightCalculator::fPPFXMode
private

label(s) for generator information

Definition at line 67 of file FluxWeightCalculator_module.cc.

Referenced by reconfigure().

int fxwgt::FluxWeightCalculator::fVerbose
private

PPFX mode.

Definition at line 68 of file FluxWeightCalculator_module.cc.

Referenced by produce(), and reconfigure().

NeutrinoFluxReweight::MakeReweight* fxwgt::FluxWeightCalculator::makerew
private

Set verbose level.

Definition at line 69 of file FluxWeightCalculator_module.cc.

Referenced by produce(), and reconfigure().


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