CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes | Private Member Functions | Private Attributes
L1MenuTreeProducer Class Reference
Inheritance diagram for L1MenuTreeProducer:
edm::EDAnalyzer edm::EDConsumerBase

Public Member Functions

 L1MenuTreeProducer (const edm::ParameterSet &)
 
 ~L1MenuTreeProducer () override
 
- Public Member Functions inherited from edm::EDAnalyzer
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzer ()
 
SerialTaskQueueglobalLuminosityBlocksQueue ()
 
SerialTaskQueueglobalRunsQueue ()
 
ModuleDescription const & moduleDescription () const
 
std::string workerType () const
 
 ~EDAnalyzer () override
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
void convertCurrentProcessAlias (std::string const &processName)
 Convert "@currentProcess" in InputTag process names to the actual current process name. More...
 
 EDConsumerBase ()
 
 EDConsumerBase (EDConsumerBase &&)=default
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
ESProxyIndex const * esGetTokenIndices (edm::Transition iTrans) const
 
std::vector< ESProxyIndex > const & esGetTokenIndicesVector (edm::Transition iTrans) const
 
std::vector< ESRecordIndex > const & esGetTokenRecordIndicesVector (edm::Transition iTrans) const
 
ProductResolverIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
std::vector< ProductResolverIndexAndSkipBit > const & itemsToGetFrom (BranchType iType) const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesWhoseProductsAreConsumed (std::array< std::vector< ModuleDescription const * > *, NumBranchTypes > &modulesAll, std::vector< ModuleProcessName > &modulesInPreviousProcesses, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
bool registeredToConsume (ProductResolverIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
ProductResolverIndexAndSkipBit uncheckedIndexFrom (EDGetToken) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
void updateLookup (eventsetup::ESRecordsToProxyIndices const &)
 
virtual ~EDConsumerBase () noexcept(false)
 

Public Attributes

L1Analysis::L1AnalysisL1Menul1Menu
 
L1Analysis::L1AnalysisL1MenuDataFormatl1MenuData
 

Private Member Functions

void analyze (const edm::Event &, const edm::EventSetup &) override
 
void beginJob (void) override
 
void beginRun (const edm::Run &, const edm::EventSetup &) override
 
void endJob () override
 
void endRun (const edm::Run &, const edm::EventSetup &) override
 

Private Attributes

edm::Service< TFileServicefs_
 
L1GtUtils l1GtUtils_
 
TTree * tree_
 

Additional Inherited Members

- Public Types inherited from edm::EDAnalyzer
typedef EDAnalyzer ModuleType
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Static Public Member Functions inherited from edm::EDAnalyzer
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &)
 
static bool wantsGlobalLuminosityBlocks ()
 
static bool wantsGlobalRuns ()
 
static bool wantsInputProcessBlocks ()
 
static bool wantsProcessBlocks ()
 
static bool wantsStreamLuminosityBlocks ()
 
static bool wantsStreamRuns ()
 
- Protected Member Functions inherited from edm::EDConsumerBase
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
template<BranchType B = InEvent>
EDConsumerBaseAdaptor< B > consumes (edm::InputTag tag) noexcept
 
template<BranchType B>
EDGetToken consumes (TypeToGet const &id, edm::InputTag const &tag)
 
ConsumesCollector consumesCollector ()
 Use a ConsumesCollector to gather consumes information from helper functions. More...
 
template<typename ProductType , BranchType B = InEvent>
void consumesMany ()
 
void consumesMany (const TypeToGet &id)
 
template<BranchType B>
void consumesMany (const TypeToGet &id)
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes ()
 
template<Transition Tr = Transition::Event>
constexpr auto esConsumes () noexcept
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes (ESInputTag const &tag)
 
template<Transition Tr = Transition::Event>
auto esConsumes (ESInputTag tag) noexcept
 
template<Transition Tr = Transition::Event>
ESGetTokenGeneric esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey)
 Used with EventSetupRecord::doGet. More...
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 

Detailed Description

Definition at line 45 of file L1MenuTreeProducer.cc.

Constructor & Destructor Documentation

◆ L1MenuTreeProducer()

L1MenuTreeProducer::L1MenuTreeProducer ( const edm::ParameterSet iConfig)
explicit

Definition at line 73 of file L1MenuTreeProducer.cc.

74  : // l1MenuInputTag_(iConfig.getParameter<edm::InputTag>("L1MenuInputTag")),
78 
79  // set up output
80  tree_ = fs_->make<TTree>("L1MenuTree", "L1MenuTree");
81  tree_->Branch("L1Menu", "L1Analysis::L1AnalysisL1MenuDataFormat", &l1MenuData, 32000, 0 /*3*/);
82 }

References fs_, L1Analysis::L1AnalysisL1Menu::getData(), l1Menu, l1MenuData, TFileService::make(), and tree_.

◆ ~L1MenuTreeProducer()

L1MenuTreeProducer::~L1MenuTreeProducer ( )
override

Definition at line 84 of file L1MenuTreeProducer.cc.

84 {}

Member Function Documentation

◆ analyze()

void L1MenuTreeProducer::analyze ( const edm::Event iEvent,
const edm::EventSetup iSetup 
)
overrideprivatevirtual

Implements edm::EDAnalyzer.

Definition at line 91 of file L1MenuTreeProducer.cc.

