51 theJetAnalyzerFlag =
parameters.getUntrackedParameter<
bool>(
"DoJetAnalysis",
true);
52 theJetCleaningFlag =
parameters.getUntrackedParameter<
bool>(
"DoJetCleaning",
true);
53 theIConeJetAnalyzerFlag =
parameters.getUntrackedParameter<
bool>(
"DoIterativeCone",
false);
54 theSConeJetAnalyzerFlag =
parameters.getUntrackedParameter<
bool>(
"DoSisCone",
false);
55 theJetPtAnalyzerFlag =
parameters.getUntrackedParameter<
bool>(
"DoJetPtAnalysis",
false);
56 theJetPtCleaningFlag =
parameters.getUntrackedParameter<
bool>(
"DoJetPtCleaning",
false);
57 theJPTJetAnalyzerFlag =
parameters.getUntrackedParameter<
bool>(
"DoJPTJetAnalysis",
false);
58 theJPTJetCleaningFlag =
parameters.getUntrackedParameter<
bool>(
"DoJPTJetCleaning",
true);
59 thePFJetAnalyzerFlag =
parameters.getUntrackedParameter<
bool>(
"DoPFJetAnalysis",
false);
60 thePFJetCleaningFlag =
parameters.getUntrackedParameter<
bool>(
"DoPFJetCleaning",
true);
62 theDiJetSelectionFlag =
parameters.getUntrackedParameter<
bool>(
"DoDiJetSelection",
true);
64 theCaloMETAnalyzerFlag =
parameters.getUntrackedParameter<
bool>(
"DoCaloMETAnalysis",
true);
65 theTcMETAnalyzerFlag =
parameters.getUntrackedParameter<
bool>(
"DoTcMETAnalysis",
true);
66 theMuCorrMETAnalyzerFlag =
parameters.getUntrackedParameter<
bool>(
"DoMuCorrMETAnalysis",
true);
67 thePfMETAnalyzerFlag =
parameters.getUntrackedParameter<
bool>(
"DoPfMETAnalysis",
true);
68 theHTMHTAnalyzerFlag =
parameters.getUntrackedParameter<
bool>(
"DoHTMHTAnalysis",
true);
80 if(theJetAnalyzerFlag) {
82 theAKJetAnalyzer->setSource(
"AntiKtJets");
83 if(theSConeJetAnalyzerFlag) {
85 theSCJetAnalyzer->setSource(
"SISConeJets");
87 if(theIConeJetAnalyzerFlag){
89 theICJetAnalyzer->setSource(
"IterativeConeJets");
93 if(theJetCleaningFlag) {
95 theCleanedAKJetAnalyzer->setSource(
"CleanedAntiKtJets");
96 if(theSConeJetAnalyzerFlag){
98 theCleanedSCJetAnalyzer->setSource(
"CleanedSISConeJets");
100 if(theIConeJetAnalyzerFlag){
102 theCleanedICJetAnalyzer->setSource(
"CleanedIterativeConeJets");
106 if(theDiJetSelectionFlag){
108 theDiJetAnalyzer->setSource(
"DiJets");
112 if(theJetPtAnalyzerFlag ) {
114 thePtAKJetAnalyzer->setSource(
"PtAnalysisAntiKtJets");
115 if(theSConeJetAnalyzerFlag){
117 thePtSCJetAnalyzer->setSource(
"PtAnalysisSISConeJets");
119 if(theIConeJetAnalyzerFlag){
121 thePtICJetAnalyzer->setSource(
"PtAnalysisIterativeConeJets");
125 if(theJetPtCleaningFlag ) {
127 theCleanedPtAKJetAnalyzer->setSource(
"PtAnalysisCleanedAntiKtJets");
128 if(theSConeJetAnalyzerFlag){
130 theCleanedPtSCJetAnalyzer->setSource(
"PtAnalysisCleanedSISConeJets");
132 if(theIConeJetAnalyzerFlag){
134 theCleanedPtICJetAnalyzer->setSource(
"PtAnalysisCleanedIterativeConeJets");
139 if(theJPTJetAnalyzerFlag) {
143 if(theJPTJetCleaningFlag) {
148 if(thePFJetAnalyzerFlag){
150 thePFJetAnalyzer->setSource(
"uncPFJets");
153 if(thePFJetCleaningFlag) {
155 theCleanedPFJetAnalyzer->setSource(
"PFJets");
158 if(theDiJetSelectionFlag){
160 thePFDiJetAnalyzer->setSource(
"PFDiJets");
169 highPtJetExpr_ = highptjetparms.
getParameter<std::vector<std::string> >(
"hltPaths");
170 lowPtJetExpr_ = lowptjetparms .getParameter<std::vector<std::string> >(
"hltPaths");
173 if(theCaloMETAnalyzerFlag){
179 if(theTcMETAnalyzerFlag){
182 if(theMuCorrMETAnalyzerFlag){
185 if(thePfMETAnalyzerFlag){
188 if(theHTMHTAnalyzerFlag){
192 _LSBegin =
parameters.getParameter<
int>(
"LSBegin");
193 _LSEnd =
parameters.getParameter<
int>(
"LSEnd");
195 processname_ =
parameters.getParameter<std::string>(
"processname");
200 _hlt_PhysDec = theCleaningParameters.
getParameter<std::string>(
"HLT_PhysDec");
202 _techTrigsAND = theCleaningParameters.getParameter<std::vector<unsigned > >(
"techTrigsAND");
203 _techTrigsOR = theCleaningParameters.getParameter<std::vector<unsigned > >(
"techTrigsOR");
204 _techTrigsNOT = theCleaningParameters.getParameter<std::vector<unsigned > >(
"techTrigsNOT");
206 _doPVCheck = theCleaningParameters.getParameter<
bool>(
"doPrimaryVertexCheck");
207 _doHLTPhysicsOn = theCleaningParameters.getParameter<
bool>(
"doHLTPhysicsOn");
209 _tightBHFiltering = theCleaningParameters.getParameter<
bool>(
"tightBHFiltering");
211 _theVertexLabel = theCleaningParameters.getParameter<
edm::InputTag>(
"vertexLabel");
212 _theGTLabel = theCleaningParameters.getParameter<
edm::InputTag>(
"gtLabel");
216 _nvtx_min = theCleaningParameters.getParameter<
int>(
"nvtx_min");
217 _nvtxtrks_min = theCleaningParameters.getParameter<
int>(
"nvtxtrks_min");
218 _vtxndof_min = theCleaningParameters.getParameter<
int>(
"vtxndof_min");
219 _vtxchi2_max = theCleaningParameters.getParameter<
double>(
"vtxchi2_max");
220 _vtxz_max = theCleaningParameters.getParameter<
double>(
"vtxz_max");
228 if(theJetAnalyzerFlag) {
229 delete theAKJetAnalyzer;
230 if(theSConeJetAnalyzerFlag)
delete theSCJetAnalyzer;
231 if(theIConeJetAnalyzerFlag)
delete theICJetAnalyzer;
233 if(theJetCleaningFlag) {
234 delete theCleanedAKJetAnalyzer;
235 if(theSConeJetAnalyzerFlag)
delete theCleanedSCJetAnalyzer;
236 if(theIConeJetAnalyzerFlag)
delete theCleanedICJetAnalyzer;
238 if(theDiJetSelectionFlag) {
239 delete theDiJetAnalyzer;
241 if(theJetPtAnalyzerFlag) {
242 delete thePtAKJetAnalyzer;
243 if(theSConeJetAnalyzerFlag)
delete thePtSCJetAnalyzer;
244 if(theIConeJetAnalyzerFlag)
delete thePtICJetAnalyzer;
247 if(theJetPtCleaningFlag) {
248 delete theCleanedPtAKJetAnalyzer;
249 if(theSConeJetAnalyzerFlag)
delete theCleanedPtSCJetAnalyzer;
250 if(theIConeJetAnalyzerFlag)
delete theCleanedPtICJetAnalyzer;
253 if(theJPTJetAnalyzerFlag)
delete theJPTJetAnalyzer;
254 if(theJPTJetCleaningFlag)
delete theCleanedJPTJetAnalyzer;
256 if(thePFJetAnalyzerFlag)
delete thePFJetAnalyzer;
257 if(thePFJetCleaningFlag)
delete theCleanedPFJetAnalyzer;
258 if(theDiJetSelectionFlag)
delete thePFDiJetAnalyzer;
260 delete _HighPtJetEventFlag;
261 delete _LowPtJetEventFlag;
263 if(theCaloMETAnalyzerFlag){
264 delete theCaloMETAnalyzer;
269 if(theTcMETAnalyzerFlag)
delete theTcMETAnalyzer;
270 if(theMuCorrMETAnalyzerFlag)
delete theMuCorrMETAnalyzer;
271 if(thePfMETAnalyzerFlag)
delete thePfMETAnalyzer;
272 if(theHTMHTAnalyzerFlag)
delete theHTMHTAnalyzer;
274 delete DCSFilterCalo;
291 if(theJetAnalyzerFlag) {
292 theAKJetAnalyzer->beginJob(dbe);
293 if(theSConeJetAnalyzerFlag) theSCJetAnalyzer->beginJob(dbe);
294 if(theIConeJetAnalyzerFlag) theICJetAnalyzer->beginJob(dbe);
296 if(theJetCleaningFlag) {
297 theCleanedAKJetAnalyzer->beginJob(dbe);
298 if(theSConeJetAnalyzerFlag) theCleanedSCJetAnalyzer->beginJob(dbe);
299 if(theIConeJetAnalyzerFlag) theCleanedICJetAnalyzer->beginJob(dbe);
301 if(theDiJetSelectionFlag) theDiJetAnalyzer->beginJob(dbe);
302 if(theJetPtAnalyzerFlag ) {
303 thePtAKJetAnalyzer->beginJob(dbe);
304 if(theSConeJetAnalyzerFlag) thePtSCJetAnalyzer->beginJob(dbe);
305 if(theIConeJetAnalyzerFlag) thePtICJetAnalyzer->beginJob(dbe);
307 if(theJetPtCleaningFlag ) {
308 theCleanedPtAKJetAnalyzer->beginJob(dbe);
309 if(theSConeJetAnalyzerFlag) theCleanedPtSCJetAnalyzer->beginJob(dbe);
310 if(theIConeJetAnalyzerFlag) theCleanedPtICJetAnalyzer->beginJob(dbe);
313 if(theJPTJetAnalyzerFlag) theJPTJetAnalyzer->beginJob(dbe);
314 if(theJPTJetCleaningFlag) theCleanedJPTJetAnalyzer->beginJob(dbe);
316 if(thePFJetAnalyzerFlag) thePFJetAnalyzer->beginJob(dbe);
317 if(thePFJetCleaningFlag) theCleanedPFJetAnalyzer->beginJob(dbe);
318 if(theDiJetSelectionFlag) thePFDiJetAnalyzer->beginJob(dbe);
322 if(theCaloMETAnalyzerFlag){
323 theCaloMETAnalyzer->beginJob(dbe);
328 if(theTcMETAnalyzerFlag) theTcMETAnalyzer->beginJob(dbe);
329 if(theMuCorrMETAnalyzerFlag) theMuCorrMETAnalyzer->beginJob(dbe);
330 if(thePfMETAnalyzerFlag) thePfMETAnalyzer->beginJob(dbe);
331 if(theHTMHTAnalyzerFlag) theHTMHTAnalyzer->beginJob(dbe);
333 dbe->setCurrentFolder(
"JetMET");
334 lumisecME = dbe->book1D(
"lumisec",
"lumisec", 500, 0., 500.);
335 cleanupME = dbe->book1D(
"cleanup",
"cleanup", 10, 0., 10.);
336 cleanupME->setBinLabel(1,
"Primary Vertex");
337 cleanupME->setBinLabel(2,
"DCS::Pixel");
338 cleanupME->setBinLabel(3,
"DCS::SiStrip");
339 cleanupME->setBinLabel(4,
"DCS::ECAL");
340 cleanupME->setBinLabel(5,
"DCS::ES");
341 cleanupME->setBinLabel(6,
"DCS::HBHE");
342 cleanupME->setBinLabel(7,
"DCS::HF");
343 cleanupME->setBinLabel(8,
"DCS::HO");
344 cleanupME->setBinLabel(9,
"DCS::Muon");
346 verticesME = dbe->book1D(
"vertices",
"vertices", 50, 0, 50);
355 if ( _HighPtJetEventFlag->on() ) _HighPtJetEventFlag->initRun( iRun, iSetup );
356 if ( _LowPtJetEventFlag ->on() ) _LowPtJetEventFlag ->initRun( iRun, iSetup );
358 if (_HighPtJetEventFlag->on() && _HighPtJetEventFlag->expressionsFromDB(_HighPtJetEventFlag->hltDBKey(), iSetup)[0] !=
"CONFIG_ERROR")
359 highPtJetExpr_ = _HighPtJetEventFlag->expressionsFromDB(_HighPtJetEventFlag->hltDBKey(), iSetup);
360 if (_LowPtJetEventFlag->on() && _LowPtJetEventFlag->expressionsFromDB(_LowPtJetEventFlag->hltDBKey(), iSetup)[0] !=
"CONFIG_ERROR")
361 lowPtJetExpr_ = _LowPtJetEventFlag->expressionsFromDB(_LowPtJetEventFlag->hltDBKey(), iSetup);
366 _hlt_initialized = hltConfig_.init(iRun,iSetup,processname_,changed);
367 if (!_hlt_initialized) {
370 _hlt_initialized = hltConfig_.init(iRun,iSetup,processname_,changed);
371 if(!_hlt_initialized){
373 LogDebug(
"JetMETAnalyzer") <<
"HLTConfigProvider failed to initialize.";
397 if(theCaloMETAnalyzerFlag){
398 theCaloMETAnalyzer->beginRun(iRun, iSetup);
403 if(theTcMETAnalyzerFlag) theTcMETAnalyzer->beginRun(iRun, iSetup);
404 if(theMuCorrMETAnalyzerFlag) theMuCorrMETAnalyzer->beginRun(iRun, iSetup);
405 if(thePfMETAnalyzerFlag) thePfMETAnalyzer->beginRun(iRun, iSetup);
418 if(theCaloMETAnalyzerFlag){
419 theCaloMETAnalyzer->endRun(iRun, iSetup, dbe);
424 if(theTcMETAnalyzerFlag) theTcMETAnalyzer->endRun(iRun, iSetup, dbe);
425 if(theMuCorrMETAnalyzerFlag) theMuCorrMETAnalyzer->endRun(iRun, iSetup, dbe);
426 if(thePfMETAnalyzerFlag) thePfMETAnalyzer->endRun(iRun, iSetup, dbe);
437 int myLuminosityBlock;
439 lumisecME->Fill(myLuminosityBlock);
441 if (myLuminosityBlock<_LSBegin)
return;
442 if (myLuminosityBlock>_LSEnd && _LSEnd>0)
return;
446 iEvent.
getByLabel(theTriggerResultsLabel, triggerResults);
448 bool bPhysicsDeclared =
false;
449 if(!_doHLTPhysicsOn) bPhysicsDeclared =
true;
457 if( triggerNames.
triggerIndex(
"HLT_PhysicsDeclared") != triggerNames.
size() )
458 if (triggerResults->accept(triggerNames.
triggerIndex(
"HLT_PhysicsDeclared"))) {
459 if(_doHLTPhysicsOn) bPhysicsDeclared =
true;
473 const unsigned int nTrig(triggerNames.
size());
474 for (
unsigned int i=0;
i<nTrig;++
i)
476 if (triggerNames.
triggerName(
i).find(highPtJetExpr_[0].substr(0,highPtJetExpr_[0].rfind(
"_v")+2))!=std::string::npos && triggerResults->accept(
i))
478 else if (triggerNames.
triggerName(
i).find(lowPtJetExpr_[0].substr(0,lowPtJetExpr_[0].rfind(
"_v")+2))!=std::string::npos && triggerResults->accept(
i))
484 if (
DEBUG)
std::cout <<
"trigger label " << theTriggerResultsLabel << std::endl;
495 std::cout <<
">>> Trigger Lo = " << JetLoPass
496 <<
" Hi = " << JetHiPass
504 bool bPrimaryVertex =
true;
506 bPrimaryVertex =
false;
509 iEvent.
getByLabel(_theVertexLabel, vertexHandle);
512 LogInfo(
"JetMETAnalyzer") <<
"JetMETAnalyzer: Could not find vertex collection" << std::endl;
513 if (
DEBUG)
std::cout <<
"JetMETAnalyzer: Could not find vertex collection" << std::endl;
518 int vertex_number = vertexCollection.size();
519 reco::VertexCollection::const_iterator
v = vertexCollection.begin();
520 for ( ; v != vertexCollection.end(); ++
v) {
521 double vertex_chi2 = v->normalizedChi2();
522 double vertex_ndof = v->ndof();
523 bool fakeVtx = v->isFake();
524 double vertex_Z = v->z();
527 && vertex_number>=_nvtx_min
528 && vertex_ndof >_vtxndof_min
529 && vertex_chi2 <_vtxchi2_max
530 && fabs(vertex_Z)<_vtxz_max ) {
531 bPrimaryVertex =
true;
537 verticesME->Fill(_numPV);
541 iEvent.
getByLabel( _theGTLabel, gtReadoutRecord);
543 if (!gtReadoutRecord.
isValid()) {
544 LogInfo(
"JetMETAnalyzer") <<
"JetMETAnalyzer: Could not find GT readout record" << std::endl;
545 if (
DEBUG)
std::cout <<
"JetMETAnalyzer: Could not find GT readout record product" << std::endl;
548 bool bTechTriggers =
true;
549 bool bTechTriggersAND =
true;
550 bool bTechTriggersOR =
false;
551 bool bTechTriggersNOT =
false;
553 if (gtReadoutRecord.
isValid()) {
554 const TechnicalTriggerWord& technicalTriggerWordBeforeMask = gtReadoutRecord->technicalTriggerWord();
556 if (_techTrigsAND.size() == 0)
557 bTechTriggersAND =
true;
559 for (
unsigned ttr = 0; ttr != _techTrigsAND.size(); ttr++) {
560 bTechTriggersAND = bTechTriggersAND && technicalTriggerWordBeforeMask.at(_techTrigsAND.at(ttr));
563 if (_techTrigsAND.size() == 0)
564 bTechTriggersOR =
true;
566 for (
unsigned ttr = 0; ttr != _techTrigsOR.size(); ttr++) {
567 bTechTriggersOR = bTechTriggersOR || technicalTriggerWordBeforeMask.at(_techTrigsOR.at(ttr));
569 if (_techTrigsNOT.size() == 0)
570 bTechTriggersNOT =
false;
572 for (
unsigned ttr = 0; ttr != _techTrigsNOT.size(); ttr++) {
573 bTechTriggersNOT = bTechTriggersNOT || technicalTriggerWordBeforeMask.at(_techTrigsNOT.at(ttr));
578 bTechTriggersAND =
true;
579 bTechTriggersOR =
true;
580 bTechTriggersNOT =
false;
583 if (_techTrigsAND.size()==0)
584 bTechTriggersAND =
true;
585 if (_techTrigsOR.size()==0)
586 bTechTriggersOR =
true;
587 if (_techTrigsNOT.size()==0)
588 bTechTriggersNOT =
false;
590 bTechTriggers = bTechTriggersAND && bTechTriggersOR && !bTechTriggersNOT;
592 bool bJetCleanup = bTechTriggers && bPrimaryVertex && bPhysicsDeclared;
594 DCSFilterAll->filter(iEvent, iSetup);
595 if (bPrimaryVertex) cleanupME->Fill(0.5);
596 if ( DCSFilterAll->passPIX ) cleanupME->Fill(1.5);
597 if ( DCSFilterAll->passSiStrip ) cleanupME->Fill(2.5);
598 if ( DCSFilterAll->passECAL ) cleanupME->Fill(3.5);
599 if ( DCSFilterAll->passES ) cleanupME->Fill(4.5);
600 if ( DCSFilterAll->passHBHE ) cleanupME->Fill(5.5);
601 if ( DCSFilterAll->passHF ) cleanupME->Fill(6.5);
602 if ( DCSFilterAll->passHO ) cleanupME->Fill(7.5);
603 if ( DCSFilterAll->passMuon ) cleanupME->Fill(8.5);
610 iEvent.
getByLabel(theAKJetCollectionLabel, caloJets);
613 if(theJetAnalyzerFlag){
614 theAKJetAnalyzer->setJetHiPass(JetHiPass);
615 theAKJetAnalyzer->setJetLoPass(JetLoPass);
616 theAKJetAnalyzer->analyze(iEvent, iSetup, *caloJets, _numPV);
618 if(theJetPtAnalyzerFlag){
619 LogTrace(
metname)<<
"[JetMETAnalyzer] Call to the Jet Pt anti-Kt analyzer";
620 thePtAKJetAnalyzer->analyze(iEvent, iSetup, *caloJets);
625 if(caloJets.
isValid() && bJetCleanup) {
626 if(DCSFilterCalo->filter(iEvent, iSetup)){
627 if(theJetCleaningFlag){
628 theCleanedAKJetAnalyzer->setJetHiPass(JetHiPass);
629 theCleanedAKJetAnalyzer->setJetLoPass(JetLoPass);
630 theCleanedAKJetAnalyzer->analyze(iEvent, iSetup, *caloJets, _numPV);
632 if(theJetPtCleaningFlag){
633 LogTrace(
metname)<<
"[JetMETAnalyzer] Call to the Cleaned Jet Pt anti-Kt analyzer";
634 theCleanedPtAKJetAnalyzer->analyze(iEvent, iSetup, *caloJets);
639 if(caloJets.
isValid() && bJetCleanup){
640 if(DCSFilterCalo->filter(iEvent, iSetup)){
641 if(theDiJetSelectionFlag){
642 theDiJetAnalyzer->analyze(iEvent, iSetup, *caloJets, _numPV);
649 if(theJetPtAnalyzerFlag){
650 LogTrace(
metname)<<
"[JetMETAnalyzer] Call to the Jet Pt anti-Kt analyzer";
651 thePtAKJetAnalyzer->analyze(iEvent, iSetup, *caloJets);
655 if(caloJets.
isValid() && bJetCleanup){
656 if(DCSFilterCalo->filter(iEvent, iSetup)){
657 if(theJetPtCleaningFlag){
658 LogTrace(
metname)<<
"[JetMETAnalyzer] Call to the Cleaned Jet Pt anti-Kt analyzer";
659 theCleanedPtAKJetAnalyzer->analyze(iEvent, iSetup, *caloJets);
665 iEvent.
getByLabel(theSCJetCollectionLabel, caloJets);
666 if(theSConeJetAnalyzerFlag){
668 if(theJetAnalyzerFlag){
669 theSCJetAnalyzer->setJetHiPass(JetHiPass);
670 theSCJetAnalyzer->setJetLoPass(JetLoPass);
671 theSCJetAnalyzer->analyze(iEvent, iSetup, *caloJets, _numPV);
673 if(theJetPtAnalyzerFlag){
674 LogTrace(
metname)<<
"[JetMETAnalyzer] Call to the Jet Pt SisCone analyzer";
675 thePtSCJetAnalyzer->analyze(iEvent, iSetup, *caloJets);
679 if(caloJets.
isValid() && bJetCleanup){
680 if(DCSFilterCalo->filter(iEvent, iSetup)){
681 if(theJetCleaningFlag){
682 theCleanedSCJetAnalyzer->setJetHiPass(JetHiPass);
683 theCleanedSCJetAnalyzer->setJetLoPass(JetLoPass);
684 theCleanedSCJetAnalyzer->analyze(iEvent, iSetup, *caloJets, _numPV);
686 if(theJetPtCleaningFlag){
687 LogTrace(
metname)<<
"[JetMETAnalyzer] Call to the Cleaned Jet Pt SisCone analyzer";
688 theCleanedPtSCJetAnalyzer->analyze(iEvent, iSetup, *caloJets);
694 iEvent.
getByLabel(theICJetCollectionLabel, caloJets);
695 if(theIConeJetAnalyzerFlag) {
697 if(theJetAnalyzerFlag){
698 theICJetAnalyzer->setJetHiPass(JetHiPass);
699 theICJetAnalyzer->setJetLoPass(JetLoPass);
700 theICJetAnalyzer->analyze(iEvent, iSetup, *caloJets, _numPV);
702 if(theJetPtAnalyzerFlag){
703 LogTrace(
metname)<<
"[JetMETAnalyzer] Call to the Jet Pt ICone analyzer";
704 thePtICJetAnalyzer->analyze(iEvent, iSetup, *caloJets);
708 if(caloJets.
isValid() && bJetCleanup){
709 if(DCSFilterCalo->filter(iEvent, iSetup)){
710 if(theJetCleaningFlag){
711 theCleanedICJetAnalyzer->setJetHiPass(JetHiPass);
712 theCleanedICJetAnalyzer->setJetLoPass(JetLoPass);
713 theCleanedICJetAnalyzer->analyze(iEvent, iSetup, *caloJets, _numPV);
715 if(theJetPtCleaningFlag){
716 LogTrace(
metname)<<
"[JetMETAnalyzer] Call to the Cleaned Jet Pt ICone analyzer";
717 theCleanedPtICJetAnalyzer->analyze(iEvent, iSetup, *caloJets);
725 iEvent.
getByLabel(theJPTJetCollectionLabel, jptJets);
726 if(jptJets.
isValid() && theJPTJetAnalyzerFlag){
729 theJPTJetAnalyzer->analyze(iEvent, iSetup, *jptJets, _numPV);
732 if(jptJets.
isValid() && bJetCleanup && theJPTJetCleaningFlag){
733 if(DCSFilterJPT->filter(iEvent, iSetup)){
736 theCleanedJPTJetAnalyzer->analyze(iEvent, iSetup, *jptJets, _numPV);
742 iEvent.
getByLabel(thePFJetCollectionLabel, pfJets);
745 if(thePFJetAnalyzerFlag){
746 thePFJetAnalyzer->setJetHiPass(JetHiPass);
747 thePFJetAnalyzer->setJetLoPass(JetLoPass);
749 thePFJetAnalyzer->analyze(iEvent, iSetup, *pfJets, _numPV);
751 if(thePFJetCleaningFlag){
752 if(DCSFilterPF->filter(iEvent, iSetup)){
753 theCleanedPFJetAnalyzer->setJetHiPass(JetHiPass);
754 theCleanedPFJetAnalyzer->setJetLoPass(JetLoPass);
755 LogTrace(
metname)<<
"[JetMETAnalyzer] Call to the Cleaned PFJet analyzer";
756 theCleanedPFJetAnalyzer->analyze(iEvent, iSetup, *pfJets, _numPV);
757 if(theDiJetSelectionFlag){
758 thePFDiJetAnalyzer->analyze(iEvent, iSetup, *pfJets, _numPV);
769 if(theCaloMETAnalyzerFlag){
771 theCaloMETAnalyzer->analyze(iEvent, iSetup, *triggerResults);
780 if(theTcMETAnalyzerFlag){
782 theTcMETAnalyzer->analyze(iEvent, iSetup, *triggerResults);
789 if(theMuCorrMETAnalyzerFlag){
791 theMuCorrMETAnalyzer->analyze(iEvent, iSetup, *triggerResults);
798 if(thePfMETAnalyzerFlag){
800 thePfMETAnalyzer->analyze(iEvent, iSetup, *triggerResults);
807 if(theHTMHTAnalyzerFlag){
809 theHTMHTAnalyzer->analyze(iEvent, iSetup, *triggerResults);
818 bool outputMEsInRootFile =
parameters.getParameter<
bool>(
"OutputMEsInRootFile");
823 if(theCaloMETAnalyzerFlag){
824 theCaloMETAnalyzer->endJob();
829 if(theTcMETAnalyzerFlag) theTcMETAnalyzer->endJob();
830 if(theMuCorrMETAnalyzerFlag) theMuCorrMETAnalyzer->endJob();
831 if(thePfMETAnalyzerFlag) thePfMETAnalyzer->endJob();
835 if(theJetAnalyzerFlag) {
836 theAKJetAnalyzer->endJob();
837 if(theSConeJetAnalyzerFlag) theSCJetAnalyzer->endJob();
838 if(theIConeJetAnalyzerFlag) theICJetAnalyzer->endJob();
841 if(theJetCleaningFlag) {
842 theCleanedAKJetAnalyzer->endJob();
843 if(theSConeJetAnalyzerFlag) theCleanedSCJetAnalyzer->endJob();
844 if(theIConeJetAnalyzerFlag) theCleanedICJetAnalyzer->endJob();
847 if(theDiJetSelectionFlag) theDiJetAnalyzer->endJob();
849 if(theJetPtAnalyzerFlag ) {
850 thePtAKJetAnalyzer->endJob();
851 if(theSConeJetAnalyzerFlag) thePtSCJetAnalyzer->endJob();
852 if(theIConeJetAnalyzerFlag) thePtICJetAnalyzer->endJob();
855 if(theJetPtCleaningFlag ) {
856 theCleanedPtAKJetAnalyzer->endJob();
857 if(theSConeJetAnalyzerFlag) theCleanedPtSCJetAnalyzer->endJob();
858 if(theIConeJetAnalyzerFlag) theCleanedPtICJetAnalyzer->endJob();
861 if(theJPTJetAnalyzerFlag) theJPTJetAnalyzer->endJob();
862 if(theJPTJetCleaningFlag) theCleanedJPTJetAnalyzer->endJob();
864 if(thePFJetAnalyzerFlag) thePFJetAnalyzer->endJob();
865 if(thePFJetCleaningFlag) theCleanedPFJetAnalyzer->endJob();
866 if(theDiJetSelectionFlag) thePFDiJetAnalyzer->endJob();
868 if(outputMEsInRootFile){
869 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
T const * product() const
JPT jet analyzer class definition.