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 const &)=delete
 
 EDConsumerBase (EDConsumerBase &&)=default
 
ESProxyIndex const * esGetTokenIndices (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::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
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 wantsStreamLuminosityBlocks ()
 
static bool wantsStreamRuns ()
 
- Protected Member Functions inherited from edm::EDConsumerBase
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
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<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes (ESInputTag const &tag)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 

Detailed Description

Definition at line 46 of file L1MenuTreeProducer.cc.

Constructor & Destructor Documentation

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

Definition at line 80 of file L1MenuTreeProducer.cc.

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

80  :
81  // l1MenuInputTag_(iConfig.getParameter<edm::InputTag>("L1MenuInputTag")),
82  l1GtUtils_(iConfig, consumesCollector(), true)
83 {
86 
87  // set up output
88  tree_=fs_->make<TTree>("L1MenuTree", "L1MenuTree");
89  tree_->Branch("L1Menu", "L1Analysis::L1AnalysisL1MenuDataFormat", &l1MenuData, 32000, 0 /*3*/);
90 
91 }
edm::Service< TFileService > fs_
T * make(const Args &...args) const
make new ROOT object
Definition: TFileService.h:64
L1Analysis::L1AnalysisL1Menu * l1Menu
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
L1Analysis::L1AnalysisL1MenuDataFormat * l1MenuData
L1AnalysisL1MenuDataFormat * getData()
L1MenuTreeProducer::~L1MenuTreeProducer ( )
override

Definition at line 94 of file L1MenuTreeProducer.cc.

95 {}

Member Function Documentation

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

Definition at line 104 of file L1MenuTreeProducer.cc.

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

105 {
106 
107  l1Menu->Reset();
108 
109  // getting l1GtUtils
110  edm::LogInfo("L1TNtuples") << "Extracting menu ... "<<std::endl;
112 
113  // testing menu
114  edm::LogInfo("L1TNtuples") << "L1 trigger menu name and implementation:" << "\n"
115  << l1GtUtils_.l1TriggerMenu() << "\n"
117  << std::endl;
118 
119  // adding PrescaleFactorIndex
121 
122  tree_->Fill();
123 
124 }
const std::string & l1TriggerMenu() const
return the L1 trigger menu name
Definition: L1GtUtils.cc:1833
void SetPrescaleFactorIndex(L1GtUtils &l1GtUtils_, const edm::Event &iEvent)
L1Analysis::L1AnalysisL1Menu * l1Menu
const std::string & l1TriggerMenuImplementation() const
return the L1 trigger menu implementation
Definition: L1GtUtils.cc:1858
void retrieveL1EventSetup(const edm::EventSetup &)
retrieve all the relevant L1 trigger event setup records and cache them to improve the speed ...
Definition: L1GtUtils.cc:121
void L1MenuTreeProducer::beginJob ( void  )
overrideprivatevirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 128 of file L1MenuTreeProducer.cc.

129 {
130 }
void L1MenuTreeProducer::beginRun ( const edm::Run iRun,
const edm::EventSetup evSetup 
)
overrideprivate

Definition at line 133 of file L1MenuTreeProducer.cc.

135 {
136  // L1GtTriggerMenuLite input tag from provenance
137  //l1GtUtils_.getL1GtRunCache(iRun, evSetup, true, true);
138 }
void L1MenuTreeProducer::endJob ( void  )
overrideprivatevirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 142 of file L1MenuTreeProducer.cc.

References DEFINE_FWK_MODULE.

Referenced by endRun().

143 {
144 }
void L1MenuTreeProducer::endRun ( const edm::Run ,
const edm::EventSetup  
)
inlineoverrideprivate

Definition at line 57 of file L1MenuTreeProducer.cc.

References endJob().

57 {}

Member Data Documentation

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

Definition at line 68 of file L1MenuTreeProducer.cc.

Referenced by L1MenuTreeProducer().

L1GtUtils L1MenuTreeProducer::l1GtUtils_
private

Definition at line 75 of file L1MenuTreeProducer.cc.

Referenced by analyze().

L1Analysis::L1AnalysisL1Menu* L1MenuTreeProducer::l1Menu

Definition at line 62 of file L1MenuTreeProducer.cc.

Referenced by analyze(), and L1MenuTreeProducer().

L1Analysis::L1AnalysisL1MenuDataFormat* L1MenuTreeProducer::l1MenuData

Definition at line 63 of file L1MenuTreeProducer.cc.

Referenced by L1MenuTreeProducer().

TTree* L1MenuTreeProducer::tree_
private

Definition at line 71 of file L1MenuTreeProducer.cc.

Referenced by analyze(), and L1MenuTreeProducer().