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 }
const int prescaleFactorSetIndex(const edm::Event &iEvent, const TriggerCategory &trigCategory, int &errorCode) const
Definition: L1GtUtils.cc:1269
L1AnalysisL1MenuDataFormat data_
int iEvent
Definition: GenABIO.cc:224
void SetPrescaleFactorIndex(L1GtUtils &l1GtUtils_, const edm::Event &iEvent)
const std::string & l1TriggerMenu() const
return the L1 trigger menu name
Definition: L1GtUtils.cc:1577