CMS 3D CMS Logo

L1TriggerKeyExtViewer.cc
Go to the documentation of this file.
4 
7 
10 
12 private:
14 
15 public:
16  void analyze(const edm::Event&, const edm::EventSetup&) override;
17 
19  : edm::EDAnalyzer(), label(pset.getParameter<std::string>("label")) {}
20 
21  ~L1TriggerKeyExtViewer(void) override {}
22 };
23 
24 #include <iostream>
25 using namespace std;
26 
29  evSetup.get<L1TriggerKeyExtRcd>().get(label, handle1);
30  std::shared_ptr<L1TriggerKeyExt> ptr1(new L1TriggerKeyExt(*(handle1.product())));
31 
32  cout << "L1TriggerKeyExt: parent key = " << ptr1->tscKey() << endl;
33 
34  cout << " uGT key: " << ptr1->subsystemKey(L1TriggerKeyExt::kuGT) << endl;
35  cout << " uGMT key: " << ptr1->subsystemKey(L1TriggerKeyExt::kuGMT) << endl;
36  cout << " CALO key: " << ptr1->subsystemKey(L1TriggerKeyExt::kCALO) << endl;
37  cout << " BMTF key: " << ptr1->subsystemKey(L1TriggerKeyExt::kBMTF) << endl;
38  cout << " OMTF key: " << ptr1->subsystemKey(L1TriggerKeyExt::kOMTF) << endl;
39  cout << " EMTF key: " << ptr1->subsystemKey(L1TriggerKeyExt::kEMTF) << endl;
40  cout << " TWINMUX key: " << ptr1->subsystemKey(L1TriggerKeyExt::kTWINMUX) << endl;
41 
42  cout << "Records: " << endl;
43 
44  L1TriggerKeyExt::RecordToKey::const_iterator itr = ptr1->recordToKeyMap().begin();
45  L1TriggerKeyExt::RecordToKey::const_iterator end = ptr1->recordToKeyMap().end();
46 
47  for (; itr != end; ++itr) {
48  std::string recordType = itr->first;
49  std::string objectKey = itr->second;
50  std::string recordName(recordType, 0, recordType.find_first_of('@'));
51  cout << " record " << recordName << " key: " << itr->second << endl;
52  }
53 
54  cout << dec << endl;
55 }
56 
60 
L1TriggerKeyExt::kuGMT
Definition: L1TriggerKeyExt.h:27
edm::ESHandle::product
T const * product() const
Definition: ESHandle.h:86
L1TriggerKeyExt::kBMTF
Definition: L1TriggerKeyExt.h:27
ESHandle.h
edm
HLT enums.
Definition: AlignableModifier.h:19
align_cfg.recordName
recordName
Definition: align_cfg.py:66
L1TriggerKeyExtViewer
Definition: L1TriggerKeyExtViewer.cc:11
gather_cfg.cout
cout
Definition: gather_cfg.py:144
L1TriggerKeyExtRcd
Definition: L1TriggerKeyExtRcd.h:8
L1TriggerKeyExtViewer::analyze
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition: L1TriggerKeyExtViewer.cc:27
L1TriggerKeyExtViewer::L1TriggerKeyExtViewer
L1TriggerKeyExtViewer(const edm::ParameterSet &pset)
Definition: L1TriggerKeyExtViewer.cc:18
edm::EDAnalyzer::EDAnalyzer
EDAnalyzer()
Definition: EDAnalyzer.cc:27
EDAnalyzer.h
L1TriggerKeyExt::kCALO
Definition: L1TriggerKeyExt.h:27
edm::EDAnalyzer
Definition: EDAnalyzer.h:28
L1TriggerKeyExtRcd.h
L1TriggerKeyExt.h
L1TriggerKeyExt::kOMTF
Definition: L1TriggerKeyExt.h:27
MakerMacros.h
edm::EventSetup::get
T get() const
Definition: EventSetup.h:80
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
mps_fire.end
end
Definition: mps_fire.py:242
edm::ESHandle
Definition: DTSurvey.h:22
L1TriggerKeyExt::kTWINMUX
Definition: L1TriggerKeyExt.h:27
L1TriggerKeyExt
Definition: L1TriggerKeyExt.h:23
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
edm::ParameterSet
Definition: ParameterSet.h:47
Event.h
ModuleDef.h
iEvent
int iEvent
Definition: GenABIO.cc:224
L1TriggerKeyExtViewer::~L1TriggerKeyExtViewer
~L1TriggerKeyExtViewer(void) override
Definition: L1TriggerKeyExtViewer.cc:21
edm::EventSetup
Definition: EventSetup.h:57
itr
std::vector< std::pair< float, float > >::iterator itr
Definition: HGCDigitizer.cc:29
get
#define get
ModuleFactory.h
std
Definition: JetResolutionObject.h:76
L1TriggerKeyExtViewer::label
std::string label
Definition: L1TriggerKeyExtViewer.cc:13
L1TriggerKeyExt::kEMTF
Definition: L1TriggerKeyExt.h:27
EventSetup.h
L1TriggerKeyExt::kuGT
Definition: L1TriggerKeyExt.h:27
ParameterSet.h
edm::Event
Definition: Event.h:73
TauDecayModes.dec
dec
Definition: TauDecayModes.py:143
label
const char * label
Definition: PFTauDecayModeTools.cc:11
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27