CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
L1Analysis::L1AnalysisL1Menu Class Reference

#include <L1AnalysisL1Menu.h>

Public Member Functions

L1AnalysisL1MenuDataFormatgetData ()
 
 L1AnalysisL1Menu ()
 
void Reset ()
 
void SetPrescaleFactorIndex (L1GtUtils &l1GtUtils_, const edm::Event &iEvent)
 
 ~L1AnalysisL1Menu ()
 

Private Attributes

L1AnalysisL1MenuDataFormat data_
 

Detailed Description

Definition at line 17 of file L1AnalysisL1Menu.h.

Constructor & Destructor Documentation

L1Analysis::L1AnalysisL1Menu::L1AnalysisL1Menu ( )
inline

Definition at line 20 of file L1AnalysisL1Menu.h.

References Reset().

L1Analysis::L1AnalysisL1Menu::~L1AnalysisL1Menu ( )
inline

Definition at line 21 of file L1AnalysisL1Menu.h.

21 {}

Member Function Documentation

L1AnalysisL1MenuDataFormat* L1Analysis::L1AnalysisL1Menu::getData ( void  )
inline

Definition at line 24 of file L1AnalysisL1Menu.h.

References data_.

Referenced by L1MenuTreeProducer::L1MenuTreeProducer().

24 {return &data_;}
L1AnalysisL1MenuDataFormat data_
void L1Analysis::L1AnalysisL1Menu::Reset ( void  )
inline
void L1Analysis::L1AnalysisL1Menu::SetPrescaleFactorIndex ( L1GtUtils l1GtUtils_,
const edm::Event iEvent 
)

Definition at line 4 of file L1AnalysisL1Menu.cc.

References L1GtUtils::AlgorithmTrigger, L1Analysis::L1AnalysisL1MenuDataFormat::AlgoTrig_PrescaleFactorIndex, L1Analysis::L1AnalysisL1MenuDataFormat::AlgoTrig_PrescaleFactorIndexValid, gather_cfg::cout, data_, iErrorCode, L1GtUtils::l1TriggerMenu(), edm::EventBase::luminosityBlock(), L1GtUtils::prescaleFactorSetIndex(), edm::Event::run(), L1GtUtils::TechnicalTrigger, L1Analysis::L1AnalysisL1MenuDataFormat::TechTrig_PrescaleFactorIndex, and L1Analysis::L1AnalysisL1MenuDataFormat::TechTrig_PrescaleFactorIndexValid.

Referenced by L1MenuTreeProducer::analyze().

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:61
L1AnalysisL1MenuDataFormat data_
const std::string & l1TriggerMenu() const
return the L1 trigger menu name
Definition: L1GtUtils.cc:1833
RunNumber_t run() const
Definition: Event.h:94
int iErrorCode
tuple cout
Definition: gather_cfg.py:145

Member Data Documentation

L1AnalysisL1MenuDataFormat L1Analysis::L1AnalysisL1Menu::data_
private

Definition at line 27 of file L1AnalysisL1Menu.h.

Referenced by getData(), Reset(), and SetPrescaleFactorIndex().