119 if (
m_verbose) {
cout <<
"[L1TRate:] Called beginRun." << endl;}
152 m_algoBit[(algo->second).algoAlias()] = (algo->second).algoBitNumber();
161 TString tCategory = (*i).first;
162 TString tTrigger = (*i).second;
164 TString tErrorMessage =
"";
170 else if(tTrigger ==
"Undefined"){
171 TString tFunc =
"-1";
172 tTestFunction =
new TF1(
"FitParametrization_"+tTrigger,tFunc,0,
double(
m_maxNbins)-0.5);
175 TString tFunc =
"-1";
176 tTestFunction =
new TF1(
"FitParametrization_"+tTrigger,tFunc,0,
double(
m_maxNbins)-0.5);
177 tErrorMessage =
" (Undefined Test Function)";
180 TString tFunc =
"-1";
181 tTestFunction =
new TF1(
"FitParametrization_"+tTrigger,tFunc,0,
double(
m_maxNbins)-0.5);
184 if(tTrigger !=
"Undefined"){
187 tErrorMessage +=
" WARNING: Default Prescale = ";
191 if (tCategory ==
"Mu" && myMenuHelper.
getEtaRangeByAlias(tCategory,tTrigger) != 4294967295){
192 tErrorMessage +=
" WARNING: Eta Range = ";
195 else if(tCategory ==
"EG" && myMenuHelper.
getEtaRangeByAlias(tCategory,tTrigger) != 32639){
196 tErrorMessage +=
" WARNING: Eta Range = ";
199 else if(tCategory ==
"IsoEG" && myMenuHelper.
getEtaRangeByAlias(tCategory,tTrigger) != 32639){
200 tErrorMessage +=
" WARNING: Eta Range = ";
204 if(tCategory ==
"Mu" && myMenuHelper.
getQualityAlias(tCategory,tTrigger) != 240){
205 tErrorMessage +=
" WARNING: Quality = ";
215 "Cross Sec. vs Inst. Lumi Algo: "+tTrigger+tErrorMessage,
217 minInstantLuminosity,
218 maxInstantLuminosity,0,500);
219 m_xSecVsInstLumi[tTrigger] ->setAxisTitle(
"Instantaneous Luminosity [10^{30}cm^{-2}s^{-1}]" ,1);
221 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)