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 Attributes
L1TriggerKeyExtReader Class Reference
Inheritance diagram for L1TriggerKeyExtReader:
edm::EDAnalyzer edm::EDConsumerBase

Public Member Functions

virtual void analyze (const edm::Event &, const edm::EventSetup &)
 
 L1TriggerKeyExtReader (const edm::ParameterSet &pset)
 
virtual ~L1TriggerKeyExtReader (void)
 
- 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 ()
 

Private Attributes

std::string label
 

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 11 of file L1TriggerKeyExtReader.cc.

Constructor & Destructor Documentation

L1TriggerKeyExtReader::L1TriggerKeyExtReader ( const edm::ParameterSet pset)
inlineexplicit

Definition at line 17 of file L1TriggerKeyExtReader.cc.

17  : edm::EDAnalyzer(),
18  label( pset.getParameter< std::string >( "label" ) ) {}
T getParameter(std::string const &) const
virtual L1TriggerKeyExtReader::~L1TriggerKeyExtReader ( void  )
inlinevirtual

Definition at line 19 of file L1TriggerKeyExtReader.cc.

19 {}

Member Function Documentation

void L1TriggerKeyExtReader::analyze ( const edm::Event iEvent,
const edm::EventSetup evSetup 
)
virtual

Implements edm::EDAnalyzer.

Definition at line 25 of file L1TriggerKeyExtReader.cc.

References gather_cfg::cout, TauDecayModes::dec, end, edm::EventSetup::get(), L1TriggerKeyExt::kBMTF, L1TriggerKeyExt::kCALO, L1TriggerKeyExt::kEMTF, L1TriggerKeyExt::kOMTF, L1TriggerKeyExt::kTWINMUX, L1TriggerKeyExt::kuGMT, L1TriggerKeyExt::kuGT, diffTwoXMLs::label, edm::ESHandle< class >::product(), align_cfg::recordName, and AlCaHLTBitMon_QueryRunRegistry::string.

25  {
26 
28  evSetup.get<L1TriggerKeyExtRcd>().get( label, handle1 ) ;
29  boost::shared_ptr<L1TriggerKeyExt> ptr1(new L1TriggerKeyExt(*(handle1.product ())));
30 
31  cout<<"L1TriggerKeyExt: parent key = "<<ptr1->tscKey()<<endl;
32 
33  cout<<" uGT key: "<<ptr1->subsystemKey( L1TriggerKeyExt::kuGT )<<endl;
34  cout<<" uGMT key: "<<ptr1->subsystemKey( L1TriggerKeyExt::kuGMT )<<endl;
35  cout<<" CALO key: "<<ptr1->subsystemKey( L1TriggerKeyExt::kCALO )<<endl;
36  cout<<" BMTF key: "<<ptr1->subsystemKey( L1TriggerKeyExt::kBMTF )<<endl;
37  cout<<" OMTF key: "<<ptr1->subsystemKey( L1TriggerKeyExt::kOMTF )<<endl;
38  cout<<" EMTF key: "<<ptr1->subsystemKey( L1TriggerKeyExt::kEMTF )<<endl;
39  cout<<" TWINMUX key: "<<ptr1->subsystemKey( L1TriggerKeyExt::kTWINMUX)<<endl;
40 
41  cout<<"Records: "<<endl;
42 
43  L1TriggerKeyExt::RecordToKey::const_iterator itr = ptr1->recordToKeyMap().begin() ;
44  L1TriggerKeyExt::RecordToKey::const_iterator end = ptr1->recordToKeyMap().end() ;
45 
46  for( ; itr != end ; ++itr ){
47  std::string recordType = itr->first ;
48  std::string objectKey = itr->second ;
49  std::string recordName( recordType, 0, recordType.find_first_of("@") ) ;
50  cout<<" record "<<recordName<<" key: "<<itr->second<<endl;
51  }
52 
53  cout<<dec<<endl;
54 
55 
56 }
tuple recordName
Definition: align_cfg.py:66
#define end
Definition: vmac.h:37
const T & get() const
Definition: EventSetup.h:56
T const * product() const
Definition: ESHandle.h:86
tuple cout
Definition: gather_cfg.py:145

Member Data Documentation

std::string L1TriggerKeyExtReader::label
private