CMS 3D CMS Logo

L1AnalysisL1Menu.cc
Go to the documentation of this file.
2 #include <vector>
3 
5  int iErrorCode = -1;
6  const int pfSetIndexAlgorithmTrigger =
8 
9  if (iErrorCode == 0) {
10  std::cout << "\nAlgorithm triggers: index for prescale factor set = " << pfSetIndexAlgorithmTrigger << "\nfor run "
11  << iEvent.run() << ", luminosity block " << iEvent.luminosityBlock() << ", with L1 menu \n "
12  << l1GtUtils_.l1TriggerMenu() << std::endl;
14  data_.AlgoTrig_PrescaleFactorIndex = pfSetIndexAlgorithmTrigger;
15  } else {
16  std::cout << "\nError encountered when retrieving the prescale factor set index"
17  << "\n for algorithm triggers, for run " << iEvent.run() << ", luminosity block "
18  << iEvent.luminosityBlock() << " with L1 menu \n " << l1GtUtils_.l1TriggerMenu()
19  << "\n Error code: " << iErrorCode << "\n"
20  << std::endl;
23  }
24 
25  iErrorCode = -1;
26  const int pfSetIndexTechnicalTrigger =
28 
29  if (iErrorCode == 0) {
30  std::cout << "\nAlgorithm triggers: index for prescale factor set = " << pfSetIndexTechnicalTrigger << "\nfor run "
31  << iEvent.run() << ", luminosity block " << iEvent.luminosityBlock() << ", with L1 menu \n "
32  << l1GtUtils_.l1TriggerMenu() << std::endl;
34  data_.TechTrig_PrescaleFactorIndex = pfSetIndexTechnicalTrigger;
35  } else {
36  std::cout << "\nError encountered when retrieving the prescale factor set index"
37  << "\n for algorithm triggers, for run " << iEvent.run() << ", luminosity block "
38  << iEvent.luminosityBlock() << " with L1 menu \n " << l1GtUtils_.l1TriggerMenu()
39  << "\n Error code: " << iErrorCode << "\n"
40  << std::endl;
43  }
44 }
gather_cfg.cout
cout
Definition: gather_cfg.py:144
L1Analysis::L1AnalysisL1MenuDataFormat::AlgoTrig_PrescaleFactorIndex
int AlgoTrig_PrescaleFactorIndex
Definition: L1AnalysisL1MenuDataFormat.h:19
L1GtUtils::TechnicalTrigger
Definition: L1GtUtils.h:140
L1Analysis::L1AnalysisL1Menu::data_
L1AnalysisL1MenuDataFormat data_
Definition: L1AnalysisL1Menu.h:23
L1Analysis::L1AnalysisL1MenuDataFormat::TechTrig_PrescaleFactorIndex
int TechTrig_PrescaleFactorIndex
Definition: L1AnalysisL1MenuDataFormat.h:21
L1GtUtils
Definition: L1GtUtils.h:66
L1GtUtils::l1TriggerMenu
const std::string & l1TriggerMenu() const
return the L1 trigger menu name
Definition: L1GtUtils.cc:1582
iEvent
int iEvent
Definition: GenABIO.cc:224
L1AnalysisL1Menu.h
L1Analysis::L1AnalysisL1MenuDataFormat::TechTrig_PrescaleFactorIndexValid
bool TechTrig_PrescaleFactorIndexValid
Definition: L1AnalysisL1MenuDataFormat.h:20
L1GtUtils::AlgorithmTrigger
Definition: L1GtUtils.h:140
L1GtUtils::prescaleFactorSetIndex
const int prescaleFactorSetIndex(const edm::Event &iEvent, const TriggerCategory &trigCategory, int &errorCode) const
Definition: L1GtUtils.cc:1274
edm::Event
Definition: Event.h:73
L1Analysis::L1AnalysisL1MenuDataFormat::AlgoTrig_PrescaleFactorIndexValid
bool AlgoTrig_PrescaleFactorIndexValid
Definition: L1AnalysisL1MenuDataFormat.h:18
L1Analysis::L1AnalysisL1Menu::SetPrescaleFactorIndex
void SetPrescaleFactorIndex(L1GtUtils &l1GtUtils_, const edm::Event &iEvent)
Definition: L1AnalysisL1Menu.cc:4