00001
00002
00003
00004
00005
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #include <memory>
00026 #include <stdio.h>
00027 #include <iomanip>
00028
00029 #include "HLTriggerOffline/SUSYBSM/interface/TriggerValidator.h"
00030 #include "FWCore/MessageLogger/interface/MessageLogger.h"
00031
00032
00033
00034 #include "FWCore/Framework/interface/Frameworkfwd.h"
00035 #include "FWCore/Framework/interface/EDAnalyzer.h"
00036 #include "FWCore/Framework/interface/Event.h"
00037 #include "FWCore/Framework/interface/MakerMacros.h"
00038 #include "FWCore/Common/interface/TriggerNames.h"
00039 #include "DataFormats/Common/interface/Handle.h"
00040
00041
00042 #include "FWCore/ParameterSet/interface/ParameterSet.h"
00043
00044
00045 #include "DataFormats/HLTReco/interface/TriggerEventWithRefs.h"
00046 #include "DataFormats/Common/interface/TriggerResults.h"
00047
00048 #include "DataFormats/L1GlobalTrigger/interface/L1GlobalTriggerReadoutRecord.h"
00049
00050 #include "DataFormats/L1GlobalTrigger/interface/L1GlobalTriggerReadoutRecord.h"
00051 #include "DataFormats/L1GlobalTrigger/interface/L1GlobalTriggerObjectMapRecord.h"
00052 #include "DataFormats/L1GlobalTrigger/interface/L1GlobalTriggerObjectMap.h"
00053
00054
00055
00056 #include "DQMServices/Core/interface/MonitorElement.h"
00057 #include "FWCore/Framework/interface/Run.h"
00058
00059 #include "TFile.h"
00060 #include "TDirectory.h"
00061 #include "TH1.h"
00062 #include "TH2.h"
00063 #include "TList.h"
00064 #include "TObjString.h"
00065 #include "TString.h"
00066 #include "TObject.h"
00067
00068
00069
00070
00071
00072
00073
00074
00075
00076
00077
00078
00079
00080
00081
00082 using namespace edm;
00083 using namespace std;
00084
00085 TriggerValidator::TriggerValidator(const edm::ParameterSet& iConfig):
00086 dirname_(iConfig.getUntrackedParameter("dirname",
00087 std::string("HLT/SusyExo"))),
00088 HistoFileName(iConfig.getUntrackedParameter("histoFileName",
00089 std::string("SusyBsmTriggerValidation.root"))),
00090 StatFileName(iConfig.getUntrackedParameter("statFileName",
00091 std::string("SusyBsmTriggerValidation.stat"))),
00092 l1Label(iConfig.getParameter<edm::InputTag>("L1Label")),
00093 hltLabel(iConfig.getParameter<edm::InputTag>("HltLabel")),
00094 mcFlag(iConfig.getUntrackedParameter<bool>("mc_flag",false)),
00095 l1Flag(iConfig.getUntrackedParameter<bool>("l1_flag",false)),
00096 reco_parametersets(iConfig.getParameter<VParameterSet>("reco_parametersets")),
00097 mc_parametersets(iConfig.getParameter<VParameterSet>("mc_parametersets")),
00098 turnOn_params(iConfig.getParameter<ParameterSet>("TurnOnParams")),
00099 plotMakerL1Input(iConfig.getParameter<ParameterSet>("PlotMakerL1Input")),
00100 plotMakerRecoInput(iConfig.getParameter<ParameterSet>("PlotMakerRecoInput")),
00101 muonTag_(iConfig.getParameter<edm::InputTag>("muonTag")),
00102 triggerTag_(iConfig.getParameter<edm::InputTag>("triggerTag")),
00103 processName_(iConfig.getParameter<std::string>("hltConfigName")),
00104 triggerName_(iConfig.getParameter<std::string>("triggerName"))
00105 {
00106
00107 theHistoFile = 0;
00108 nEvTot = 0;
00109 for(unsigned int i=0; i<reco_parametersets.size(); ++i) nEvRecoSelected.push_back(0);
00110 for(unsigned int i=0; i<mc_parametersets.size(); ++i) nEvMcSelected.push_back(0);
00111
00112 nHltPaths = 0;
00113 nL1Bits = 0;
00114
00115
00116
00117 triggerBitsDir = "/TriggerBits";
00118 recoSelBitsDir = "/RecoSelection";
00119 mcSelBitsDir = "/McSelection";
00120
00121
00122 LogDebug("TriggerValidator") << "constructor...." ;
00123
00124 dbe_ = Service < DQMStore > ().operator->();
00125 if ( ! dbe_ ) {
00126 LogInfo("TriggerValidator") << "unabel to get DQMStore service?";
00127 }
00128 if (iConfig.getUntrackedParameter < bool > ("DQMStore", false)) {
00129 dbe_->setVerbose(0);
00130 }
00131
00132
00133
00134
00135 if (dbe_ != 0 ) {
00136 dbe_->setCurrentFolder(dirname_);
00137 }
00138
00139
00140 plotMakerL1Input.addParameter<std::string>("dirname",dirname_);
00141 plotMakerRecoInput.addParameter<std::string>("dirname",dirname_);
00142
00143 }
00144
00145
00146 TriggerValidator::~TriggerValidator()
00147 {
00148
00149
00150
00151
00152 }
00153
00154
00155
00156
00157
00158
00159
00160 void
00161 TriggerValidator::analyze(const edm::Event& iEvent, const edm::EventSetup& iSetup)
00162 {
00163
00164 using namespace edm;
00165
00166 nEvTot++;
00167
00168 vector<bool> eventRecoSelected, eventMcSelected;
00169 eventRecoSelected.resize(reco_parametersets.size());
00170 eventMcSelected.resize(mc_parametersets.size());
00171 for(unsigned int i=0; i<eventRecoSelected.size(); ++i) eventRecoSelected[i] = myRecoSelector[i]->isSelected(iEvent);
00172 for(unsigned int i=0; i<eventMcSelected.size(); ++i) eventMcSelected[i] = mcFlag ? myMcSelector[i]->isSelected(iEvent) : false;
00173
00174 for(unsigned int i=0; i<nEvRecoSelected.size(); ++i) if(eventRecoSelected[i]) nEvRecoSelected[i]++;
00175 for(unsigned int i=0; i<nEvMcSelected.size(); ++i) if(eventMcSelected[i]) nEvMcSelected[i]++;
00176
00177
00178
00179
00180
00181 Handle<L1GlobalTriggerReadoutRecord> L1GTRR;
00182
00183 iEvent.getByLabel("gtDigis",L1GTRR);
00184 if (!L1GTRR.isValid()) {edm::LogWarning("Readout Error|L1") << "L1ParticleMapCollection Not Valid!";}
00185 int nL1size = L1GTRR->decisionWord().size();
00186 if(firstEvent) {
00187
00188
00189
00190
00191
00192
00193
00194
00195 vCorrL1.resize(L1GTRR->decisionWord().size());
00196 for(unsigned int i=0; i<L1GTRR->decisionWord().size(); i++) {vCorrL1[i].resize(L1GTRR->decisionWord().size());}
00197 vCorrNormL1.resize(L1GTRR->decisionWord().size());
00198 for(unsigned int i=0; i<L1GTRR->decisionWord().size(); i++) {vCorrNormL1[i].resize(L1GTRR->decisionWord().size());}
00199
00200
00201
00202
00203
00204 edm::Handle<L1GlobalTriggerObjectMapRecord> gtObjectMapRecord;
00205
00206
00207 iEvent.getByLabel(l1Label, gtObjectMapRecord);
00208 const std::vector<L1GlobalTriggerObjectMap>& objMapVec =
00209 gtObjectMapRecord->gtObjectMap();
00210 for (std::vector<L1GlobalTriggerObjectMap>::const_iterator itMap = objMapVec.begin();
00211 itMap != objMapVec.end(); ++itMap) {
00212 int algoBit = (*itMap).algoBitNumber();
00213 std::string algoNameStr = (*itMap).algoName();
00214 l1NameMap[algoBit] = algoNameStr;
00215 }
00216
00217 l1Names_.resize(L1GTRR->decisionWord().size()+1);
00218 for (unsigned int i=0; i!=L1GTRR->decisionWord().size(); i++) {
00219 l1Names_[i]=l1NameMap[i];
00220 }
00221 l1Names_[L1GTRR->decisionWord().size()] = "Total";
00222
00223
00224 for(unsigned int i=0; i<l1Names_.size(); ++i) {
00225 hL1PathsBeforeCuts->setBinLabel(i+1,l1Names_[i].c_str(),1);
00226 for(unsigned int j=0; j<hL1PathsAfterRecoCuts.size(); ++j) hL1PathsAfterRecoCuts[j]->setBinLabel(i+1,l1Names_[i].c_str(),1);
00227 for(unsigned int j=0; j<hL1PathsAfterMcCuts.size(); ++j) hL1PathsAfterMcCuts[j]->setBinLabel(i+1,l1Names_[i].c_str(),1);
00228 }
00229 }
00230
00231
00232 for (int i=0; i<nL1size; ++i) {
00233 l1bits.push_back(L1GTRR->decisionWord()[i]);
00234 if(L1GTRR->decisionWord()[i]) {
00235 numTotL1BitsBeforeCuts[i]++;
00236 hL1BitsBeforeCuts->Fill(i);
00237 hL1PathsBeforeCuts->Fill(i);
00238 for(unsigned int j=0; j<eventRecoSelected.size(); ++j)
00239 if(eventRecoSelected[j]) {
00240 numTotL1BitsAfterRecoCuts[j][i]++;
00241 hL1BitsAfterRecoCuts[j]->Fill(i);
00242 hL1PathsAfterRecoCuts[j]->Fill(i);
00243 }
00244 for(unsigned int j=0; j<eventMcSelected.size(); ++j)
00245 if(eventMcSelected[j]) {
00246 numTotL1BitsAfterMcCuts[j][i]++;
00247 hL1BitsAfterMcCuts[j]->Fill(i);
00248 hL1PathsAfterMcCuts[j]->Fill(i);
00249 }
00250 }
00251 }
00252
00253
00254 for(int i=0; i<nL1size; ++i) {
00255 for(int j=0; j<nL1size; ++j) {
00256 if(l1bits[i]*l1bits[j]) vCorrL1[i][j]++;
00257 }
00258 }
00259
00260
00261 numTotL1BitsBeforeCuts[nL1size]++;
00262 hL1BitsBeforeCuts->Fill(nL1size);
00263 hL1PathsBeforeCuts->Fill(nL1size);
00264 for(unsigned int i=0; i<eventRecoSelected.size(); ++i)
00265 if(eventRecoSelected[i]) {
00266 numTotL1BitsAfterRecoCuts[i][nL1size]++;
00267 hL1BitsAfterRecoCuts[i]->Fill(nL1size);
00268 hL1PathsAfterRecoCuts[i]->Fill(nL1size);
00269 }
00270 for(unsigned int i=0; i<eventMcSelected.size(); ++i)
00271 if(eventMcSelected[i]) {
00272 numTotL1BitsAfterMcCuts[i][nL1size]++;
00273 hL1BitsAfterMcCuts[i]->Fill(nL1size);
00274 hL1PathsAfterMcCuts[i]->Fill(nL1size);
00275 }
00276
00277
00278
00279
00280
00281 edm::Handle<TriggerResults> trhv;
00282 iEvent.getByLabel(hltLabel,trhv);
00283 if( ! trhv.isValid() ) {
00284 LogDebug("") << "HL TriggerResults with label ["+hltLabel.encode()+"] not found!";
00285 return;
00286 }
00287
00288
00289
00290
00291
00292
00293
00294 if(firstEvent) {
00295
00296
00297
00298
00299
00300
00301
00302
00303
00304
00305
00306
00307 vCorrHlt.resize(trhv->size());
00308 for(unsigned int i=0; i<trhv->size(); i++) {vCorrHlt[i].resize(trhv->size());}
00309 vCorrNormHlt.resize(trhv->size());
00310 for(unsigned int i=0; i<trhv->size(); i++) {vCorrNormHlt[i].resize(trhv->size());}
00311
00312
00313
00314 const edm::TriggerNames & triggerNames = iEvent.triggerNames(*trhv);
00315 hlNames_=triggerNames.triggerNames();
00316 hlNames_.push_back("Total");
00317
00318
00319 for (unsigned int i=0; i<hlNames_.size(); ++i) {
00320 hHltPathsBeforeCuts->setBinLabel(i+1,hlNames_[i].c_str(),1);
00321 for(unsigned int j=0; j<hHltPathsAfterRecoCuts.size(); ++j) hHltPathsAfterRecoCuts[j]->setBinLabel(i+1,hlNames_[i].c_str(),1);
00322 for(unsigned int j=0; j<hHltPathsAfterMcCuts.size(); ++j) hHltPathsAfterMcCuts[j]->setBinLabel(i+1,hlNames_[i].c_str(),1);
00323 }
00324 }
00325
00326
00327 for(unsigned int i=0; i< trhv->size(); i++) {
00328 hltbits.push_back(trhv->at(i).accept());
00329 if(trhv->at(i).accept()) {
00330 numTotHltBitsBeforeCuts[i]++;
00331 hHltBitsBeforeCuts->Fill(i);
00332 hHltPathsBeforeCuts->Fill(i);
00333 for(unsigned int j=0; j<eventRecoSelected.size(); ++j)
00334 if(eventRecoSelected[j]) {
00335 numTotHltBitsAfterRecoCuts[j][i]++;
00336 hHltBitsAfterRecoCuts[j]->Fill(i);
00337 hHltPathsAfterRecoCuts[j]->Fill(i);
00338 }
00339 for(unsigned int j=0; j<eventMcSelected.size(); ++j)
00340 if(eventMcSelected[j]) {
00341 numTotHltBitsAfterMcCuts[j][i]++;
00342 hHltBitsAfterMcCuts[j]->Fill(i);
00343 hHltPathsAfterMcCuts[j]->Fill(i);
00344 }
00345 }
00346 }
00347
00348
00349 for(unsigned int i=0; i< trhv->size(); i++) {
00350 for(unsigned int j=0; j< trhv->size(); j++) {
00351
00352
00353
00354 if(hltbits[i]*hltbits[j]) vCorrHlt[i][j]++;
00355 }
00356 }
00357
00358
00359
00360
00361
00362 numTotHltBitsBeforeCuts[trhv->size()]++;
00363 hHltBitsBeforeCuts->Fill(trhv->size());
00364 hHltPathsBeforeCuts->Fill(trhv->size());
00365 for(unsigned int i=0; i<eventRecoSelected.size(); ++i)
00366 if(eventRecoSelected[i]) {
00367 numTotHltBitsAfterRecoCuts[i][trhv->size()]++;
00368 hHltBitsAfterRecoCuts[i]->Fill(trhv->size());
00369 hHltPathsAfterRecoCuts[i]->Fill(trhv->size());
00370 }
00371 for(unsigned int i=0; i<eventMcSelected.size(); ++i)
00372 if(eventMcSelected[i]) {
00373 numTotHltBitsAfterMcCuts[i][trhv->size()]++;
00374 hHltBitsAfterMcCuts[i]->Fill(trhv->size());
00375 hHltPathsAfterMcCuts[i]->Fill(trhv->size());
00376 }
00377
00378
00379
00380 if(firstEvent) {
00381 if(l1Flag) myPlotMakerL1->bookHistos(dbe_,&l1bits,&hltbits,&l1Names_,&hlNames_);
00382 myPlotMakerReco->bookHistos(dbe_,&l1bits,&hltbits,&l1Names_,&hlNames_);
00383
00384 }
00385 if(l1Flag) myPlotMakerL1->fillPlots(iEvent);
00386 myPlotMakerReco->fillPlots(iEvent);
00387
00388
00389 firstEvent = false;
00390
00391 myMuonAnalyzer->FillPlots(iEvent, iSetup);
00392 l1bits.clear();
00393 hltbits.clear();
00394 }
00395
00396
00397 void TriggerValidator::beginJob(){
00398 }
00399
00400
00401
00402
00403 void TriggerValidator::beginRun(const edm::Run& run, const edm::EventSetup& c)
00404 {
00405
00406
00407 DQMStore *dbe_ = 0;
00408 dbe_ = Service<DQMStore>().operator->();
00409
00410 if (dbe_) {
00411 dbe_->setCurrentFolder(dirname_);
00412 dbe_->rmdir(dirname_);
00413 }
00414
00415 if (dbe_) {
00416 dbe_->setCurrentFolder(dirname_);
00417 }
00418
00419
00420 bool changed(true);
00421
00422
00423 if (hltConfig_.init(run,c,processName_,changed)) {
00424
00425 if (changed) {
00426
00427
00428 if (triggerName_!="@") {
00429
00430 nHltPaths = hltConfig_.size();
00431 const unsigned int triggerIndex(hltConfig_.triggerIndex(triggerName_));
00432 if (triggerIndex>=nHltPaths) {
00433
00434
00435
00436
00437 hltConfig_.dump("Triggers");
00438 }
00439 }
00440 else {
00441
00442 nHltPaths = hltConfig_.size();
00443 }
00444 }
00445 } else {
00446
00447
00448
00449 }
00450
00451
00452 nL1Bits = 128;
00453
00454
00455
00456 for(unsigned int i=0; i<reco_parametersets.size(); ++i) myRecoSelector.push_back(new RecoSelector(reco_parametersets[i]));
00457 if(mcFlag) for(unsigned int i=0; i<mc_parametersets.size(); ++i) myMcSelector.push_back(new McSelector(mc_parametersets[i]));
00458 if(l1Flag) myPlotMakerL1 = new PlotMakerL1(plotMakerL1Input);
00459 myPlotMakerReco = new PlotMakerReco(plotMakerRecoInput);
00460
00461 firstEvent = true;
00462
00463
00464 numTotL1BitsBeforeCuts.resize(nL1Bits+1);
00465 numTotL1BitsAfterRecoCuts.resize(reco_parametersets.size());
00466 for(unsigned int i=0; i<numTotL1BitsAfterRecoCuts.size(); ++i) numTotL1BitsAfterRecoCuts[i].resize(nL1Bits+1);
00467 numTotL1BitsAfterMcCuts.resize(mc_parametersets.size());
00468 for(unsigned int i=0; i<numTotL1BitsAfterMcCuts.size(); ++i) numTotL1BitsAfterMcCuts[i].resize(nL1Bits+1);
00469
00470
00471 numTotHltBitsBeforeCuts.resize(nHltPaths+1);
00472 numTotHltBitsAfterRecoCuts.resize(reco_parametersets.size());
00473 for(unsigned int i=0; i<numTotHltBitsAfterRecoCuts.size(); ++i) numTotHltBitsAfterRecoCuts[i].resize(nHltPaths+1);
00474 numTotHltBitsAfterMcCuts.resize(mc_parametersets.size());
00475 for(unsigned int i=0; i<numTotHltBitsAfterMcCuts.size(); ++i) numTotHltBitsAfterMcCuts[i].resize(nHltPaths+1);
00476
00477 if (dbe_) {
00478 dbe_->setCurrentFolder(dirname_);
00479 dbe_->rmdir(dirname_);
00480 }
00481
00482
00483 if (dbe_) {
00484 dbe_->setCurrentFolder(dirname_);
00485 }
00486
00487 dbe_->setCurrentFolder(dirname_+triggerBitsDir);
00488
00489 hL1BitsBeforeCuts = dbe_->book1D("L1Bits", "L1 Trigger Bits",nL1Bits+1, 0, nL1Bits+1);
00490 hHltBitsBeforeCuts = dbe_->book1D("HltBits","HL Trigger Bits",nHltPaths+1, 0, nHltPaths+1);
00491
00492
00493
00494
00495
00496 for(unsigned int i=0; i<myRecoSelector.size(); ++i)
00497 {
00498 string path_name = myRecoSelector[i]->GetName();
00499 char histo_name[256], histo_title[256];
00500
00501 sprintf(histo_name, "L1Bits_%s", path_name.c_str());
00502 sprintf(histo_title, "L1 Trigger Bits for %s Selection", path_name.c_str());
00503 dbe_->setCurrentFolder(dirname_+recoSelBitsDir+"/"+path_name);
00504 hL1BitsAfterRecoCuts.push_back(dbe_->book1D(histo_name, histo_title, nL1Bits+1, 0, nL1Bits+1));
00505
00506 sprintf(histo_name, "HltBits_%s", path_name.c_str());
00507 sprintf(histo_title, "HL Trigger Bits for %s Selection", path_name.c_str());
00508 hHltBitsAfterRecoCuts.push_back(dbe_->book1D(histo_name, histo_title, nHltPaths+1, 0, nHltPaths+1));
00509 }
00510 for(unsigned int i=0; i<myMcSelector.size(); ++i)
00511 {
00512 string path_name = myMcSelector[i]->GetName();
00513 char histo_name[256], histo_title[256];
00514
00515 sprintf(histo_name, "L1Bits_%s", path_name.c_str());
00516 sprintf(histo_title, "L1 Trigger Bits for %s Selection", path_name.c_str());
00517 dbe_->setCurrentFolder(dirname_+mcSelBitsDir+"/"+path_name);
00518 hL1BitsAfterMcCuts.push_back(dbe_->book1D(histo_name, histo_title, nL1Bits+1, 0, nL1Bits+1));
00519
00520 sprintf(histo_name, "HltBits_%s", path_name.c_str());
00521 sprintf(histo_title, "HL Trigger Bits for %s Selection", path_name.c_str());
00522 hHltBitsAfterMcCuts.push_back(dbe_->book1D(histo_name, histo_title, nHltPaths+1, 0, nHltPaths+1));
00523 }
00524
00525
00526
00527
00528
00529
00530 dbe_->setCurrentFolder(dirname_+triggerBitsDir);
00531 TH1F* hTemp = (TH1F*) (hL1BitsBeforeCuts->getTH1F())->Clone("L1Paths");
00532 hL1PathsBeforeCuts = dbe_->book1D("L1Paths", hTemp);
00533
00534 hTemp = (TH1F*) (hHltBitsBeforeCuts->getTH1F())->Clone("HltPaths");
00535 hHltPathsBeforeCuts = dbe_->book1D("HltPaths", hTemp);
00536
00537 for(unsigned int i=0; i<myRecoSelector.size(); ++i)
00538 {
00539 string path_name = myRecoSelector[i]->GetName();
00540 char histo_name[256];
00541
00542 sprintf(histo_name, "L1Paths_%s", path_name.c_str());
00543 dbe_->setCurrentFolder(dirname_+recoSelBitsDir+"/"+path_name);
00544 hTemp = (TH1F*) (hL1BitsAfterRecoCuts[i]->getTH1F())->Clone(histo_name);
00545 hL1PathsAfterRecoCuts.push_back(dbe_->book1D(histo_name, hTemp));
00546
00547 sprintf(histo_name, "HltPaths_%s", path_name.c_str());
00548 hTemp = (TH1F*) (hHltBitsAfterRecoCuts[i]->getTH1F())->Clone(histo_name);
00549 hHltPathsAfterRecoCuts.push_back(dbe_->book1D(histo_name, hTemp));
00550 }
00551
00552 for(unsigned int i=0; i<myMcSelector.size(); ++i)
00553 {
00554 string path_name = myMcSelector[i]->GetName();
00555 char histo_name[256];
00556
00557 sprintf(histo_name, "L1Paths_%s", path_name.c_str());
00558 dbe_->setCurrentFolder(dirname_+mcSelBitsDir+"/"+path_name);
00559 hTemp = (TH1F*) (hL1BitsAfterMcCuts[i]->getTH1F())->Clone(histo_name);
00560 hL1PathsAfterMcCuts.push_back(dbe_->book1D(histo_name, hTemp));
00561
00562 sprintf(histo_name, "HltPaths_%s", path_name.c_str());
00563 hTemp = (TH1F*) (hHltBitsAfterMcCuts[i]->getTH1F())->Clone(histo_name);
00564 hHltPathsAfterMcCuts.push_back(dbe_->book1D(histo_name, hTemp));
00565 }
00566
00567 myMuonAnalyzer = new MuonAnalyzerSBSM(triggerTag_, muonTag_);
00568 myMuonAnalyzer->InitializePlots(dbe_, dirname_);
00569 }
00570
00571
00572
00573
00574
00575 void
00576 TriggerValidator::endRun(const edm::Run& run, const edm::EventSetup& c)
00577 {
00578
00579
00580
00581
00582
00583
00584
00585
00586
00587
00588
00589
00590
00591
00592
00593
00594
00595
00596
00597
00598
00599
00600
00601
00602
00603
00604
00605
00606
00607
00608
00609
00610
00611
00612
00613
00614
00615
00616
00617
00618
00619
00620
00621
00622
00623
00624
00625
00626
00627
00628
00629
00630
00631
00632
00633
00634
00635
00636
00637
00638
00639
00640
00641
00642
00643
00644
00645
00646
00647
00648
00649
00650
00651
00652
00653
00654
00655 unsigned int n(l1Names_.size());
00656
00657 n = l1Names_.size();
00658 edm::LogInfo("L1TableSummary") << endl;
00659 edm::LogVerbatim("L1TableSummary") << "L1T-Table "
00660 << right << setw(10) << "L1T Bit#" << " "
00661 << "Name" << "\n";
00662 for (unsigned int i=0; i!=n; i++) {
00663 edm::LogVerbatim("L1TableSummary") << right << setw(20) << i << " "
00664 << l1Names_[i] << "\n";
00665 }
00666
00667
00668 n = hlNames_.size();
00669 edm::LogInfo("HltTableSummary") << endl;
00670 edm::LogVerbatim("HltTableSummary") << "HLT-Table "
00671 << right << setw(10) << "HLT Bit#" << " "
00672 << "Name" << "\n";
00673
00674 for (unsigned int i=0; i!=n; i++) {
00675 edm::LogVerbatim("HltTableSummary") << right << setw(20) << i << " "
00676 << hlNames_[i] << "\n";
00677 }
00678
00679 edm::LogVerbatim("HltTableSummary") << endl;
00680 edm::LogVerbatim("HltTableSummary") << "HLT-Table end!" << endl;
00681 edm::LogVerbatim("HltTableSummary") << endl;
00682
00683
00684
00685
00686
00687
00688
00689
00690
00691
00692
00693
00694
00695
00696
00697
00698
00699
00700
00701
00702
00703
00704
00705
00706
00707
00708
00709
00710
00711
00712
00713
00714
00715
00716
00717
00718
00719
00720
00721
00722
00723
00724
00725
00726
00727
00728
00729
00730
00731
00732
00733
00734
00735
00736
00737
00738
00739
00740
00741
00742
00743
00744
00745
00746
00747
00748
00749
00750
00751
00752
00753
00754
00755
00756
00757
00758
00759
00760
00761
00762
00763
00764
00765
00766
00767
00768
00769
00770
00771
00772
00773
00774
00775
00776
00777
00778
00779
00780
00781
00782
00783
00784
00785
00786
00787
00788
00789
00790
00791
00792
00793
00794
00795
00796
00797
00798
00799
00800
00801
00802
00803
00804
00805
00806
00807
00808
00809
00810
00811
00812
00813
00814
00815
00816
00817
00818
00819
00820
00821
00822
00823
00824
00825
00826
00827
00828
00829
00830 for(unsigned int i=0; i<myRecoSelector.size(); ++i) delete myRecoSelector[i];
00831 myRecoSelector.clear();
00832 if(mcFlag)
00833 {
00834 for(unsigned int i=0; i<myMcSelector.size(); ++i) delete myMcSelector[i];
00835 myMcSelector.clear();
00836 }
00837
00838 if(l1Flag) delete myPlotMakerL1;
00839 delete myPlotMakerReco;
00840
00841 return;
00842 }
00843
00844
00845
00846 void
00847 TriggerValidator::endJob()
00848 {
00849 LogInfo("TriggerValidator") << "endJob";
00850 return;
00851 }
00852
00853
00854
00855
00856
00857
00858
00859 DEFINE_FWK_MODULE(TriggerValidator);