124 if (
m_verbose) {
cout <<
"[L1TRate:] Called beginRun." << endl;}
166 TString tCategory = (*i).first;
167 TString tTrigger = (*i).second;
169 TString tErrorMessage =
"";
175 else if(tTrigger ==
"Undefined"){
176 TString tFunc =
"-1";
177 tTestFunction =
new TF1(
"FitParametrization_"+tTrigger,tFunc,0,
double(
m_maxNbins)-0.5);
180 TString tFunc =
"-1";
181 tTestFunction =
new TF1(
"FitParametrization_"+tTrigger,tFunc,0,
double(
m_maxNbins)-0.5);
182 tErrorMessage =
" (Undefined Test Function)";
185 TString tFunc =
"-1";
186 tTestFunction =
new TF1(
"FitParametrization_"+tTrigger,tFunc,0,
double(
m_maxNbins)-0.5);
189 if(tTrigger !=
"Undefined"){
192 tErrorMessage +=
" WARNING: Default Prescale = ";
196 if (tCategory ==
"Mu" && myMenuHelper.
getEtaRangeByAlias(tCategory,tTrigger) != 4294967295){
197 tErrorMessage +=
" WARNING: Eta Range = ";
200 else if(tCategory ==
"EG" && myMenuHelper.
getEtaRangeByAlias(tCategory,tTrigger) != 32639){
201 tErrorMessage +=
" WARNING: Eta Range = ";
204 else if(tCategory ==
"IsoEG" && myMenuHelper.
getEtaRangeByAlias(tCategory,tTrigger) != 32639){
205 tErrorMessage +=
" WARNING: Eta Range = ";
209 if(tCategory ==
"Mu" && myMenuHelper.
getQualityAlias(tCategory,tTrigger) != 240){
210 tErrorMessage +=
" WARNING: Quality = ";
220 "Cross Sec. vs Inst. Lumi Algo: "+tTrigger+tErrorMessage,
222 minInstantLuminosity,
223 maxInstantLuminosity,0,500);
224 m_xSecVsInstLumi[tTrigger] ->setAxisTitle(
"Instantaneous Luminosity [10^{30}cm^{-2}s^{-1}]" ,1);
226 m_xSecVsInstLumi[tTrigger] ->getTProfile()->GetListOfFunctions()->Add(tTestFunction);
T getParameter(std::string const &) const
MonitorElement * book1D(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1D histogram.
std::map< TString, MonitorElement * > m_xSecObservedToExpected
edm::ParameterSet m_parameters
void setBinLabel(int bin, const std::string &label, int axis=1)
set bin label for x, y or z axis (axis=1, 2, 3 respectively)
std::map< TString, TF1 * > m_templateFunctions
bool getXSexFitsPython(const edm::ParameterSet &ps)
std::map< TString, int > m_algoBit
MonitorElement * bookProfile(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, const char *option="s")
bool getXSexFitsOMDS(const edm::ParameterSet &ps)
const std::vector< std::vector< int > > & gtPrescaleFactors() const
get the prescale factors by reference
const std::vector< std::vector< int > > * m_listsPrescaleFactors
T const * product() const
std::map< TString, MonitorElement * > m_xSecVsInstLumi
std::map< std::string, bool > m_inputCategories
MonitorElement * m_ErrorMonitor
std::map< std::string, std::string > m_selectedTriggers
void setCurrentFolder(const std::string &fullpath)