CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes
L1TMicroGMTLUTDumper Class Reference

#include <L1Trigger/L1TGlobalMuon/plugins/L1TMicroGMTLUTDumper.cc>

Inheritance diagram for L1TMicroGMTLUTDumper:
edm::EDAnalyzer edm::EDConsumerBase

Public Member Functions

virtual void analyze (const edm::Event &, const edm::EventSetup &)
 
 L1TMicroGMTLUTDumper (const edm::ParameterSet &)
 
 ~L1TMicroGMTLUTDumper ()
 
- 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 (const std::string &iProcessName, std::vector< const char * > &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 ()
 

Private Member Functions

void dumpLut (MicroGMTLUT *, const std::string &)
 

Private Attributes

MicroGMTMatchQualLUT m_boNegMatchQualLUT
 
MicroGMTMatchQualLUT m_boPosMatchQualLUT
 
MicroGMTMatchQualLUT m_brlSingleMatchQualLUT
 
std::string m_foldername
 
MicroGMTMatchQualLUT m_foNegMatchQualLUT
 
MicroGMTMatchQualLUT m_foPosMatchQualLUT
 
MicroGMTMatchQualLUT m_fwdNegSingleMatchQualLUT
 
MicroGMTMatchQualLUT m_fwdPosSingleMatchQualLUT
 
MicroGMTMatchQualLUT m_ovlNegSingleMatchQualLUT
 
MicroGMTMatchQualLUT m_ovlPosSingleMatchQualLUT
 
MicroGMTRankPtQualLUT m_rankLUT
 

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

Description: Takes txt-file input and produces barrel- / overlap- / forward TF muons

Implementation: [Notes on implementation]

Definition at line 46 of file L1TMicroGMTLUTDumper.cc.

Constructor & Destructor Documentation

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

Definition at line 82 of file L1TMicroGMTLUTDumper.cc.

References edm::ParameterSet::getParameter(), m_foldername, and AlCaHLTBitMon_QueryRunRegistry::string.

82  :
83  m_rankLUT(iConfig),
88  m_brlSingleMatchQualLUT(iConfig, "BrlSingle", cancel_t::bmtf_bmtf),
89  m_ovlPosSingleMatchQualLUT(iConfig, "OvlPosSingle", cancel_t::omtf_omtf_pos),
90  m_ovlNegSingleMatchQualLUT(iConfig, "OvlNegSingle", cancel_t::omtf_omtf_neg),
91  m_fwdPosSingleMatchQualLUT(iConfig, "FwdPosSingle", cancel_t::emtf_emtf_pos),
92  m_fwdNegSingleMatchQualLUT(iConfig, "FwdNegSingle", cancel_t::emtf_emtf_neg)
93 {
94  //register your products
95 
96  //now do what ever other initialization is needed
97  m_foldername = iConfig.getParameter<std::string> ("out_directory");
98 
99 
100 }
T getParameter(std::string const &) const
MicroGMTMatchQualLUT m_brlSingleMatchQualLUT
MicroGMTRankPtQualLUT m_rankLUT
MicroGMTMatchQualLUT m_boNegMatchQualLUT
MicroGMTMatchQualLUT m_fwdPosSingleMatchQualLUT
MicroGMTMatchQualLUT m_ovlNegSingleMatchQualLUT
MicroGMTMatchQualLUT m_boPosMatchQualLUT
MicroGMTMatchQualLUT m_fwdNegSingleMatchQualLUT
MicroGMTMatchQualLUT m_foNegMatchQualLUT
MicroGMTMatchQualLUT m_ovlPosSingleMatchQualLUT
MicroGMTMatchQualLUT m_foPosMatchQualLUT
L1TMicroGMTLUTDumper::~L1TMicroGMTLUTDumper ( )

Definition at line 103 of file L1TMicroGMTLUTDumper.cc.

104 {
105  // do anything here that needs to be done at desctruction time
106  // (e.g. close files, deallocate resources etc.)
107 }

Member Function Documentation

void L1TMicroGMTLUTDumper::analyze ( const edm::Event iEvent,
const edm::EventSetup iSetup 
)
virtual

Implements edm::EDAnalyzer.

Definition at line 124 of file L1TMicroGMTLUTDumper.cc.

References dumpLut(), m_boNegMatchQualLUT, m_boPosMatchQualLUT, m_brlSingleMatchQualLUT, m_foNegMatchQualLUT, m_foPosMatchQualLUT, m_fwdNegSingleMatchQualLUT, m_fwdPosSingleMatchQualLUT, m_ovlNegSingleMatchQualLUT, m_ovlPosSingleMatchQualLUT, m_rankLUT, and AlCaHLTBitMon_QueryRunRegistry::string.

125 {
126  using namespace edm;
127  dumpLut(&m_rankLUT, std::string("/rank_lut.json"));
128  dumpLut(&m_boPosMatchQualLUT, std::string("/boPosMatchQualLUT.json"));
129  dumpLut(&m_boNegMatchQualLUT, std::string("/boNegMatchQualLUT.json"));
130  dumpLut(&m_foPosMatchQualLUT, std::string("/foPosMatchQualLUT.json"));
131  dumpLut(&m_foNegMatchQualLUT, std::string("/foNegMatchQualLUT.json"));
132  dumpLut(&m_brlSingleMatchQualLUT, std::string("/brlSingleMatchQualLUT.json"));
133  dumpLut(&m_ovlPosSingleMatchQualLUT, std::string("/ovlPosSingleMatchQualLUT.json"));
134  dumpLut(&m_ovlNegSingleMatchQualLUT, std::string("/ovlNegSingleMatchQualLUT.json"));
135  dumpLut(&m_fwdPosSingleMatchQualLUT, std::string("/fwdPosSingleMatchQualLUT.json"));
136  dumpLut(&m_fwdNegSingleMatchQualLUT, std::string("/fwdNegSingleMatchQualLUT.json"));
137 
138 }
MicroGMTMatchQualLUT m_brlSingleMatchQualLUT
MicroGMTRankPtQualLUT m_rankLUT
MicroGMTMatchQualLUT m_boNegMatchQualLUT
MicroGMTMatchQualLUT m_fwdPosSingleMatchQualLUT
MicroGMTMatchQualLUT m_ovlNegSingleMatchQualLUT
MicroGMTMatchQualLUT m_boPosMatchQualLUT
void dumpLut(MicroGMTLUT *, const std::string &)
MicroGMTMatchQualLUT m_fwdNegSingleMatchQualLUT
MicroGMTMatchQualLUT m_foNegMatchQualLUT
MicroGMTMatchQualLUT m_ovlPosSingleMatchQualLUT
MicroGMTMatchQualLUT m_foPosMatchQualLUT
void L1TMicroGMTLUTDumper::dumpLut ( MicroGMTLUT lut,
const std::string &  oName 
)
private

Definition at line 114 of file L1TMicroGMTLUTDumper.cc.

References m_foldername, and l1t::MicroGMTLUT::save().

Referenced by analyze().

114  {
115  std::ofstream fStream(m_foldername+oName);
116  lut->save(fStream);
117  fStream.close();
118 }
void save(std::ofstream &output)
Definition: MicroGMTLUT.cc:8

Member Data Documentation

MicroGMTMatchQualLUT L1TMicroGMTLUTDumper::m_boNegMatchQualLUT
private

Definition at line 60 of file L1TMicroGMTLUTDumper.cc.

Referenced by analyze().

MicroGMTMatchQualLUT L1TMicroGMTLUTDumper::m_boPosMatchQualLUT
private

Definition at line 59 of file L1TMicroGMTLUTDumper.cc.

Referenced by analyze().

MicroGMTMatchQualLUT L1TMicroGMTLUTDumper::m_brlSingleMatchQualLUT
private

Definition at line 63 of file L1TMicroGMTLUTDumper.cc.

Referenced by analyze().

std::string L1TMicroGMTLUTDumper::m_foldername
private

Definition at line 56 of file L1TMicroGMTLUTDumper.cc.

Referenced by dumpLut(), and L1TMicroGMTLUTDumper().

MicroGMTMatchQualLUT L1TMicroGMTLUTDumper::m_foNegMatchQualLUT
private

Definition at line 62 of file L1TMicroGMTLUTDumper.cc.

Referenced by analyze().

MicroGMTMatchQualLUT L1TMicroGMTLUTDumper::m_foPosMatchQualLUT
private

Definition at line 61 of file L1TMicroGMTLUTDumper.cc.

Referenced by analyze().

MicroGMTMatchQualLUT L1TMicroGMTLUTDumper::m_fwdNegSingleMatchQualLUT
private

Definition at line 67 of file L1TMicroGMTLUTDumper.cc.

Referenced by analyze().

MicroGMTMatchQualLUT L1TMicroGMTLUTDumper::m_fwdPosSingleMatchQualLUT
private

Definition at line 66 of file L1TMicroGMTLUTDumper.cc.

Referenced by analyze().

MicroGMTMatchQualLUT L1TMicroGMTLUTDumper::m_ovlNegSingleMatchQualLUT
private

Definition at line 65 of file L1TMicroGMTLUTDumper.cc.

Referenced by analyze().

MicroGMTMatchQualLUT L1TMicroGMTLUTDumper::m_ovlPosSingleMatchQualLUT
private

Definition at line 64 of file L1TMicroGMTLUTDumper.cc.

Referenced by analyze().

MicroGMTRankPtQualLUT L1TMicroGMTLUTDumper::m_rankLUT
private

Definition at line 57 of file L1TMicroGMTLUTDumper.cc.

Referenced by analyze().