CMS 3D CMS Logo

L1TriggerKeyExtReader.cc
Go to the documentation of this file.
4 
7 
10 
12 private:
14 public:
15  virtual void analyze(const edm::Event&, const edm::EventSetup&);
16 
18  label( pset.getParameter< std::string >( "label" ) ) {}
19  virtual ~L1TriggerKeyExtReader(void){}
20 };
21 
22 #include <iostream>
23 using namespace std;
24 
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 }
57 
61 
63 
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:17
int iEvent
Definition: GenABIO.cc:230
#define end
Definition: vmac.h:37
const T & get() const
Definition: EventSetup.h:55
L1TriggerKeyExtReader(const edm::ParameterSet &pset)
virtual ~L1TriggerKeyExtReader(void)
HLT enums.
virtual void analyze(const edm::Event &, const edm::EventSetup &)
T const * product() const
Definition: ESHandle.h:86