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

◆ L1AnalysisL1Menu()

L1Analysis::L1AnalysisL1Menu::L1AnalysisL1Menu ( )
inline

Definition at line 16 of file L1AnalysisL1Menu.h.

References Reset().

◆ ~L1AnalysisL1Menu()

L1Analysis::L1AnalysisL1Menu::~L1AnalysisL1Menu ( )
inline

Definition at line 17 of file L1AnalysisL1Menu.h.

17 {}

Member Function Documentation

◆ getData()

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_

◆ Reset()

void L1Analysis::L1AnalysisL1Menu::Reset ( )
inline

◆ SetPrescaleFactorIndex()

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_, iEvent, L1GtUtils::l1TriggerMenu(), L1GtUtils::prescaleFactorSetIndex(), L1GtUtils::TechnicalTrigger, L1Analysis::L1AnalysisL1MenuDataFormat::TechTrig_PrescaleFactorIndex, and L1Analysis::L1AnalysisL1MenuDataFormat::TechTrig_PrescaleFactorIndexValid.

Referenced by L1MenuTreeProducer::analyze().

4  {
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
const std::string & l1TriggerMenu() const
return the L1 trigger menu name
Definition: L1GtUtils.cc:1577

Member Data Documentation

◆ data_

L1AnalysisL1MenuDataFormat L1Analysis::L1AnalysisL1Menu::data_
private

Definition at line 23 of file L1AnalysisL1Menu.h.

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