98 if (
m_verbose) {
cout <<
"[L1TRate_Offline:] Called beginRun." << endl;}
110 dbe->setCurrentFolder(
"L1T/L1TRate");
128 m_algoBit[(algo->second).algoAlias()] = (algo->second).algoBitNumber();
137 TString tCategory = (*i).first;
138 TString tTrigger = (*i).second;
140 TString tErrorMessage =
"";
146 else if(tTrigger ==
"Undefined"){
147 TString tFunc =
"-1";
148 tTestFunction =
new TF1(
"FitParametrization_"+tTrigger,tFunc,0,
double(
m_maxNbins)-0.5);
151 TString tFunc =
"-1";
152 tTestFunction =
new TF1(
"FitParametrization_"+tTrigger,tFunc,0,
double(
m_maxNbins)-0.5);
153 tErrorMessage =
" (Undefined Test Function)";
156 TString tFunc =
"-1";
157 tTestFunction =
new TF1(
"FitParametrization_"+tTrigger,tFunc,0,
double(
m_maxNbins)-0.5);
160 if(tTrigger !=
"Undefined"){
163 tErrorMessage +=
" WARNING: Default Prescale = ";
167 if (tCategory ==
"Mu" && myMenuHelper.
getEtaRangeByAlias(tCategory,tTrigger) != 4294967295){
168 tErrorMessage +=
" WARNING: Eta Range = ";
171 else if(tCategory ==
"EG" && myMenuHelper.
getEtaRangeByAlias(tCategory,tTrigger) != 32639){
172 tErrorMessage +=
" WARNING: Eta Range = ";
175 else if(tCategory ==
"IsoEG" && myMenuHelper.
getEtaRangeByAlias(tCategory,tTrigger) != 32639){
176 tErrorMessage +=
" WARNING: Eta Range = ";
180 if(tCategory ==
"Mu" && myMenuHelper.
getQualityAlias(tCategory,tTrigger) != 240){
181 tErrorMessage +=
" WARNING: Quality = ";
187 dbe->setCurrentFolder(
"L1T/L1TRate/xSecDelivLumi");
189 "Cross Sec. vs Deliv. Lumi: "+tTrigger+tErrorMessage,
191 minInstantLuminosity,
192 maxInstantLuminosity,0,500);
196 dbe->setCurrentFolder(
"L1T/L1TRate/xSecRecorLumi");
198 "Cross Sec. vs Recor. Lumi: "+tTrigger+tErrorMessage,
200 minInstantLuminosity,
201 maxInstantLuminosity,0,500);
205 dbe->setCurrentFolder(
"L1T/L1TRate/TriggerCounts");
207 "Cross Sec. vs Inst. Lumi Algo: "+tTrigger+tErrorMessage,
209 minInstantLuminosity,
210 maxInstantLuminosity,0,500);
211 m_CountsVsLS[tTrigger] ->setAxisTitle(
"Instantaneous Luminosity [10^{30}cm^{-2}s^{-1}]" ,1);
212 m_CountsVsLS[tTrigger] ->setAxisTitle(
"Algorithm #sigma [#mu b]" ,2);
213 m_CountsVsLS[tTrigger] ->getTProfile()->GetListOfFunctions()->Add(tTestFunction);
214 m_CountsVsLS[tTrigger] ->getTProfile()->SetMarkerStyle(23);
216 m_algoFit[tTrigger] = (TF1*) tTestFunction->Clone(
"Fit_"+tTrigger);
218 dbe->setCurrentFolder(
"L1T/L1TRate/xSecObs");
223 dbe->setCurrentFolder(
"L1T/L1TRate/Delivered");
228 dbe->setCurrentFolder(
"L1T/L1TRate/Recorded");
233 dbe->setCurrentFolder(
"L1T/L1TRate/Ratio");
T getParameter(std::string const &) const
MonitorElement * m_ErrorMonitor
std::map< std::string, std::string > m_selectedTriggers
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, MonitorElement * > m_RecorLumiVsLS
std::map< TString, TF1 * > m_templateFunctions
bool getXSexFitsPython(const edm::ParameterSet &ps)
edm::ParameterSet m_parameters
std::map< TString, MonitorElement * > m_xSecObservedVsDelivLumi
std::map< TString, MonitorElement * > m_xSecObservedVsLS
std::map< TString, MonitorElement * > m_xSecObservedToExpected
const std::vector< std::vector< int > > & gtPrescaleFactors() const
get the prescale factors by reference
std::map< std::string, bool > m_inputCategories
T const * product() const
std::map< TString, MonitorElement * > m_CountsVsLS
const std::vector< std::vector< int > > * m_listsPrescaleFactors
std::map< TString, int > m_algoBit
std::map< TString, MonitorElement * > m_DelivLumiVsLS
std::map< TString, MonitorElement * > m_xSecObservedVsRecorLumi
std::map< TString, TF1 * > m_algoFit