#include <MixingModuleConfig.h>
Public Member Functions | |
const double | averageNumber () const |
const int | fixedOutOfTime () const |
int | itype (std::string s) const |
const int | itype () const |
MixingInputConfig () | |
const int | outOfTime () const |
const std::vector< int > & | probFunctionVariable () const |
const std::vector< double > & | probValue () const |
void | read (edm::ParameterSet &pset) |
std::string | type () const |
virtual | ~MixingInputConfig () |
Private Attributes | |
double | an_ |
std::vector< double > | dp_ |
std::vector< int > | dpfv_ |
int | ioot_ |
int | moot_ |
int | t_ |
Definition at line 12 of file MixingModuleConfig.h.
MixingInputConfig::MixingInputConfig | ( | ) |
Definition at line 9 of file MixingModuleConfig.cc.
{}
virtual MixingInputConfig::~MixingInputConfig | ( | ) | [inline, virtual] |
Definition at line 15 of file MixingModuleConfig.h.
{};
const double MixingInputConfig::averageNumber | ( | ) | const [inline] |
Definition at line 37 of file MixingModuleConfig.h.
References an_.
Referenced by edm::PileUp::reload().
{ return an_;}
const int MixingInputConfig::fixedOutOfTime | ( | ) | const [inline] |
Definition at line 42 of file MixingModuleConfig.h.
References ioot_.
Referenced by edm::PileUp::reload().
{ return ioot_;}
const int MixingInputConfig::itype | ( | ) | const [inline] |
Definition at line 17 of file MixingModuleConfig.h.
References t_.
Referenced by read().
{return t_;}
int MixingInputConfig::itype | ( | std::string | s | ) | const [inline] |
const int MixingInputConfig::outOfTime | ( | ) | const [inline] |
Definition at line 41 of file MixingModuleConfig.h.
References moot_.
Referenced by edm::PileUp::reload().
{ return moot_;}
const std::vector<int>& MixingInputConfig::probFunctionVariable | ( | ) | const [inline] |
Definition at line 39 of file MixingModuleConfig.h.
References dpfv_.
Referenced by edm::PileUp::reload().
{ return dpfv_;}
const std::vector<double>& MixingInputConfig::probValue | ( | ) | const [inline] |
Definition at line 40 of file MixingModuleConfig.h.
References dp_.
Referenced by edm::PileUp::reload().
{ return dp_;}
void MixingInputConfig::read | ( | edm::ParameterSet & | pset | ) |
Definition at line 34 of file MixingModuleConfig.cc.
References an_, dp_, dpfv_, edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), ioot_, itype(), moot_, and t_.
{ t_=itype(pset.getParameter<std::string>("type")); an_=0; // ia_=0; dpfv_.clear(); dp_.clear(); moot_=0; ioot_=0; switch(t_){ case 1: an_=pset.getParameter<double>("averageNumber"); break; case 2: an_=pset.getParameter<double>("averageNumber"); break; case 3: //not supposed to be valid case 4: dpfv_=pset.getParameter<edm::ParameterSet>("nbPileupEvents").getParameter<std::vector<int> >("probFunctionVariable"); dp_=pset.getParameter<edm::ParameterSet>("nbPileupEvents").getParameter<std::vector<double> >("probValue"); break; } if (pset.getUntrackedParameter<bool>("manage_OOT")) { std::string OOT_type = pset.getUntrackedParameter<std::string>("OOT_type"); if(OOT_type == "Poisson" || OOT_type == "poisson") moot_=2; else if (OOT_type == "Fixed" || OOT_type == "fixed") { moot_=1; ioot_=pset.getUntrackedParameter<int>("intFixed_OOT", -1); } } }
std::string MixingInputConfig::type | ( | ) | const [inline] |
Definition at line 18 of file MixingModuleConfig.h.
References t_.
Referenced by operator<<(), and edm::PileUp::reload().
{ switch(t_){ case 0: return "none"; case 1: return "fixed"; case 2: return "poisson"; case 3: return "histo"; case 4: return "prodFunction"; } return ""; }
double MixingInputConfig::an_ [private] |
Definition at line 48 of file MixingModuleConfig.h.
Referenced by averageNumber(), and read().
std::vector<double> MixingInputConfig::dp_ [private] |
Definition at line 51 of file MixingModuleConfig.h.
Referenced by probValue(), and read().
std::vector<int> MixingInputConfig::dpfv_ [private] |
Definition at line 50 of file MixingModuleConfig.h.
Referenced by probFunctionVariable(), and read().
int MixingInputConfig::ioot_ [private] |
Definition at line 53 of file MixingModuleConfig.h.
Referenced by fixedOutOfTime(), and read().
int MixingInputConfig::moot_ [private] |
Definition at line 52 of file MixingModuleConfig.h.
Referenced by outOfTime(), and read().
int MixingInputConfig::t_ [private] |
Definition at line 47 of file MixingModuleConfig.h.