CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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
 
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
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
bool registeredToConsume (ProductResolverIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void selectInputProcessBlocks (ProductRegistry const &productRegistry, ProcessBlockHelperBase const &processBlockHelperBase)
 
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
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
template<BranchType B = InEvent>
EDConsumerBaseAdaptor< B > consumes (edm::InputTag tag) noexcept
 
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<Transition Tr = Transition::Event>
constexpr auto esConsumes () noexcept
 
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...
 
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)
 
void resetItemsToGetFrom (BranchType iType)
 

Detailed Description

Definition at line 45 of file L1MenuTreeProducer.cc.

Constructor & Destructor Documentation

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

Definition at line 73 of file L1MenuTreeProducer.cc.

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

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 }
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 84 of file L1MenuTreeProducer.cc.

84 {}

Member Function Documentation

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

Implements edm::EDAnalyzer.

Definition at line 91 of file L1MenuTreeProducer.cc.

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

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 }
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
const std::string & l1TriggerMenu() const
return the L1 trigger menu name
Definition: L1GtUtils.cc:1577
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:1598
Log< level::Info, false > LogInfo
void L1MenuTreeProducer::beginJob ( void  )
overrideprivatevirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 111 of file L1MenuTreeProducer.cc.

111 {}
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 }
void L1MenuTreeProducer::endJob ( void  )
overrideprivatevirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 119 of file L1MenuTreeProducer.cc.

119 {}
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

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

Definition at line 63 of file L1MenuTreeProducer.cc.

Referenced by L1MenuTreeProducer().

L1GtUtils L1MenuTreeProducer::l1GtUtils_
private

Definition at line 70 of file L1MenuTreeProducer.cc.

Referenced by analyze().

L1Analysis::L1AnalysisL1Menu* L1MenuTreeProducer::l1Menu

Definition at line 58 of file L1MenuTreeProducer.cc.

Referenced by analyze(), and L1MenuTreeProducer().

L1Analysis::L1AnalysisL1MenuDataFormat* L1MenuTreeProducer::l1MenuData

Definition at line 59 of file L1MenuTreeProducer.cc.

Referenced by L1MenuTreeProducer().

TTree* L1MenuTreeProducer::tree_
private

Definition at line 66 of file L1MenuTreeProducer.cc.

Referenced by analyze(), and L1MenuTreeProducer().