test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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 ()
 
- Public Member Functions inherited from edm::EDAnalyzer
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzer ()
 
ModuleDescription const & moduleDescription () const
 
std::string workerType () const
 
virtual ~EDAnalyzer ()
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
 EDConsumerBase ()
 
ProductHolderIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
std::vector
< ProductHolderIndexAndSkipBit >
const & 
itemsToGetFromEvent () const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesDependentUpon (std::string const &iProcessName, std::string const &iModuleLabel, bool iPrint, std::vector< char const * > &oModuleLabels) const
 
void modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
bool registeredToConsume (ProductHolderIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &)
 
virtual ~EDConsumerBase ()
 

Public Attributes

L1Analysis::L1AnalysisL1Menul1Menu
 
L1Analysis::L1AnalysisL1MenuDataFormatl1MenuData
 

Private Member Functions

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

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

Definition at line 94 of file L1MenuTreeProducer.cc.

95 {}

Member Function Documentation

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

Implements edm::EDAnalyzer.

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  )
privatevirtual

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 
)
privatevirtual

Reimplemented from edm::EDAnalyzer.

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  )
privatevirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 142 of file L1MenuTreeProducer.cc.

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

Reimplemented from edm::EDAnalyzer.

Definition at line 57 of file L1MenuTreeProducer.cc.

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