CMS 3D CMS Logo

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 14 of file L1AnalysisL1Menu.h.

Constructor & Destructor Documentation

L1Analysis::L1AnalysisL1Menu::L1AnalysisL1Menu ( )
inline

Definition at line 16 of file L1AnalysisL1Menu.h.

References Reset().

L1Analysis::L1AnalysisL1Menu::~L1AnalysisL1Menu ( )
inline

Definition at line 17 of file L1AnalysisL1Menu.h.

17 {}

Member Function Documentation

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

Definition at line 20 of file L1AnalysisL1Menu.h.

References data_.

Referenced by L1MenuTreeProducer::L1MenuTreeProducer().

20 { return &data_; }
L1AnalysisL1MenuDataFormat data_
void L1Analysis::L1AnalysisL1Menu::Reset ( )
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_, 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(), and Reset().

4  {
5  int iErrorCode = -1;
6  const int pfSetIndexAlgorithmTrigger =
7  l1GtUtils_.prescaleFactorSetIndex(iEvent, L1GtUtils::AlgorithmTrigger, iErrorCode);
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 =
27  l1GtUtils_.prescaleFactorSetIndex(iEvent, L1GtUtils::TechnicalTrigger, iErrorCode);
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:1227
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:1535
RunNumber_t run() const
Definition: Event.h:107

Member Data Documentation

L1AnalysisL1MenuDataFormat L1Analysis::L1AnalysisL1Menu::data_
private

Definition at line 23 of file L1AnalysisL1Menu.h.

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