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::one::EDAnalyzer< edm::one::SharedResources > edm::one::EDAnalyzerBase edm::EDConsumerBase

Public Member Functions

 L1MenuTreeProducer (const edm::ParameterSet &)
 
 ~L1MenuTreeProducer () override
 
- Public Member Functions inherited from edm::one::EDAnalyzer< edm::one::SharedResources >
 EDAnalyzer ()=default
 
 EDAnalyzer (const EDAnalyzer &)=delete
 
SerialTaskQueueglobalLuminosityBlocksQueue () final
 
SerialTaskQueueglobalRunsQueue () final
 
const EDAnalyzeroperator= (const EDAnalyzer &)=delete
 
bool wantsGlobalLuminosityBlocks () const final
 
bool wantsGlobalRuns () const final
 
bool wantsInputProcessBlocks () const final
 
bool wantsProcessBlocks () const final
 
- Public Member Functions inherited from edm::one::EDAnalyzerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzerBase ()
 
ModuleDescription const & moduleDescription () const
 
bool wantsStreamLuminosityBlocks () const
 
bool wantsStreamRuns () const
 
 ~EDAnalyzerBase () 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
 
ESResolverIndex const * esGetTokenIndices (edm::Transition iTrans) const
 
std::vector< ESResolverIndex > 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
 
void selectInputProcessBlocks (ProductRegistry const &productRegistry, ProcessBlockHelperBase const &processBlockHelperBase)
 
ProductResolverIndexAndSkipBit uncheckedIndexFrom (EDGetToken) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
void updateLookup (eventsetup::ESRecordsToProductResolverIndices const &)
 
virtual ~EDConsumerBase () noexcept(false)
 

Public Attributes

L1Analysis::L1AnalysisL1Menul1Menu
 
L1Analysis::L1AnalysisL1MenuDataFormatl1MenuData
 

Private Member Functions

void analyze (const edm::Event &, const edm::EventSetup &) override
 

Private Attributes

edm::Service< TFileServicefs_
 
L1GtUtils l1GtUtils_
 
TTree * tree_
 

Additional Inherited Members

- Public Types inherited from edm::one::EDAnalyzerBase
typedef EDAnalyzerBase ModuleType
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Static Public Member Functions inherited from edm::one::EDAnalyzerBase
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 
- 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< Bconsumes (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 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 ()
 
template<Transition Tr = Transition::Event>
auto esConsumes (ESInputTag tag)
 
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::L1MenuTreeProducer ( const edm::ParameterSet iConfig)
explicit

Definition at line 69 of file L1MenuTreeProducer.cc.

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

70  : // l1MenuInputTag_(iConfig.getParameter<edm::InputTag>("L1MenuInputTag")),
72  usesResource(TFileService::kSharedResource);
73 
76 
77  // set up output
78  tree_ = fs_->make<TTree>("L1MenuTree", "L1MenuTree");
79  tree_->Branch("L1Menu", "L1Analysis::L1AnalysisL1MenuDataFormat", &l1MenuData, 32000, 0 /*3*/);
80 }
static const std::string kSharedResource
Definition: TFileService.h:76
edm::Service< TFileService > fs_
L1Analysis::L1AnalysisL1Menu * l1Menu
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
L1Analysis::L1AnalysisL1MenuDataFormat * l1MenuData
T * make(const Args &...args) const
make new ROOT object
Definition: TFileService.h:64
L1AnalysisL1MenuDataFormat * getData()

◆ ~L1MenuTreeProducer()

L1MenuTreeProducer::~L1MenuTreeProducer ( )
override

Definition at line 82 of file L1MenuTreeProducer.cc.

82 {}

Member Function Documentation

◆ analyze()

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

Implements edm::one::EDAnalyzerBase.

Definition at line 89 of file L1MenuTreeProducer.cc.

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

89  {
90  l1Menu->Reset();
91 
92  // getting l1GtUtils
93  edm::LogInfo("L1TNtuples") << "Extracting menu ... " << std::endl;
95 
96  // testing menu
97  edm::LogInfo("L1TNtuples") << "L1 trigger menu name and implementation:"
98  << "\n"
99  << l1GtUtils_.l1TriggerMenu() << "\n"
100  << l1GtUtils_.l1TriggerMenuImplementation() << std::endl;
101 
102  // adding PrescaleFactorIndex
104 
105  tree_->Fill();
106 }
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 & l1TriggerMenuImplementation() const
return the L1 trigger menu implementation
Definition: L1GtUtils.cc:1598
int iEvent
Definition: GenABIO.cc:224
void SetPrescaleFactorIndex(L1GtUtils &l1GtUtils_, const edm::Event &iEvent)
L1Analysis::L1AnalysisL1Menu * l1Menu
const std::string & l1TriggerMenu() const
return the L1 trigger menu name
Definition: L1GtUtils.cc:1577
Log< level::Info, false > LogInfo

Member Data Documentation

◆ fs_

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

Definition at line 59 of file L1MenuTreeProducer.cc.

Referenced by L1MenuTreeProducer().

◆ l1GtUtils_

L1GtUtils L1MenuTreeProducer::l1GtUtils_
private

Definition at line 66 of file L1MenuTreeProducer.cc.

Referenced by analyze().

◆ l1Menu

L1Analysis::L1AnalysisL1Menu* L1MenuTreeProducer::l1Menu

Definition at line 54 of file L1MenuTreeProducer.cc.

Referenced by analyze(), and L1MenuTreeProducer().

◆ l1MenuData

L1Analysis::L1AnalysisL1MenuDataFormat* L1MenuTreeProducer::l1MenuData

Definition at line 55 of file L1MenuTreeProducer.cc.

Referenced by L1MenuTreeProducer().

◆ tree_

TTree* L1MenuTreeProducer::tree_
private

Definition at line 62 of file L1MenuTreeProducer.cc.

Referenced by analyze(), and L1MenuTreeProducer().