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.

16 { Reset(); }

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.

20 { return &data_; }

References data_.

Referenced by L1MenuTreeProducer::L1MenuTreeProducer().

◆ 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.

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 }

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().

Member Data Documentation

◆ data_

L1AnalysisL1MenuDataFormat L1Analysis::L1AnalysisL1Menu::data_
private

Definition at line 23 of file L1AnalysisL1Menu.h.

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

L1Analysis::L1AnalysisL1MenuDataFormat::Reset
void Reset()
Definition: L1AnalysisL1MenuDataFormat.h:11
L1Analysis::L1AnalysisL1Menu::Reset
void Reset()
Definition: L1AnalysisL1Menu.h:18
gather_cfg.cout
cout
Definition: gather_cfg.py:144
L1Analysis::L1AnalysisL1MenuDataFormat::AlgoTrig_PrescaleFactorIndex
int AlgoTrig_PrescaleFactorIndex
Definition: L1AnalysisL1MenuDataFormat.h:19
L1GtUtils::TechnicalTrigger
Definition: L1GtUtils.h:140
L1Analysis::L1AnalysisL1Menu::data_
L1AnalysisL1MenuDataFormat data_
Definition: L1AnalysisL1Menu.h:23
L1Analysis::L1AnalysisL1MenuDataFormat::TechTrig_PrescaleFactorIndex
int TechTrig_PrescaleFactorIndex
Definition: L1AnalysisL1MenuDataFormat.h:21
L1GtUtils::l1TriggerMenu
const std::string & l1TriggerMenu() const
return the L1 trigger menu name
Definition: L1GtUtils.cc:1582
iEvent
int iEvent
Definition: GenABIO.cc:224
L1Analysis::L1AnalysisL1MenuDataFormat::TechTrig_PrescaleFactorIndexValid
bool TechTrig_PrescaleFactorIndexValid
Definition: L1AnalysisL1MenuDataFormat.h:20
L1GtUtils::AlgorithmTrigger
Definition: L1GtUtils.h:140
L1GtUtils::prescaleFactorSetIndex
const int prescaleFactorSetIndex(const edm::Event &iEvent, const TriggerCategory &trigCategory, int &errorCode) const
Definition: L1GtUtils.cc:1274
L1Analysis::L1AnalysisL1MenuDataFormat::AlgoTrig_PrescaleFactorIndexValid
bool AlgoTrig_PrescaleFactorIndexValid
Definition: L1AnalysisL1MenuDataFormat.h:18