CMS 3D CMS Logo

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 ()
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
 EDConsumerBase (EDConsumerBase &&)=default
 
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::vector< ModuleDescription const * > &modules, 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 updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
virtual ~EDConsumerBase () noexcept(false)
 

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.

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

Definition at line 25 of file L1TriggerKeyExtReader.cc.

References gather_cfg::cout, TauDecayModes::dec, DEFINE_FWK_MODULE, end, edm::EventSetup::get(), L1TriggerKeyExt::kBMTF, L1TriggerKeyExt::kCALO, L1TriggerKeyExt::kEMTF, L1TriggerKeyExt::kOMTF, L1TriggerKeyExt::kTWINMUX, L1TriggerKeyExt::kuGMT, L1TriggerKeyExt::kuGT, label, edm::ESHandle< T >::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 }
#define end
Definition: vmac.h:37
const T & get() const
Definition: EventSetup.h:56
T const * product() const
Definition: ESHandle.h:86

Member Data Documentation

std::string L1TriggerKeyExtReader::label
private