49 theJetAnalyzerFlag =
parameters.getUntrackedParameter<
bool>(
"DoJetAnalysis",
true);
50 theJetCleaningFlag =
parameters.getUntrackedParameter<
bool>(
"DoJetCleaning",
true);
51 theIConeJetAnalyzerFlag =
parameters.getUntrackedParameter<
bool>(
"DoIterativeCone",
false);
52 theSConeJetAnalyzerFlag =
parameters.getUntrackedParameter<
bool>(
"DoSisCone",
false);
53 theJetPtAnalyzerFlag =
parameters.getUntrackedParameter<
bool>(
"DoJetPtAnalysis",
false);
54 theJetPtCleaningFlag =
parameters.getUntrackedParameter<
bool>(
"DoJetPtCleaning",
false);
55 theJPTJetAnalyzerFlag =
parameters.getUntrackedParameter<
bool>(
"DoJPTJetAnalysis",
false);
56 theJPTJetCleaningFlag =
parameters.getUntrackedParameter<
bool>(
"DoJPTJetCleaning",
true);
57 thePFJetAnalyzerFlag =
parameters.getUntrackedParameter<
bool>(
"DoPFJetAnalysis",
false);
58 thePFJetCleaningFlag =
parameters.getUntrackedParameter<
bool>(
"DoPFJetCleaning",
true);
60 theDiJetSelectionFlag =
parameters.getUntrackedParameter<
bool>(
"DoDiJetSelection",
true);
62 theCaloMETAnalyzerFlag =
parameters.getUntrackedParameter<
bool>(
"DoCaloMETAnalysis",
true);
63 theTcMETAnalyzerFlag =
parameters.getUntrackedParameter<
bool>(
"DoTcMETAnalysis",
true);
64 theMuCorrMETAnalyzerFlag =
parameters.getUntrackedParameter<
bool>(
"DoMuCorrMETAnalysis",
true);
65 thePfMETAnalyzerFlag =
parameters.getUntrackedParameter<
bool>(
"DoPfMETAnalysis",
true);
66 theHTMHTAnalyzerFlag =
parameters.getUntrackedParameter<
bool>(
"DoHTMHTAnalysis",
true);
78 if(theJetAnalyzerFlag) {
80 theAKJetAnalyzer->setSource(
"AntiKtJets");
81 if(theSConeJetAnalyzerFlag) {
83 theSCJetAnalyzer->setSource(
"SISConeJets");
85 if(theIConeJetAnalyzerFlag){
87 theICJetAnalyzer->setSource(
"IterativeConeJets");
91 if(theJetCleaningFlag) {
93 theCleanedAKJetAnalyzer->setSource(
"CleanedAntiKtJets");
94 if(theSConeJetAnalyzerFlag){
96 theCleanedSCJetAnalyzer->setSource(
"CleanedSISConeJets");
98 if(theIConeJetAnalyzerFlag){
100 theCleanedICJetAnalyzer->setSource(
"CleanedIterativeConeJets");
104 if(theDiJetSelectionFlag){
106 theDiJetAnalyzer->setSource(
"DiJets");
110 if(theJetPtAnalyzerFlag ) {
112 thePtAKJetAnalyzer->setSource(
"PtAnalysisAntiKtJets");
113 if(theSConeJetAnalyzerFlag){
115 thePtSCJetAnalyzer->setSource(
"PtAnalysisSISConeJets");
117 if(theIConeJetAnalyzerFlag){
119 thePtICJetAnalyzer->setSource(
"PtAnalysisIterativeConeJets");
123 if(theJetPtCleaningFlag ) {
125 theCleanedPtAKJetAnalyzer->setSource(
"PtAnalysisCleanedAntiKtJets");
126 if(theSConeJetAnalyzerFlag){
128 theCleanedPtSCJetAnalyzer->setSource(
"PtAnalysisCleanedSISConeJets");
130 if(theIConeJetAnalyzerFlag){
132 theCleanedPtICJetAnalyzer->setSource(
"PtAnalysisCleanedIterativeConeJets");
137 if(theJPTJetAnalyzerFlag) {
141 if(theJPTJetCleaningFlag) {
146 if(thePFJetAnalyzerFlag){
148 thePFJetAnalyzer->setSource(
"uncPFJets");
151 if(thePFJetCleaningFlag) {
153 theCleanedPFJetAnalyzer->setSource(
"PFJets");
156 if(theDiJetSelectionFlag){
158 thePFDiJetAnalyzer->setSource(
"PFDiJets");
167 highPtJetExpr_ = highptjetparms.
getParameter<std::vector<std::string> >(
"hltPaths");
168 lowPtJetExpr_ = lowptjetparms .getParameter<std::vector<std::string> >(
"hltPaths");
171 if(theCaloMETAnalyzerFlag){
177 if(theTcMETAnalyzerFlag){
180 if(theMuCorrMETAnalyzerFlag){
183 if(thePfMETAnalyzerFlag){
186 if(theHTMHTAnalyzerFlag){
190 _LSBegin =
parameters.getParameter<
int>(
"LSBegin");
191 _LSEnd =
parameters.getParameter<
int>(
"LSEnd");
200 _techTrigsAND = theCleaningParameters.getParameter<std::vector<unsigned > >(
"techTrigsAND");
201 _techTrigsOR = theCleaningParameters.getParameter<std::vector<unsigned > >(
"techTrigsOR");
202 _techTrigsNOT = theCleaningParameters.getParameter<std::vector<unsigned > >(
"techTrigsNOT");
204 _doPVCheck = theCleaningParameters.getParameter<
bool>(
"doPrimaryVertexCheck");
205 _doHLTPhysicsOn = theCleaningParameters.getParameter<
bool>(
"doHLTPhysicsOn");
207 _tightBHFiltering = theCleaningParameters.getParameter<
bool>(
"tightBHFiltering");
209 _theVertexLabel = theCleaningParameters.getParameter<
edm::InputTag>(
"vertexLabel");
210 _theGTLabel = theCleaningParameters.getParameter<
edm::InputTag>(
"gtLabel");
214 _nvtx_min = theCleaningParameters.getParameter<
int>(
"nvtx_min");
215 _nvtxtrks_min = theCleaningParameters.getParameter<
int>(
"nvtxtrks_min");
216 _vtxndof_min = theCleaningParameters.getParameter<
int>(
"vtxndof_min");
217 _vtxchi2_max = theCleaningParameters.getParameter<
double>(
"vtxchi2_max");
218 _vtxz_max = theCleaningParameters.getParameter<
double>(
"vtxz_max");
226 if(theJetAnalyzerFlag) {
227 delete theAKJetAnalyzer;
228 if(theSConeJetAnalyzerFlag)
delete theSCJetAnalyzer;
229 if(theIConeJetAnalyzerFlag)
delete theICJetAnalyzer;
231 if(theJetCleaningFlag) {
232 delete theCleanedAKJetAnalyzer;
233 if(theSConeJetAnalyzerFlag)
delete theCleanedSCJetAnalyzer;
234 if(theIConeJetAnalyzerFlag)
delete theCleanedICJetAnalyzer;
236 if(theDiJetSelectionFlag) {
237 delete theDiJetAnalyzer;
239 if(theJetPtAnalyzerFlag) {
240 delete thePtAKJetAnalyzer;
241 if(theSConeJetAnalyzerFlag)
delete thePtSCJetAnalyzer;
242 if(theIConeJetAnalyzerFlag)
delete thePtICJetAnalyzer;
245 if(theJetPtCleaningFlag) {
246 delete theCleanedPtAKJetAnalyzer;
247 if(theSConeJetAnalyzerFlag)
delete theCleanedPtSCJetAnalyzer;
248 if(theIConeJetAnalyzerFlag)
delete theCleanedPtICJetAnalyzer;
251 if(theJPTJetAnalyzerFlag)
delete theJPTJetAnalyzer;
252 if(theJPTJetCleaningFlag)
delete theCleanedJPTJetAnalyzer;
254 if(thePFJetAnalyzerFlag)
delete thePFJetAnalyzer;
255 if(thePFJetCleaningFlag)
delete theCleanedPFJetAnalyzer;
256 if(theDiJetSelectionFlag)
delete thePFDiJetAnalyzer;
258 delete _HighPtJetEventFlag;
259 delete _LowPtJetEventFlag;
261 if(theCaloMETAnalyzerFlag){
262 delete theCaloMETAnalyzer;
267 if(theTcMETAnalyzerFlag)
delete theTcMETAnalyzer;
268 if(theMuCorrMETAnalyzerFlag)
delete theMuCorrMETAnalyzer;
269 if(thePfMETAnalyzerFlag)
delete thePfMETAnalyzer;
270 if(theHTMHTAnalyzerFlag)
delete theHTMHTAnalyzer;
272 delete DCSFilterCalo;
289 if(theJetAnalyzerFlag) {
290 theAKJetAnalyzer->beginJob(dbe);
291 if(theSConeJetAnalyzerFlag) theSCJetAnalyzer->beginJob(dbe);
292 if(theIConeJetAnalyzerFlag) theICJetAnalyzer->beginJob(dbe);
294 if(theJetCleaningFlag) {
295 theCleanedAKJetAnalyzer->beginJob(dbe);
296 if(theSConeJetAnalyzerFlag) theCleanedSCJetAnalyzer->beginJob(dbe);
297 if(theIConeJetAnalyzerFlag) theCleanedICJetAnalyzer->beginJob(dbe);
299 if(theDiJetSelectionFlag) theDiJetAnalyzer->beginJob(dbe);
300 if(theJetPtAnalyzerFlag ) {
301 thePtAKJetAnalyzer->beginJob(dbe);
302 if(theSConeJetAnalyzerFlag) thePtSCJetAnalyzer->beginJob(dbe);
303 if(theIConeJetAnalyzerFlag) thePtICJetAnalyzer->beginJob(dbe);
305 if(theJetPtCleaningFlag ) {
306 theCleanedPtAKJetAnalyzer->beginJob(dbe);
307 if(theSConeJetAnalyzerFlag) theCleanedPtSCJetAnalyzer->beginJob(dbe);
308 if(theIConeJetAnalyzerFlag) theCleanedPtICJetAnalyzer->beginJob(dbe);
311 if(theJPTJetAnalyzerFlag) theJPTJetAnalyzer->beginJob(dbe);
312 if(theJPTJetCleaningFlag) theCleanedJPTJetAnalyzer->beginJob(dbe);
314 if(thePFJetAnalyzerFlag) thePFJetAnalyzer->beginJob(dbe);
315 if(thePFJetCleaningFlag) theCleanedPFJetAnalyzer->beginJob(dbe);
316 if(theDiJetSelectionFlag) thePFDiJetAnalyzer->beginJob(dbe);
320 if(theCaloMETAnalyzerFlag){
321 theCaloMETAnalyzer->beginJob(dbe);
326 if(theTcMETAnalyzerFlag) theTcMETAnalyzer->beginJob(dbe);
327 if(theMuCorrMETAnalyzerFlag) theMuCorrMETAnalyzer->beginJob(dbe);
328 if(thePfMETAnalyzerFlag) thePfMETAnalyzer->beginJob(dbe);
329 if(theHTMHTAnalyzerFlag) theHTMHTAnalyzer->beginJob(dbe);
331 dbe->setCurrentFolder(
"JetMET");
332 lumisecME = dbe->book1D(
"lumisec",
"lumisec", 500, 0., 500.);
333 cleanupME = dbe->book1D(
"cleanup",
"cleanup", 10, 0., 10.);
334 cleanupME->setBinLabel(1,
"Primary Vertex");
335 cleanupME->setBinLabel(2,
"DCS::Pixel");
336 cleanupME->setBinLabel(3,
"DCS::SiStrip");
337 cleanupME->setBinLabel(4,
"DCS::ECAL");
338 cleanupME->setBinLabel(5,
"DCS::ES");
339 cleanupME->setBinLabel(6,
"DCS::HBHE");
340 cleanupME->setBinLabel(7,
"DCS::HF");
341 cleanupME->setBinLabel(8,
"DCS::HO");
342 cleanupME->setBinLabel(9,
"DCS::Muon");
344 verticesME = dbe->book1D(
"vertices",
"vertices", 50, 0, 50);
353 if ( _HighPtJetEventFlag->on() ) _HighPtJetEventFlag->initRun( iRun, iSetup );
354 if ( _LowPtJetEventFlag ->on() ) _LowPtJetEventFlag ->initRun( iRun, iSetup );
356 if (_HighPtJetEventFlag->on() && _HighPtJetEventFlag->expressionsFromDB(_HighPtJetEventFlag->hltDBKey(), iSetup)[0] !=
"CONFIG_ERROR")
357 highPtJetExpr_ = _HighPtJetEventFlag->expressionsFromDB(_HighPtJetEventFlag->hltDBKey(), iSetup);
358 if (_LowPtJetEventFlag->on() && _LowPtJetEventFlag->expressionsFromDB(_LowPtJetEventFlag->hltDBKey(), iSetup)[0] !=
"CONFIG_ERROR")
359 lowPtJetExpr_ = _LowPtJetEventFlag->expressionsFromDB(_LowPtJetEventFlag->hltDBKey(), iSetup);
364 _hlt_initialized = hltConfig_.init(iRun,iSetup,processname_,changed);
365 if (!_hlt_initialized) {
368 _hlt_initialized = hltConfig_.init(iRun,iSetup,processname_,changed);
369 if(!_hlt_initialized){
371 LogDebug(
"JetMETAnalyzer") <<
"HLTConfigProvider failed to initialize.";
395 if(theCaloMETAnalyzerFlag){
396 theCaloMETAnalyzer->beginRun(iRun, iSetup);
401 if(theTcMETAnalyzerFlag) theTcMETAnalyzer->beginRun(iRun, iSetup);
402 if(theMuCorrMETAnalyzerFlag) theMuCorrMETAnalyzer->beginRun(iRun, iSetup);
403 if(thePfMETAnalyzerFlag) thePfMETAnalyzer->beginRun(iRun, iSetup);
416 if(theCaloMETAnalyzerFlag){
417 theCaloMETAnalyzer->endRun(iRun, iSetup, dbe);
422 if(theTcMETAnalyzerFlag) theTcMETAnalyzer->endRun(iRun, iSetup, dbe);
423 if(theMuCorrMETAnalyzerFlag) theMuCorrMETAnalyzer->endRun(iRun, iSetup, dbe);
424 if(thePfMETAnalyzerFlag) thePfMETAnalyzer->endRun(iRun, iSetup, dbe);
435 int myLuminosityBlock;
437 lumisecME->Fill(myLuminosityBlock);
439 if (myLuminosityBlock<_LSBegin)
return;
440 if (myLuminosityBlock>_LSEnd && _LSEnd>0)
return;
444 iEvent.
getByLabel(theTriggerResultsLabel, triggerResults);
446 bool bPhysicsDeclared =
false;
447 if(!_doHLTPhysicsOn) bPhysicsDeclared =
true;
455 if( triggerNames.
triggerIndex(
"HLT_PhysicsDeclared") != triggerNames.
size() )
456 if (triggerResults->accept(triggerNames.
triggerIndex(
"HLT_PhysicsDeclared"))) {
457 if(_doHLTPhysicsOn) bPhysicsDeclared =
true;
471 const unsigned int nTrig(triggerNames.
size());
472 for (
unsigned int i=0;
i<nTrig;++
i)
474 if (triggerNames.
triggerName(
i).find(highPtJetExpr_[0].substr(0,highPtJetExpr_[0].rfind(
"_v")+2))!=std::string::npos && triggerResults->accept(
i))
476 else if (triggerNames.
triggerName(
i).find(lowPtJetExpr_[0].substr(0,lowPtJetExpr_[0].rfind(
"_v")+2))!=std::string::npos && triggerResults->accept(
i))
482 if (
DEBUG)
std::cout <<
"trigger label " << theTriggerResultsLabel << std::endl;
493 std::cout <<
">>> Trigger Lo = " << JetLoPass
494 <<
" Hi = " << JetHiPass
502 bool bPrimaryVertex =
true;
504 bPrimaryVertex =
false;
507 iEvent.
getByLabel(_theVertexLabel, vertexHandle);
510 LogInfo(
"JetMETAnalyzer") <<
"JetMETAnalyzer: Could not find vertex collection" << std::endl;
511 if (
DEBUG)
std::cout <<
"JetMETAnalyzer: Could not find vertex collection" << std::endl;
516 int vertex_number = vertexCollection.size();
517 reco::VertexCollection::const_iterator
v = vertexCollection.begin();
518 for ( ; v != vertexCollection.end(); ++
v) {
519 double vertex_chi2 = v->normalizedChi2();
520 double vertex_ndof = v->ndof();
521 bool fakeVtx = v->isFake();
522 double vertex_Z = v->z();
525 && vertex_number>=_nvtx_min
526 && vertex_ndof >_vtxndof_min
527 && vertex_chi2 <_vtxchi2_max
528 && fabs(vertex_Z)<_vtxz_max ) {
529 bPrimaryVertex =
true;
535 verticesME->Fill(_numPV);
539 iEvent.
getByLabel( _theGTLabel, gtReadoutRecord);
541 if (!gtReadoutRecord.
isValid()) {
542 LogInfo(
"JetMETAnalyzer") <<
"JetMETAnalyzer: Could not find GT readout record" << std::endl;
543 if (
DEBUG)
std::cout <<
"JetMETAnalyzer: Could not find GT readout record product" << std::endl;
546 bool bTechTriggers =
true;
547 bool bTechTriggersAND =
true;
548 bool bTechTriggersOR =
false;
549 bool bTechTriggersNOT =
false;
551 if (gtReadoutRecord.
isValid()) {
552 const TechnicalTriggerWord& technicalTriggerWordBeforeMask = gtReadoutRecord->technicalTriggerWord();
554 if (_techTrigsAND.size() == 0)
555 bTechTriggersAND =
true;
557 for (
unsigned ttr = 0; ttr != _techTrigsAND.size(); ttr++) {
558 bTechTriggersAND = bTechTriggersAND && technicalTriggerWordBeforeMask.at(_techTrigsAND.at(ttr));
561 if (_techTrigsAND.size() == 0)
562 bTechTriggersOR =
true;
564 for (
unsigned ttr = 0; ttr != _techTrigsOR.size(); ttr++) {
565 bTechTriggersOR = bTechTriggersOR || technicalTriggerWordBeforeMask.at(_techTrigsOR.at(ttr));
567 if (_techTrigsNOT.size() == 0)
568 bTechTriggersNOT =
false;
570 for (
unsigned ttr = 0; ttr != _techTrigsNOT.size(); ttr++) {
571 bTechTriggersNOT = bTechTriggersNOT || technicalTriggerWordBeforeMask.at(_techTrigsNOT.at(ttr));
576 bTechTriggersAND =
true;
577 bTechTriggersOR =
true;
578 bTechTriggersNOT =
false;
581 if (_techTrigsAND.size()==0)
582 bTechTriggersAND =
true;
583 if (_techTrigsOR.size()==0)
584 bTechTriggersOR =
true;
585 if (_techTrigsNOT.size()==0)
586 bTechTriggersNOT =
false;
588 bTechTriggers = bTechTriggersAND && bTechTriggersOR && !bTechTriggersNOT;
590 bool bJetCleanup = bTechTriggers && bPrimaryVertex && bPhysicsDeclared;
592 DCSFilterAll->filter(iEvent, iSetup);
593 if (bPrimaryVertex) cleanupME->Fill(0.5);
594 if ( DCSFilterAll->passPIX ) cleanupME->Fill(1.5);
595 if ( DCSFilterAll->passSiStrip ) cleanupME->Fill(2.5);
596 if ( DCSFilterAll->passECAL ) cleanupME->Fill(3.5);
597 if ( DCSFilterAll->passES ) cleanupME->Fill(4.5);
598 if ( DCSFilterAll->passHBHE ) cleanupME->Fill(5.5);
599 if ( DCSFilterAll->passHF ) cleanupME->Fill(6.5);
600 if ( DCSFilterAll->passHO ) cleanupME->Fill(7.5);
601 if ( DCSFilterAll->passMuon ) cleanupME->Fill(8.5);
608 iEvent.
getByLabel(theAKJetCollectionLabel, caloJets);
611 if(theJetAnalyzerFlag){
612 theAKJetAnalyzer->setJetHiPass(JetHiPass);
613 theAKJetAnalyzer->setJetLoPass(JetLoPass);
614 theAKJetAnalyzer->analyze(iEvent, iSetup, *caloJets, _numPV);
616 if(theJetPtAnalyzerFlag){
617 LogTrace(
metname)<<
"[JetMETAnalyzer] Call to the Jet Pt anti-Kt analyzer";
618 thePtAKJetAnalyzer->analyze(iEvent, iSetup, *caloJets);
623 if(caloJets.
isValid() && bJetCleanup) {
624 if(DCSFilterCalo->filter(iEvent, iSetup)){
625 if(theJetCleaningFlag){
626 theCleanedAKJetAnalyzer->setJetHiPass(JetHiPass);
627 theCleanedAKJetAnalyzer->setJetLoPass(JetLoPass);
628 theCleanedAKJetAnalyzer->analyze(iEvent, iSetup, *caloJets, _numPV);
630 if(theJetPtCleaningFlag){
631 LogTrace(
metname)<<
"[JetMETAnalyzer] Call to the Cleaned Jet Pt anti-Kt analyzer";
632 theCleanedPtAKJetAnalyzer->analyze(iEvent, iSetup, *caloJets);
637 if(caloJets.
isValid() && bJetCleanup){
638 if(DCSFilterCalo->filter(iEvent, iSetup)){
639 if(theDiJetSelectionFlag){
640 theDiJetAnalyzer->analyze(iEvent, iSetup, *caloJets, _numPV);
647 if(theJetPtAnalyzerFlag){
648 LogTrace(
metname)<<
"[JetMETAnalyzer] Call to the Jet Pt anti-Kt analyzer";
649 thePtAKJetAnalyzer->analyze(iEvent, iSetup, *caloJets);
653 if(caloJets.
isValid() && bJetCleanup){
654 if(DCSFilterCalo->filter(iEvent, iSetup)){
655 if(theJetPtCleaningFlag){
656 LogTrace(
metname)<<
"[JetMETAnalyzer] Call to the Cleaned Jet Pt anti-Kt analyzer";
657 theCleanedPtAKJetAnalyzer->analyze(iEvent, iSetup, *caloJets);
663 iEvent.
getByLabel(theSCJetCollectionLabel, caloJets);
664 if(theSConeJetAnalyzerFlag){
666 if(theJetAnalyzerFlag){
667 theSCJetAnalyzer->setJetHiPass(JetHiPass);
668 theSCJetAnalyzer->setJetLoPass(JetLoPass);
669 theSCJetAnalyzer->analyze(iEvent, iSetup, *caloJets, _numPV);
671 if(theJetPtAnalyzerFlag){
672 LogTrace(
metname)<<
"[JetMETAnalyzer] Call to the Jet Pt SisCone analyzer";
673 thePtSCJetAnalyzer->analyze(iEvent, iSetup, *caloJets);
677 if(caloJets.
isValid() && bJetCleanup){
678 if(DCSFilterCalo->filter(iEvent, iSetup)){
679 if(theJetCleaningFlag){
680 theCleanedSCJetAnalyzer->setJetHiPass(JetHiPass);
681 theCleanedSCJetAnalyzer->setJetLoPass(JetLoPass);
682 theCleanedSCJetAnalyzer->analyze(iEvent, iSetup, *caloJets, _numPV);
684 if(theJetPtCleaningFlag){
685 LogTrace(
metname)<<
"[JetMETAnalyzer] Call to the Cleaned Jet Pt SisCone analyzer";
686 theCleanedPtSCJetAnalyzer->analyze(iEvent, iSetup, *caloJets);
692 iEvent.
getByLabel(theICJetCollectionLabel, caloJets);
693 if(theIConeJetAnalyzerFlag) {
695 if(theJetAnalyzerFlag){
696 theICJetAnalyzer->setJetHiPass(JetHiPass);
697 theICJetAnalyzer->setJetLoPass(JetLoPass);
698 theICJetAnalyzer->analyze(iEvent, iSetup, *caloJets, _numPV);
700 if(theJetPtAnalyzerFlag){
701 LogTrace(
metname)<<
"[JetMETAnalyzer] Call to the Jet Pt ICone analyzer";
702 thePtICJetAnalyzer->analyze(iEvent, iSetup, *caloJets);
706 if(caloJets.
isValid() && bJetCleanup){
707 if(DCSFilterCalo->filter(iEvent, iSetup)){
708 if(theJetCleaningFlag){
709 theCleanedICJetAnalyzer->setJetHiPass(JetHiPass);
710 theCleanedICJetAnalyzer->setJetLoPass(JetLoPass);
711 theCleanedICJetAnalyzer->analyze(iEvent, iSetup, *caloJets, _numPV);
713 if(theJetPtCleaningFlag){
714 LogTrace(
metname)<<
"[JetMETAnalyzer] Call to the Cleaned Jet Pt ICone analyzer";
715 theCleanedPtICJetAnalyzer->analyze(iEvent, iSetup, *caloJets);
723 iEvent.
getByLabel(theJPTJetCollectionLabel, jptJets);
724 if(jptJets.
isValid() && theJPTJetAnalyzerFlag){
727 theJPTJetAnalyzer->analyze(iEvent, iSetup, *jptJets, _numPV);
730 if(jptJets.
isValid() && bJetCleanup && theJPTJetCleaningFlag){
731 if(DCSFilterJPT->filter(iEvent, iSetup)){
734 theCleanedJPTJetAnalyzer->analyze(iEvent, iSetup, *jptJets, _numPV);
740 iEvent.
getByLabel(thePFJetCollectionLabel, pfJets);
743 if(thePFJetAnalyzerFlag){
744 thePFJetAnalyzer->setJetHiPass(JetHiPass);
745 thePFJetAnalyzer->setJetLoPass(JetLoPass);
747 thePFJetAnalyzer->analyze(iEvent, iSetup, *pfJets, _numPV);
749 if(thePFJetCleaningFlag){
750 if(DCSFilterPF->filter(iEvent, iSetup)){
751 theCleanedPFJetAnalyzer->setJetHiPass(JetHiPass);
752 theCleanedPFJetAnalyzer->setJetLoPass(JetLoPass);
753 LogTrace(
metname)<<
"[JetMETAnalyzer] Call to the Cleaned PFJet analyzer";
754 theCleanedPFJetAnalyzer->analyze(iEvent, iSetup, *pfJets, _numPV);
755 if(theDiJetSelectionFlag){
756 thePFDiJetAnalyzer->analyze(iEvent, iSetup, *pfJets, _numPV);
767 if(theCaloMETAnalyzerFlag){
769 theCaloMETAnalyzer->analyze(iEvent, iSetup, *triggerResults);
778 if(theTcMETAnalyzerFlag){
780 theTcMETAnalyzer->analyze(iEvent, iSetup, *triggerResults);
787 if(theMuCorrMETAnalyzerFlag){
789 theMuCorrMETAnalyzer->analyze(iEvent, iSetup, *triggerResults);
796 if(thePfMETAnalyzerFlag){
798 thePfMETAnalyzer->analyze(iEvent, iSetup, *triggerResults);
805 if(theHTMHTAnalyzerFlag){
807 theHTMHTAnalyzer->analyze(iEvent, iSetup, *triggerResults);
816 bool outputMEsInRootFile =
parameters.getParameter<
bool>(
"OutputMEsInRootFile");
821 if(theCaloMETAnalyzerFlag){
822 theCaloMETAnalyzer->endJob();
827 if(theTcMETAnalyzerFlag) theTcMETAnalyzer->endJob();
828 if(theMuCorrMETAnalyzerFlag) theMuCorrMETAnalyzer->endJob();
829 if(thePfMETAnalyzerFlag) thePfMETAnalyzer->endJob();
833 if(theJetAnalyzerFlag) {
834 theAKJetAnalyzer->endJob();
835 if(theSConeJetAnalyzerFlag) theSCJetAnalyzer->endJob();
836 if(theIConeJetAnalyzerFlag) theICJetAnalyzer->endJob();
839 if(theJetCleaningFlag) {
840 theCleanedAKJetAnalyzer->endJob();
841 if(theSConeJetAnalyzerFlag) theCleanedSCJetAnalyzer->endJob();
842 if(theIConeJetAnalyzerFlag) theCleanedICJetAnalyzer->endJob();
845 if(theDiJetSelectionFlag) theDiJetAnalyzer->endJob();
847 if(theJetPtAnalyzerFlag ) {
848 thePtAKJetAnalyzer->endJob();
849 if(theSConeJetAnalyzerFlag) thePtSCJetAnalyzer->endJob();
850 if(theIConeJetAnalyzerFlag) thePtICJetAnalyzer->endJob();
853 if(theJetPtCleaningFlag ) {
854 theCleanedPtAKJetAnalyzer->endJob();
855 if(theSConeJetAnalyzerFlag) theCleanedPtSCJetAnalyzer->endJob();
856 if(theIConeJetAnalyzerFlag) theCleanedPtICJetAnalyzer->endJob();
859 if(theJPTJetAnalyzerFlag) theJPTJetAnalyzer->endJob();
860 if(theJPTJetCleaningFlag) theCleanedJPTJetAnalyzer->endJob();
862 if(thePFJetAnalyzerFlag) thePFJetAnalyzer->endJob();
863 if(thePFJetCleaningFlag) theCleanedPFJetAnalyzer->endJob();
864 if(theDiJetSelectionFlag) thePFDiJetAnalyzer->endJob();
866 if(outputMEsInRootFile){
867 dbe->save(outputFileName);
T getParameter(std::string const &) const
virtual edm::TriggerNames const & triggerNames(edm::TriggerResults const &triggerResults) const
const std::string metname
edm::LuminosityBlockNumber_t luminosityBlock() const
std::vector< Vertex > VertexCollection
collection of Vertex objects
Provides a code based selection for trigger and DCS information in order to have no failing filters i...
Strings::size_type size() const
unsigned int triggerIndex(std::string const &name) const
std::vector< bool > TechnicalTriggerWord
technical trigger bits (64 bits)
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
std::string const & triggerName(unsigned int index) const
static std::string const triggerResults("TriggerResults")
T const * product() const
JPT jet analyzer class definition.