48 m_l1GtDataDaqInputTag = m_parameters.getParameter <
InputTag>(
"inputTagL1GtDataDaq");
49 m_verbose = m_parameters.getUntrackedParameter<
bool> (
"verbose",
false);
50 m_refPrescaleSet = m_parameters.getParameter <
int> (
"refPrescaleSet");
51 m_lsShiftGTRates = m_parameters.getUntrackedParameter<
int> (
"lsShiftGTRates",0);
57 m_inputCategories[
"IsoEG"] = Categories.getUntrackedParameter<
bool>(
"IsoEG");
58 m_inputCategories[
"Jet"] = Categories.getUntrackedParameter<
bool>(
"Jet");
59 m_inputCategories[
"CenJet"] = Categories.getUntrackedParameter<
bool>(
"CenJet");
60 m_inputCategories[
"ForJet"] = Categories.getUntrackedParameter<
bool>(
"ForJet");
61 m_inputCategories[
"TauJet"] = Categories.getUntrackedParameter<
bool>(
"TauJet");
62 m_inputCategories[
"ETM"] = Categories.getUntrackedParameter<
bool>(
"ETM");
63 m_inputCategories[
"ETT"] = Categories.getUntrackedParameter<
bool>(
"ETT");
64 m_inputCategories[
"HTT"] = Categories.getUntrackedParameter<
bool>(
"HTT");
65 m_inputCategories[
"HTM"] = Categories.getUntrackedParameter<
bool>(
"HTM");
78 if (m_outputFile.size() != 0) {
79 cout <<
"L1T Monitoring histograms will be saved to " << m_outputFile.c_str() << endl;
83 if (disable) {m_outputFile =
"";}
85 if (dbe !=
NULL) {dbe->setCurrentFolder(
"L1T/L1TRate_Harvest");}
95 if (m_verbose) {
cout <<
"[L1TRate_Harvest:] Called beginJob." << endl;}
103 dbe->
rmdir(
"L1T/L1TRate_Harvest");
111 if (m_verbose) {
cout <<
"[L1TRate_Harvest:] Called endJob." << endl;}
113 if (m_outputFile.size() != 0 && dbe)
114 dbe->save(m_outputFile);
431 std::vector<edm::ParameterSet> m_fitParameters = ps.
getParameter< vector<ParameterSet> >(
"fitParameters");
433 double minInstantLuminosity = m_parameters.getParameter<
double>(
"minInstantLuminosity");
434 double maxInstantLuminosity = m_parameters.getParameter<
double>(
"maxInstantLuminosity");
437 for(map<string,string>::const_iterator
a=m_selectedTriggers.begin() ;
a!=m_selectedTriggers.end() ;
a++){
438 cout<<
"WP04-1"<<endl;
439 string tTrigger = (*a).second;
442 if(tTrigger !=
"Undefined"){
443 cout<<
"WP04-2"<<endl;
444 bool foundFit =
false;
446 for(
unsigned int b=0 ;
b<m_fitParameters.size() ;
b++){
447 cout<<
"WP05-1"<<endl;
448 if(tTrigger == m_fitParameters[
b].getParameter<string>(
"AlgoName")){
449 cout<<
"WP05-2"<<endl;
450 TString tAlgoName = m_fitParameters[
b].getParameter<
string > (
"AlgoName");
451 TString tTemplateFunction = m_fitParameters[
b].getParameter<
string > (
"TemplateFunction");
452 vector<double> tParameters = m_fitParameters[
b].getParameter< vector<double> >(
"Parameters");
455 m_templateFunctions[tTrigger] =
new TF1(
"FitParametrization_"+tAlgoName,tTemplateFunction,
456 minInstantLuminosity,maxInstantLuminosity);
457 m_templateFunctions[tTrigger] ->SetParameters(&tParameters[0]);
458 m_templateFunctions[tTrigger] ->SetLineWidth(1);
459 m_templateFunctions[tTrigger] ->SetLineColor(kRed);
466 cout<<
"WP05-3"<<endl;
469 int eCount = m_ErrorMonitor->getTH1()->GetBinContent(WARNING_PY_MISSING_FIT);
471 m_ErrorMonitor->getTH1()->SetBinContent(WARNING_PY_MISSING_FIT,eCount);
473 cout<<
"WP05-4"<<endl;
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
void rmdir(const std::string &fullpath)
void beginRun(const edm::Run &run, const edm::EventSetup &iSetup)
void endRun(const edm::Run &run, const edm::EventSetup &iSetup)
virtual void endLuminosityBlock(edm::LuminosityBlock const &lumiBlock, edm::EventSetup const &c)
bool getXSexFitsPython(const edm::ParameterSet &ps)
DEFINE_FWK_MODULE(HiMixingModule)
void analyze(const edm::Event &e, const edm::EventSetup &c)
virtual ~L1TRate_Harvest()
L1TRate_Harvest(const edm::ParameterSet &ps)
virtual void beginLuminosityBlock(edm::LuminosityBlock const &lumiBlock, edm::EventSetup const &c)
void setCurrentFolder(const std::string &fullpath)