Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 77791
b: "refs/heads/CMSSW_7_1_X"
c: 65fa6b2
h: "refs/heads/CMSSW_7_1_X"
i:
  77789: 2aae171
  77787: bddfd60
  77783: a1e4f93
  77775: 832e7d7
  77759: cad2e54
v: v3
  • Loading branch information
Artur Apresyan committed Nov 12, 2009
1 parent f2fdb95 commit 1b1bef9
Show file tree
Hide file tree
Showing 8 changed files with 60 additions and 27 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
---
refs/heads/gh-pages: 09c786f70121f131b3715aaf3464996502bbeb7e
"refs/heads/CMSSW_7_1_X": 9331fd40d1b562566338dd68f789fcf02aa450c9
"refs/heads/CMSSW_7_1_X": 65fa6b2e5856462d2fccb1fcf0f2cfb44dfd08d2
7 changes: 5 additions & 2 deletions trunk/DQMOffline/JetMET/interface/MuCorrMETAnalyzer.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
*
* DQM monitoring source for CaloMET
*
* $Date: 2009/10/08 10:08:28 $
* $Revision: 1.2 $
* $Date: 2009/11/08 13:47:03 $
* $Revision: 1.1 $
* \author A.Apresyan - Caltech
*/

Expand Down Expand Up @@ -49,6 +49,9 @@ class MuCorrMETAnalyzer : public MuCorrMETAnalyzerBase {
/// Inizialize parameters for histo binning
void beginJob(edm::EventSetup const& iSetup, DQMStore *dbe);

/// Finish up a job
void endJob();

// Book MonitorElements
void bookMESet(std::string);
void bookMonitorElement(std::string, bool);
Expand Down
9 changes: 6 additions & 3 deletions trunk/DQMOffline/JetMET/interface/PFMETAnalyzer.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
*
* DQM monitoring source for CaloMET
*
* $Date: 2009/10/08 10:08:28 $
* $Revision: 1.2 $
* $Date: 2009/10/28 13:23:07 $
* $Revision: 1.3 $
* \author K. Hatakeyama - Rockefeller University
* A.Apresyan - Caltech
*/
Expand Down Expand Up @@ -53,6 +53,9 @@ class PFMETAnalyzer : public PFMETAnalyzerBase {
/// Inizialize parameters for histo binning
void beginJob(edm::EventSetup const& iSetup, DQMStore *dbe);

/// Finish up a job
void endJob();

// Book MonitorElements
void bookMESet(std::string);
void bookMonitorElement(std::string, bool);
Expand Down Expand Up @@ -133,7 +136,7 @@ class PFMETAnalyzer : public PFMETAnalyzerBase {
double hfCalibFactor_; //

// JetID helper
reco::helper::JetIDHelper jetID;
reco::helper::JetIDHelper *jetID;

//
bool _allhist;
Expand Down
7 changes: 5 additions & 2 deletions trunk/DQMOffline/JetMET/interface/TcMETAnalyzer.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
*
* DQM monitoring source for CaloMET
*
* $Date: 2009/10/08 10:08:28 $
* $Revision: 1.2 $
* $Date: 2009/11/08 13:45:20 $
* $Revision: 1.1 $
* \author A.Apresyan - Caltech
*/

Expand Down Expand Up @@ -49,6 +49,9 @@ class TcMETAnalyzer : public TcMETAnalyzerBase {
/// Inizialize parameters for histo binning
void beginJob(edm::EventSetup const& iSetup, DQMStore *dbe);

/// Finish up a job
void endJob();

// Book MonitorElements
void bookMESet(std::string);
void bookMonitorElement(std::string, bool);
Expand Down
10 changes: 5 additions & 5 deletions trunk/DQMOffline/JetMET/src/JetMETAnalyzer.cc
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*
* See header file for a description of this class.
*
* $Date: 2009/11/08 14:33:02 $
* $Revision: 1.29 $
* $Date: 2009/11/09 18:29:02 $
* $Revision: 1.30 $
* \author F. Chlebana - Fermilab
* K. Hatakeyama - Rockefeller University
*/
Expand Down Expand Up @@ -110,7 +110,7 @@ JetMETAnalyzer::JetMETAnalyzer(const edm::ParameterSet& pSet) {
theCaloMETNoHFHOAnalyzer = new CaloMETAnalyzer(parameters.getParameter<ParameterSet>("caloMETNoHFHOAnalysis"));
}
if(theTcMETAnalyzerFlag){
theTcMETAnalyzer = new METAnalyzer(parameters.getParameter<ParameterSet>("tcMETAnalysis"));
theTcMETAnalyzer = new TcMETAnalyzer(parameters.getParameter<ParameterSet>("tcMETAnalysis"));
}
if(thePfMETAnalyzerFlag){
thePfMETAnalyzer = new PFMETAnalyzer(parameters.getParameter<ParameterSet>("pfMETAnalysis"));
Expand Down Expand Up @@ -472,8 +472,8 @@ void JetMETAnalyzer::endJob(void) {
}

if(theCaloMETAnalyzerFlag) theCaloMETAnalyzer->endJob();
//if(theTcMETAnalyzerFlag) theTcMETAnalyzer->endJob();
//if(thePfMETAnalyzerFlag) thePfMETAnalyzer->endJob();
if(theTcMETAnalyzerFlag) theTcMETAnalyzer->endJob();
if(thePfMETAnalyzerFlag) thePfMETAnalyzer->endJob();
//if(theHTMHTAnalyzerFlag) theHTMHTAnalyzer->endJob();

}
Expand Down
11 changes: 9 additions & 2 deletions trunk/DQMOffline/JetMET/src/MuCorrMETAnalyzer.cc
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*
* See header file for a description of this class.
*
* $Date: 2009/10/08 10:14:36 $
* $Revision: 1.3 $
* $Date: 2009/11/08 13:47:03 $
* $Revision: 1.1 $
* \author A.Apresyan - Caltech
*/

Expand Down Expand Up @@ -107,6 +107,13 @@ void MuCorrMETAnalyzer::beginJob(edm::EventSetup const& iSetup,DQMStore * dbe) {
}
}

// ***********************************************************
void MuCorrMETAnalyzer::endJob() {

delete jetID;

}

// ***********************************************************
void MuCorrMETAnalyzer::bookMESet(std::string DirName)
{
Expand Down
30 changes: 20 additions & 10 deletions trunk/DQMOffline/JetMET/src/PFMETAnalyzer.cc
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*
* See header file for a description of this class.
*
* $Date: 2009/10/08 10:14:36 $
* $Revision: 1.3 $
* $Date: 2009/10/28 13:23:06 $
* $Revision: 1.4 $
* \author K. Hatakeyama - Rockefeller University
* A.Apresyan - Caltech
*/
Expand Down Expand Up @@ -78,6 +78,9 @@ void PFMETAnalyzer::beginJob(edm::EventSetup const& iSetup,DQMStore * dbe) {
_highPFMETThreshold = parameters.getParameter<double>("HighPFMETThreshold"); // High MET threshold
_lowPFMETThreshold = parameters.getParameter<double>("LowPFMETThreshold"); // Low MET threshold

//
jetID = new reco::helper::JetIDHelper(parameters.getParameter<ParameterSet>("JetIDParams"));

// DQStore stuff
LogTrace(metname)<<"[PFMETAnalyzer] Parameters initialization";
std::string DirName = "JetMET/MET/"+_source;
Expand Down Expand Up @@ -108,6 +111,13 @@ void PFMETAnalyzer::beginJob(edm::EventSetup const& iSetup,DQMStore * dbe) {
}
}

// ***********************************************************
void PFMETAnalyzer::endJob() {

delete jetID;

}

// ***********************************************************
void PFMETAnalyzer::bookMESet(std::string DirName)
{
Expand Down Expand Up @@ -433,16 +443,16 @@ void PFMETAnalyzer::analyze(const edm::Event& iEvent, const edm::EventSetup& iSe
bool bJetID=true;
for (reco::CaloJetCollection::const_iterator cal = caloJets->begin();
cal!=caloJets->end(); ++cal){
jetID.calculate(iEvent, *cal);
if (_verbose) std::cout << jetID.n90Hits() << " "
<< jetID.restrictedEMF() << " "
jetID->calculate(iEvent, *cal);
if (_verbose) std::cout << jetID->n90Hits() << " "
<< jetID->restrictedEMF() << " "
<< cal->pt() << std::endl;
if (cal->pt()>10.){
//
// for all regions
if (jetID.n90Hits()<2) bJetID=false;
if (jetID.fHPD()>=0.98) bJetID=false;
//if (jetID.restrictedEMF()<0.01) bJetID=false;
if (jetID->n90Hits()<2) bJetID=false;
if (jetID->fHPD()>=0.98) bJetID=false;
//if (jetID->restrictedEMF()<0.01) bJetID=false;
//
// for non-forward
if (fabs(cal->eta())<2.55){
Expand All @@ -465,11 +475,11 @@ void PFMETAnalyzer::analyze(const edm::Event& iEvent, const edm::EventSetup& iSe
bJetIDTight=bJetID;
for (reco::CaloJetCollection::const_iterator cal = caloJets->begin();
cal!=caloJets->end(); ++cal){
jetID.calculate(iEvent, *cal);
jetID->calculate(iEvent, *cal);
if (cal->pt()>25.){
//
// for all regions
if (jetID.fHPD()>=0.95) bJetIDTight=false;
if (jetID->fHPD()>=0.95) bJetIDTight=false;
//
// for 1.0<|eta|<1.75
if (fabs(cal->eta())>=1.00 && fabs(cal->eta())<1.75){
Expand Down
11 changes: 9 additions & 2 deletions trunk/DQMOffline/JetMET/src/TcMETAnalyzer.cc
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*
* See header file for a description of this class.
*
* $Date: 2009/10/08 10:14:36 $
* $Revision: 1.3 $
* $Date: 2009/11/08 13:45:20 $
* $Revision: 1.1 $
* \author A.Apresyan - Caltech
*/

Expand Down Expand Up @@ -107,6 +107,13 @@ void TcMETAnalyzer::beginJob(edm::EventSetup const& iSetup,DQMStore * dbe) {
}
}

// ***********************************************************
void TcMETAnalyzer::endJob() {

delete jetID;

}

// ***********************************************************
void TcMETAnalyzer::bookMESet(std::string DirName)
{
Expand Down

0 comments on commit 1b1bef9

Please sign in to comment.