test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
L1AnalysisL1Menu.cc
Go to the documentation of this file.
2 #include <vector>
3 
5 {
6  int iErrorCode=-1;
7  const int pfSetIndexAlgorithmTrigger =
8  l1GtUtils_.prescaleFactorSetIndex(iEvent, L1GtUtils::AlgorithmTrigger, iErrorCode);
9 
10  if (iErrorCode == 0)
11  {
12  std::cout << "\nAlgorithm triggers: index for prescale factor set = "
13  << pfSetIndexAlgorithmTrigger << "\nfor run " << iEvent.run()
14  << ", luminosity block " << iEvent.luminosityBlock()
15  << ", with L1 menu \n " << l1GtUtils_.l1TriggerMenu()
16  << std::endl;
18  data_.AlgoTrig_PrescaleFactorIndex = pfSetIndexAlgorithmTrigger;
19  }
20  else
21  {
22  std::cout << "\nError encountered when retrieving the prescale factor set index"
23  << "\n for algorithm triggers, for run " << iEvent.run()
24  << ", luminosity block " << iEvent.luminosityBlock()
25  << " with L1 menu \n " << l1GtUtils_.l1TriggerMenu()
26  << "\n Error code: " << iErrorCode << "\n" << std::endl;
29  }
30 
31 
32 
33  iErrorCode=-1;
34  const int pfSetIndexTechnicalTrigger =
35  l1GtUtils_.prescaleFactorSetIndex(iEvent, L1GtUtils::TechnicalTrigger, iErrorCode);
36 
37  if (iErrorCode == 0)
38  {
39  std::cout << "\nAlgorithm triggers: index for prescale factor set = "
40  << pfSetIndexTechnicalTrigger << "\nfor run " << iEvent.run()
41  << ", luminosity block " << iEvent.luminosityBlock()
42  << ", with L1 menu \n " << l1GtUtils_.l1TriggerMenu()
43  << std::endl;
45  data_.TechTrig_PrescaleFactorIndex = pfSetIndexTechnicalTrigger;
46  }
47  else
48  {
49  std::cout << "\nError encountered when retrieving the prescale factor set index"
50  << "\n for algorithm triggers, for run " << iEvent.run()
51  << ", luminosity block " << iEvent.luminosityBlock()
52  << " with L1 menu \n " << l1GtUtils_.l1TriggerMenu()
53  << "\n Error code: " << iErrorCode << "\n" << std::endl;
56  }
57 
58 }
const int prescaleFactorSetIndex(const edm::Event &iEvent, const TriggerCategory &trigCategory, int &errorCode) const
Definition: L1GtUtils.cc:1458
edm::LuminosityBlockNumber_t luminosityBlock() const
Definition: EventBase.h:62
L1AnalysisL1MenuDataFormat data_
const std::string & l1TriggerMenu() const
return the L1 trigger menu name
Definition: L1GtUtils.cc:1833
int iEvent
Definition: GenABIO.cc:230
void SetPrescaleFactorIndex(L1GtUtils &l1GtUtils_, const edm::Event &iEvent)
RunNumber_t run() const
Definition: Event.h:93
int iErrorCode
tuple cout
Definition: gather_cfg.py:145