91  {
92  l1Menu->Reset();
93 
94  // getting l1GtUtils
95  edm::LogInfo("L1TNtuples") << "Extracting menu ... " << std::endl;
97 
98  // testing menu
99  edm::LogInfo("L1TNtuples") << "L1 trigger menu name and implementation:"
100  << "\n"
101  << l1GtUtils_.l1TriggerMenu() << "\n"
102  << l1GtUtils_.l1TriggerMenuImplementation() << std::endl;
103 
104  // adding PrescaleFactorIndex
106 
107  tree_->Fill();
108 }

References iEvent, l1GtUtils_, l1Menu, L1GtUtils::l1TriggerMenu(), L1GtUtils::l1TriggerMenuImplementation(), L1Analysis::L1AnalysisL1Menu::Reset(), L1GtUtils::retrieveL1EventSetup(), L1Analysis::L1AnalysisL1Menu::SetPrescaleFactorIndex(), and tree_.

◆ beginJob()

void L1MenuTreeProducer::beginJob ( void  )
overrideprivatevirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 111 of file L1MenuTreeProducer.cc.

111 {}

◆ beginRun()

void L1MenuTreeProducer::beginRun ( const edm::Run iRun,
const edm::EventSetup evSetup 
)
overrideprivatevirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 113 of file L1MenuTreeProducer.cc.

113  {
114  // L1GtTriggerMenuLite input tag from provenance
115  //l1GtUtils_.getL1GtRunCache(iRun, evSetup, true, true);
116 }

◆ endJob()

void L1MenuTreeProducer::endJob ( void  )
overrideprivatevirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 119 of file L1MenuTreeProducer.cc.

119 {}

◆ endRun()

void L1MenuTreeProducer::endRun ( const edm::Run ,
const edm::EventSetup  
)
inlineoverrideprivatevirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 54 of file L1MenuTreeProducer.cc.

54 {}

Member Data Documentation

◆ fs_

edm::Service<TFileService> L1MenuTreeProducer::fs_
private

Definition at line 63 of file L1MenuTreeProducer.cc.

Referenced by L1MenuTreeProducer().

◆ l1GtUtils_

L1GtUtils L1MenuTreeProducer::l1GtUtils_
private

Definition at line 70 of file L1MenuTreeProducer.cc.

Referenced by analyze().

◆ l1Menu

L1Analysis::L1AnalysisL1Menu* L1MenuTreeProducer::l1Menu

Definition at line 58 of file L1MenuTreeProducer.cc.

Referenced by analyze(), and L1MenuTreeProducer().

◆ l1MenuData

L1Analysis::L1AnalysisL1MenuDataFormat* L1MenuTreeProducer::l1MenuData

Definition at line 59 of file L1MenuTreeProducer.cc.

Referenced by L1MenuTreeProducer().

◆ tree_

TTree* L1MenuTreeProducer::tree_
private

Definition at line 66 of file L1MenuTreeProducer.cc.

Referenced by analyze(), and L1MenuTreeProducer().

L1Analysis::L1AnalysisL1Menu::Reset
void Reset()
Definition: L1AnalysisL1Menu.h:18
L1GtUtils::UseEventSetupIn::Event
L1GtUtils::l1TriggerMenuImplementation
const std::string & l1TriggerMenuImplementation() const
return the L1 trigger menu implementation
Definition: L1GtUtils.cc:1598
edm::EDConsumerBase::consumesCollector
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
Definition: EDConsumerBase.cc:47
edm::LogInfo
Log< level::Info, false > LogInfo
Definition: MessageLogger.h:125
L1Analysis::L1AnalysisL1Menu::getData
L1AnalysisL1MenuDataFormat * getData()
Definition: L1AnalysisL1Menu.h:20
L1MenuTreeProducer::fs_
edm::Service< TFileService > fs_
Definition: L1MenuTreeProducer.cc:63
L1MenuTreeProducer::l1GtUtils_
L1GtUtils l1GtUtils_
Definition: L1MenuTreeProducer.cc:70
L1GtUtils::l1TriggerMenu
const std::string & l1TriggerMenu() const
return the L1 trigger menu name
Definition: L1GtUtils.cc:1577
L1MenuTreeProducer::l1Menu
L1Analysis::L1AnalysisL1Menu * l1Menu
Definition: L1MenuTreeProducer.cc:58
L1Analysis::L1AnalysisL1Menu
Definition: L1AnalysisL1Menu.h:14
L1MenuTreeProducer::l1MenuData
L1Analysis::L1AnalysisL1MenuDataFormat * l1MenuData
Definition: L1MenuTreeProducer.cc:59
iEvent
int iEvent
Definition: GenABIO.cc:224
L1GtUtils::retrieveL1EventSetup
void retrieveL1EventSetup(const edm::EventSetup &, bool isRun=true)
retrieve all the relevant L1 trigger event setup records and cache them to improve the speed
Definition: L1GtUtils.cc:128
L1MenuTreeProducer::tree_
TTree * tree_
Definition: L1MenuTreeProducer.cc:66
TFileService::make
T * make(const Args &... args) const
make new ROOT object
Definition: TFileService.h:64
L1Analysis::L1AnalysisL1Menu::SetPrescaleFactorIndex
void SetPrescaleFactorIndex(L1GtUtils &l1GtUtils_, const edm::Event &iEvent)
Definition: L1AnalysisL1Menu.cc:4