39 m_l1GtDataDaqInputTag = m_parameters.getParameter <
InputTag>(
"inputTagL1GtDataDaq");
40 m_verbose = m_parameters.getUntrackedParameter<
bool> (
"verbose",
false);
41 m_refPrescaleSet = m_parameters.getParameter <
int> (
"refPrescaleSet");
42 m_lsShiftGTRates = m_parameters.getUntrackedParameter<
int> (
"lsShiftGTRates",0);
48 m_inputCategories[
"IsoEG"] = Categories.getUntrackedParameter<
bool>(
"IsoEG");
49 m_inputCategories[
"Jet"] = Categories.getUntrackedParameter<
bool>(
"Jet");
50 m_inputCategories[
"CenJet"] = Categories.getUntrackedParameter<
bool>(
"CenJet");
51 m_inputCategories[
"ForJet"] = Categories.getUntrackedParameter<
bool>(
"ForJet");
52 m_inputCategories[
"TauJet"] = Categories.getUntrackedParameter<
bool>(
"TauJet");
53 m_inputCategories[
"ETM"] = Categories.getUntrackedParameter<
bool>(
"ETM");
54 m_inputCategories[
"ETT"] = Categories.getUntrackedParameter<
bool>(
"ETT");
55 m_inputCategories[
"HTT"] = Categories.getUntrackedParameter<
bool>(
"HTT");
56 m_inputCategories[
"HTM"] = Categories.getUntrackedParameter<
bool>(
"HTM");
69 if (m_outputFile.size() != 0) {
70 cout <<
"L1T Monitoring histograms will be saved to " << m_outputFile.c_str() << endl;
74 if (disable) {m_outputFile =
"";}
76 if (dbe !=
NULL) {dbe->setCurrentFolder(
"L1T/L1TRate");}
86 if (m_verbose) {
cout <<
"[L1TRate_Harvest:] Called beginJob." << endl;}
93 dbe->setCurrentFolder(
"L1T/L1TRate");
94 dbe->rmdir(
"L1T/L1TRate");
102 if (m_verbose) {
cout <<
"[L1TRate_Harvest:] Called endJob." << endl;}
104 if (m_outputFile.size() != 0 && dbe)
105 dbe->save(m_outputFile);
116 if (m_verbose) {
cout <<
"[L1TRate_Harvest:] Called beginRun." << endl;}
232 if (m_verbose) {
cout <<
"[L1TRate_Harvest:] Called endRun." << endl;}
362 std::vector<edm::ParameterSet> m_fitParameters = ps.
getParameter< vector<ParameterSet> >(
"fitParameters");
364 double minInstantLuminosity = m_parameters.getParameter<
double>(
"minInstantLuminosity");
365 double maxInstantLuminosity = m_parameters.getParameter<
double>(
"maxInstantLuminosity");
368 for(map<string,string>::const_iterator
a=m_selectedTriggers.begin() ;
a!=m_selectedTriggers.end() ;
a++){
370 string tTrigger = (*a).second;
373 if(tTrigger !=
"Undefined"){
375 bool foundFit =
false;
377 for(
unsigned int b=0 ;
b<m_fitParameters.size() ;
b++){
379 if(tTrigger == m_fitParameters[
b].getParameter<string>(
"AlgoName")){
381 TString tAlgoName = m_fitParameters[
b].getParameter<
string > (
"AlgoName");
382 TString tTemplateFunction = m_fitParameters[
b].getParameter<
string > (
"TemplateFunction");
383 vector<double> tParameters = m_fitParameters[
b].getParameter< vector<double> >(
"Parameters");
386 m_templateFunctions[tTrigger] =
new TF1(
"FitParametrization_"+tAlgoName,tTemplateFunction,
387 minInstantLuminosity,maxInstantLuminosity);
388 m_templateFunctions[tTrigger] ->SetParameters(&tParameters[0]);
389 m_templateFunctions[tTrigger] ->SetLineWidth(1);
390 m_templateFunctions[tTrigger] ->SetLineColor(kRed);
400 int eCount = m_ErrorMonitor->getTH1()->GetBinContent(WARNING_PY_MISSING_FIT);
402 m_ErrorMonitor->getTH1()->SetBinContent(WARNING_PY_MISSING_FIT,eCount);
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
void beginRun(const edm::Run &run, const edm::EventSetup &iSetup)
void endRun(const edm::Run &run, const edm::EventSetup &iSetup)
#define DEFINE_FWK_MODULE(type)
virtual void endLuminosityBlock(edm::LuminosityBlock const &lumiBlock, edm::EventSetup const &c)
bool getXSexFitsPython(const edm::ParameterSet &ps)
virtual ~L1TRate_Harvest()
L1TRate_Harvest(const edm::ParameterSet &ps)
virtual void beginLuminosityBlock(edm::LuminosityBlock const &lumiBlock, edm::EventSetup const &c)