Go to the documentation of this file.00001 #include "L1TriggerConfig/DTTPGConfigProducers/src/DTConfigTester.h"
00002
00003 #include "FWCore/Framework/interface/EventSetup.h"
00004 #include "FWCore/Framework/interface/ESHandle.h"
00005
00006 #include "L1TriggerConfig/DTTPGConfig/interface/DTConfigManager.h"
00007 #include "L1TriggerConfig/DTTPGConfig/interface/DTConfigManagerRcd.h"
00008
00009 #include "DataFormats/MuonDetId/interface/DTChamberId.h"
00010 #include "DataFormats/MuonDetId/interface/DTBtiId.h"
00011 #include "DataFormats/MuonDetId/interface/DTTracoId.h"
00012 #include "DataFormats/MuonDetId/interface/DTSectCollId.h"
00013
00014 using std::cout;
00015 using std::endl;
00016
00017 DTConfigTester::DTConfigTester(const edm::ParameterSet& ps) {
00018 cout << "DTConfigTester::DTConfigTester" << endl;
00019 }
00020
00021 DTConfigTester::~DTConfigTester() {
00022
00023 }
00024
00025 void DTConfigTester::analyze(const edm::Event& e, const edm::EventSetup& es) {
00026 cout << "DTConfigTester::analyze" << endl;
00027 cout <<" I AM IN RUN NUMBER "<<e.id().run() <<endl;
00028 cout <<" ---EVENT NUMBER "<<e.id().event() <<endl;
00029
00030 using namespace edm;
00031
00032 ESHandle< DTConfigManager > dtConfig ;
00033 es.get< DTConfigManagerRcd >().get( dtConfig ) ;
00034
00035 cout << "DTConfigManagerRcd : Print some Config stuff" << endl;
00036 DTBtiId btiid(1,1,1,1,1);
00037 DTTracoId tracoid(1,1,1,1);
00038 DTChamberId chid(1,1,1);
00039 DTSectCollId scid(1,1);
00040 cout <<"BtiMap & TracoMap Size for chamber (1,1,1):" << dtConfig->getDTConfigBtiMap(chid).size() << " " << dtConfig->getDTConfigTracoMap(chid).size() << endl;
00041
00042 dtConfig->getDTConfigBti(btiid)->print();
00043 dtConfig->getDTConfigTraco(tracoid)->print();
00044 dtConfig->getDTConfigTSTheta(chid)->print();
00045 dtConfig->getDTConfigTSPhi(chid)->print();
00046 dtConfig->getDTConfigLUTs(chid)->print();
00047 dtConfig->getDTConfigSectColl(scid)->print();
00048
00049 }