CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Protected Attributes | Private Attributes
PFMETBenchmark Class Reference

#include <PFMETBenchmark.h>

Public Member Functions

void analyse ()
 
void calculateQuantities (const reco::PFMETCollection &, const reco::GenParticleCollection &, const reco::CaloMETCollection &, const reco::METCollection &)
 
void calculateQuantities (const reco::PFMETCollection &, const reco::GenParticleCollection &, const reco::CaloMETCollection &, const reco::METCollection &, const std::vector< reco::CaloJet > &, const std::vector< reco::CaloJet > &)
 
float getCaloMET ()
 
float getCaloMEX ()
 
float getCaloMEY ()
 
float getCaloPhi ()
 
float getCaloSET ()
 
float getDeltaCaloMET ()
 
float getDeltaCaloPhi ()
 
float getDeltaCaloSET ()
 
float getDeltaPFMET ()
 
float getDeltaPFPhi ()
 
float getDeltaPFSET ()
 
float getDeltaTCMET ()
 
float getDeltaTCPhi ()
 
float getDeltaTCSET ()
 
float getPFMET ()
 
float getPFMEX ()
 
float getPFMEY ()
 
float getPFPhi ()
 
float getPFSET ()
 
float getTCMET ()
 
float getTCMEX ()
 
float getTCMEY ()
 
float getTCPhi ()
 
float getTCSET ()
 
float getTrueMET ()
 
float getTruePhi ()
 
float getTrueSET ()
 
double mpi_pi (double angle)
 
 PFMETBenchmark ()
 
void process (const reco::PFMETCollection &, const reco::GenParticleCollection &, const reco::CaloMETCollection &, const reco::METCollection &)
 
void setup (std::string Filename, bool debug, bool plotAgainstReco=0, std::string benchmarkLabel_="ParticleFlow", DQMStore *dbe_store=NULL)
 
void write ()
 
virtual ~PFMETBenchmark ()
 

Protected Attributes

PFBenchmarkAlgoalgo_
 
DQMStoredbe_
 
bool debug_
 
bool plotAgainstReco_
 

Private Attributes

double calo_met
 
double calo_mex
 
double calo_mey
 
double calo_phi
 
double calo_set
 
TFile * file_
 
TH1F * hCaloMET
 
TH2F * hCaloMETvstrueMET
 
TH1F * hCaloMEX
 
TH2F * hCaloSETvsDeltaCaloMET
 
TH2F * hCaloSETvsDeltaCaloSET
 
TH1F * hDeltaCaloMET
 
TH2F * hDeltaCaloMETvstrueMET
 
TH1F * hDeltaCaloMEX
 
TH2F * hDeltaCaloMEXvstrueSET
 
TH1F * hDeltaCaloPhi
 
TH2F * hDeltaCaloPhivstrueMET
 
TH1F * hDeltaCaloSET
 
TH1F * hDeltaMET
 
TH1F * hDeltaMEX
 
TH2F * hDeltaPFMETvstrueMET
 
TH2F * hDeltaPFMEXvstrueSET
 
TH2F * hDeltaPFPhivstrueMET
 
TH1F * hDeltaPhi
 
TH1F * hDeltaSET
 
TH1F * hDeltaTCMET
 
TH2F * hDeltaTCMETvstrueMET
 
TH1F * hDeltaTCMEX
 
TH2F * hDeltaTCMEXvstrueSET
 
TH1F * hDeltaTCPhi
 
TH2F * hDeltaTCPhivstrueMET
 
TH1F * hDeltaTCSET
 
TH1F * hMEX
 
TH1F * hPFMET
 
TH2F * hPFMETvstrueMET
 
TH2F * hSETvsDeltaMET
 
TH2F * hSETvsDeltaSET
 
TH1F * hTCMET
 
TH2F * hTCMETvstrueMET
 
TH1F * hTCMEX
 
TH2F * hTCSETvsDeltaTCMET
 
TH2F * hTCSETvsDeltaTCSET
 
TH1F * hTrueMET
 
std::string outputFile_
 
TProfile * profileCaloMETvsCaloMETresp
 
TProfile * profileCaloSETvsCaloSETresp
 
TProfile * profileMETvsMETresp
 
TProfile * profileSETvsSETresp
 
TProfile * profileTCMETvsTCMETresp
 
TProfile * profileTCSETvsTCSETresp
 
double rec_met
 
double rec_mex
 
double rec_mey
 
double rec_phi
 
double rec_set
 
double tc_met
 
double tc_mex
 
double tc_mey
 
double tc_phi
 
double tc_set
 
double true_met
 
double true_mex
 
double true_mey
 
double true_phi
 
double true_set
 

Detailed Description

Definition at line 32 of file PFMETBenchmark.h.

Constructor & Destructor Documentation

PFMETBenchmark::PFMETBenchmark ( )

Definition at line 30 of file PFMETBenchmark.cc.

PFMETBenchmark::~PFMETBenchmark ( )
virtual

Definition at line 32 of file PFMETBenchmark.cc.

Member Function Documentation

void PFMETBenchmark::analyse ( )

Definition at line 429 of file PFMETBenchmark.cc.

Referenced by PFMETBenchmarkAnalyzer::endJob().

void PFMETBenchmark::calculateQuantities ( const reco::PFMETCollection pfMets,
const reco::GenParticleCollection genParticleList,
const reco::CaloMETCollection caloMets,
const reco::METCollection tcMets 
)

Definition at line 274 of file PFMETBenchmark.cc.

void PFMETBenchmark::calculateQuantities ( const reco::PFMETCollection pfMets,
const reco::GenParticleCollection genParticleList,
const reco::CaloMETCollection caloMets,
const reco::METCollection tcMets,
const std::vector< reco::CaloJet > &  caloJets,
const std::vector< reco::CaloJet > &  corr_caloJets 
)

Definition at line 330 of file PFMETBenchmark.cc.

float PFMETBenchmark::getCaloMET ( )
inline

Definition at line 68 of file PFMETBenchmark.h.

References calo_met.

68 {return calo_met;}
float PFMETBenchmark::getCaloMEX ( )
inline

Definition at line 69 of file PFMETBenchmark.h.

References calo_mex, and true_mex.

69 {return calo_mex-true_mex;}
float PFMETBenchmark::getCaloMEY ( )
inline

Definition at line 70 of file PFMETBenchmark.h.

References calo_mey, and true_mey.

70 {return calo_mey-true_mey;}
float PFMETBenchmark::getCaloPhi ( )
inline

Definition at line 71 of file PFMETBenchmark.h.

References calo_phi.

71 {return calo_phi;}
float PFMETBenchmark::getCaloSET ( )
inline

Definition at line 72 of file PFMETBenchmark.h.

References calo_set.

72 {return calo_set;}
float PFMETBenchmark::getDeltaCaloMET ( )
inline

Definition at line 81 of file PFMETBenchmark.h.

References calo_met, and true_met.

81 {return calo_met - true_met;}
float PFMETBenchmark::getDeltaCaloPhi ( )
inline

Definition at line 82 of file PFMETBenchmark.h.

References calo_phi, mpi_pi(), and true_phi.

82 {return mpi_pi(calo_phi - true_phi);}
double mpi_pi(double angle)
float PFMETBenchmark::getDeltaCaloSET ( )
inline

Definition at line 83 of file PFMETBenchmark.h.

References calo_set, and true_set.

83 {return calo_set - true_set;}
float PFMETBenchmark::getDeltaPFMET ( )
inline

Definition at line 78 of file PFMETBenchmark.h.

References rec_met, and true_met.

78 {return rec_met - true_met;}
float PFMETBenchmark::getDeltaPFPhi ( )
inline

Definition at line 79 of file PFMETBenchmark.h.

References mpi_pi(), rec_phi, and true_phi.

79 {return mpi_pi(rec_phi - true_phi);}
double mpi_pi(double angle)
float PFMETBenchmark::getDeltaPFSET ( )
inline

Definition at line 80 of file PFMETBenchmark.h.

References rec_set, and true_set.

80 {return rec_set - true_set;}
float PFMETBenchmark::getDeltaTCMET ( )
inline

Definition at line 84 of file PFMETBenchmark.h.

References tc_met, and true_met.

84 {return tc_met - true_met;}
float PFMETBenchmark::getDeltaTCPhi ( )
inline

Definition at line 85 of file PFMETBenchmark.h.

References mpi_pi(), tc_phi, and true_phi.

85 {return mpi_pi(tc_phi - true_phi);}
double mpi_pi(double angle)
float PFMETBenchmark::getDeltaTCSET ( )
inline

Definition at line 86 of file PFMETBenchmark.h.

References tc_set, and true_set.

86 {return tc_set - true_set;}
float PFMETBenchmark::getPFMET ( )
inline

Definition at line 63 of file PFMETBenchmark.h.

References rec_met.

63 {return rec_met;}
float PFMETBenchmark::getPFMEX ( )
inline

Definition at line 64 of file PFMETBenchmark.h.

References rec_mex, and true_mex.

64 {return rec_mex-true_mex;}
float PFMETBenchmark::getPFMEY ( )
inline

Definition at line 65 of file PFMETBenchmark.h.

References rec_mey, and true_mey.

65 {return rec_mey-true_mey;}
float PFMETBenchmark::getPFPhi ( )
inline

Definition at line 66 of file PFMETBenchmark.h.

References rec_phi.

66 {return rec_phi;}
float PFMETBenchmark::getPFSET ( )
inline

Definition at line 67 of file PFMETBenchmark.h.

References rec_set.

67 {return rec_set;}
float PFMETBenchmark::getTCMET ( )
inline

Definition at line 73 of file PFMETBenchmark.h.

References tc_met.

73 {return tc_met;}
float PFMETBenchmark::getTCMEX ( )
inline

Definition at line 74 of file PFMETBenchmark.h.

References tc_mex, and true_mex.

74 {return tc_mex-true_mex;}
float PFMETBenchmark::getTCMEY ( )
inline

Definition at line 75 of file PFMETBenchmark.h.

References tc_mey, and true_mey.

75 {return tc_mey-true_mey;}
float PFMETBenchmark::getTCPhi ( )
inline

Definition at line 76 of file PFMETBenchmark.h.

References tc_phi.

76 {return tc_phi;}
float PFMETBenchmark::getTCSET ( )
inline

Definition at line 77 of file PFMETBenchmark.h.

References tc_set.

77 {return tc_set;}
float PFMETBenchmark::getTrueMET ( )
inline

Definition at line 60 of file PFMETBenchmark.h.

References true_met.

60 {return true_met;}
float PFMETBenchmark::getTruePhi ( )
inline

Definition at line 61 of file PFMETBenchmark.h.

References true_phi.

61 {return true_phi;}
float PFMETBenchmark::getTrueSET ( )
inline

Definition at line 62 of file PFMETBenchmark.h.

References true_set.

62 {return true_set;}
double PFMETBenchmark::mpi_pi ( double  angle)

Definition at line 623 of file PFMETBenchmark.cc.

Referenced by getDeltaCaloPhi(), getDeltaPFPhi(), and getDeltaTCPhi().

void PFMETBenchmark::process ( const reco::PFMETCollection pfMets,
const reco::GenParticleCollection genParticleList,
const reco::CaloMETCollection caloMets,
const reco::METCollection tcMets 
)

Definition at line 193 of file PFMETBenchmark.cc.

Referenced by PFMETBenchmarkAnalyzer::analyze().

void PFMETBenchmark::setup ( std::string  Filename,
bool  debug,
bool  plotAgainstReco = 0,
std::string  benchmarkLabel_ = "ParticleFlow",
DQMStore dbe_store = NULL 
)

Definition at line 53 of file PFMETBenchmark.cc.

Referenced by PFMETBenchmarkAnalyzer::PFMETBenchmarkAnalyzer().

void PFMETBenchmark::write ( )

Definition at line 36 of file PFMETBenchmark.cc.

Referenced by PFMETBenchmarkAnalyzer::endJob().

Member Data Documentation

PFBenchmarkAlgo* PFMETBenchmark::algo_
protected

Definition at line 178 of file PFMETBenchmark.h.

double PFMETBenchmark::calo_met
private

Definition at line 165 of file PFMETBenchmark.h.

Referenced by getCaloMET(), and getDeltaCaloMET().

double PFMETBenchmark::calo_mex
private

Definition at line 166 of file PFMETBenchmark.h.

Referenced by getCaloMEX().

double PFMETBenchmark::calo_mey
private

Definition at line 167 of file PFMETBenchmark.h.

Referenced by getCaloMEY().

double PFMETBenchmark::calo_phi
private

Definition at line 168 of file PFMETBenchmark.h.

Referenced by getCaloPhi(), and getDeltaCaloPhi().

double PFMETBenchmark::calo_set
private

Definition at line 169 of file PFMETBenchmark.h.

Referenced by getCaloSET(), and getDeltaCaloSET().

DQMStore* PFMETBenchmark::dbe_
protected

Definition at line 181 of file PFMETBenchmark.h.

bool PFMETBenchmark::debug_
protected

Definition at line 179 of file PFMETBenchmark.h.

TFile* PFMETBenchmark::file_
private

Definition at line 94 of file PFMETBenchmark.h.

TH1F* PFMETBenchmark::hCaloMET
private

Definition at line 117 of file PFMETBenchmark.h.

TH2F* PFMETBenchmark::hCaloMETvstrueMET
private

Definition at line 112 of file PFMETBenchmark.h.

TH1F* PFMETBenchmark::hCaloMEX
private

Definition at line 127 of file PFMETBenchmark.h.

TH2F* PFMETBenchmark::hCaloSETvsDeltaCaloMET
private

Definition at line 126 of file PFMETBenchmark.h.

TH2F* PFMETBenchmark::hCaloSETvsDeltaCaloSET
private

Definition at line 125 of file PFMETBenchmark.h.

TH1F* PFMETBenchmark::hDeltaCaloMET
private

Definition at line 129 of file PFMETBenchmark.h.

TH2F* PFMETBenchmark::hDeltaCaloMETvstrueMET
private

Definition at line 109 of file PFMETBenchmark.h.

TH1F* PFMETBenchmark::hDeltaCaloMEX
private

Definition at line 128 of file PFMETBenchmark.h.

TH2F* PFMETBenchmark::hDeltaCaloMEXvstrueSET
private

Definition at line 114 of file PFMETBenchmark.h.

TH1F* PFMETBenchmark::hDeltaCaloPhi
private

Definition at line 130 of file PFMETBenchmark.h.

TH2F* PFMETBenchmark::hDeltaCaloPhivstrueMET
private

Definition at line 111 of file PFMETBenchmark.h.

TH1F* PFMETBenchmark::hDeltaCaloSET
private

Definition at line 131 of file PFMETBenchmark.h.

TH1F* PFMETBenchmark::hDeltaMET
private

Definition at line 104 of file PFMETBenchmark.h.

TH1F* PFMETBenchmark::hDeltaMEX
private

Definition at line 103 of file PFMETBenchmark.h.

TH2F* PFMETBenchmark::hDeltaPFMETvstrueMET
private

Definition at line 108 of file PFMETBenchmark.h.

TH2F* PFMETBenchmark::hDeltaPFMEXvstrueSET
private

Definition at line 115 of file PFMETBenchmark.h.

TH2F* PFMETBenchmark::hDeltaPFPhivstrueMET
private

Definition at line 110 of file PFMETBenchmark.h.

TH1F* PFMETBenchmark::hDeltaPhi
private

Definition at line 105 of file PFMETBenchmark.h.

TH1F* PFMETBenchmark::hDeltaSET
private

Definition at line 106 of file PFMETBenchmark.h.

TH1F* PFMETBenchmark::hDeltaTCMET
private

Definition at line 139 of file PFMETBenchmark.h.

TH2F* PFMETBenchmark::hDeltaTCMETvstrueMET
private

Definition at line 120 of file PFMETBenchmark.h.

TH1F* PFMETBenchmark::hDeltaTCMEX
private

Definition at line 138 of file PFMETBenchmark.h.

TH2F* PFMETBenchmark::hDeltaTCMEXvstrueSET
private

Definition at line 143 of file PFMETBenchmark.h.

TH1F* PFMETBenchmark::hDeltaTCPhi
private

Definition at line 140 of file PFMETBenchmark.h.

TH2F* PFMETBenchmark::hDeltaTCPhivstrueMET
private

Definition at line 121 of file PFMETBenchmark.h.

TH1F* PFMETBenchmark::hDeltaTCSET
private

Definition at line 141 of file PFMETBenchmark.h.

TH1F* PFMETBenchmark::hMEX
private

Definition at line 102 of file PFMETBenchmark.h.

TH1F* PFMETBenchmark::hPFMET
private

Definition at line 118 of file PFMETBenchmark.h.

TH2F* PFMETBenchmark::hPFMETvstrueMET
private

Definition at line 113 of file PFMETBenchmark.h.

TH2F* PFMETBenchmark::hSETvsDeltaMET
private

Definition at line 101 of file PFMETBenchmark.h.

TH2F* PFMETBenchmark::hSETvsDeltaSET
private

Definition at line 100 of file PFMETBenchmark.h.

TH1F* PFMETBenchmark::hTCMET
private

Definition at line 119 of file PFMETBenchmark.h.

TH2F* PFMETBenchmark::hTCMETvstrueMET
private

Definition at line 144 of file PFMETBenchmark.h.

TH1F* PFMETBenchmark::hTCMEX
private

Definition at line 137 of file PFMETBenchmark.h.

TH2F* PFMETBenchmark::hTCSETvsDeltaTCMET
private

Definition at line 136 of file PFMETBenchmark.h.

TH2F* PFMETBenchmark::hTCSETvsDeltaTCSET
private

Definition at line 135 of file PFMETBenchmark.h.

TH1F* PFMETBenchmark::hTrueMET
private

Definition at line 116 of file PFMETBenchmark.h.

std::string PFMETBenchmark::outputFile_
private

Definition at line 153 of file PFMETBenchmark.h.

bool PFMETBenchmark::plotAgainstReco_
protected

Definition at line 180 of file PFMETBenchmark.h.

TProfile* PFMETBenchmark::profileCaloMETvsCaloMETresp
private

Definition at line 124 of file PFMETBenchmark.h.

TProfile* PFMETBenchmark::profileCaloSETvsCaloSETresp
private

Definition at line 123 of file PFMETBenchmark.h.

TProfile* PFMETBenchmark::profileMETvsMETresp
private

Definition at line 99 of file PFMETBenchmark.h.

TProfile* PFMETBenchmark::profileSETvsSETresp
private

Definition at line 98 of file PFMETBenchmark.h.

TProfile* PFMETBenchmark::profileTCMETvsTCMETresp
private

Definition at line 134 of file PFMETBenchmark.h.

TProfile* PFMETBenchmark::profileTCSETvsTCSETresp
private

Definition at line 133 of file PFMETBenchmark.h.

double PFMETBenchmark::rec_met
private

Definition at line 160 of file PFMETBenchmark.h.

Referenced by getDeltaPFMET(), and getPFMET().

double PFMETBenchmark::rec_mex
private

Definition at line 161 of file PFMETBenchmark.h.

Referenced by getPFMEX().

double PFMETBenchmark::rec_mey
private

Definition at line 162 of file PFMETBenchmark.h.

Referenced by getPFMEY().

double PFMETBenchmark::rec_phi
private

Definition at line 163 of file PFMETBenchmark.h.

Referenced by getDeltaPFPhi(), and getPFPhi().

double PFMETBenchmark::rec_set
private

Definition at line 164 of file PFMETBenchmark.h.

Referenced by getDeltaPFSET(), and getPFSET().

double PFMETBenchmark::tc_met
private

Definition at line 170 of file PFMETBenchmark.h.

Referenced by getDeltaTCMET(), and getTCMET().

double PFMETBenchmark::tc_mex
private

Definition at line 171 of file PFMETBenchmark.h.

Referenced by getTCMEX().

double PFMETBenchmark::tc_mey
private

Definition at line 172 of file PFMETBenchmark.h.

Referenced by getTCMEY().

double PFMETBenchmark::tc_phi
private

Definition at line 173 of file PFMETBenchmark.h.

Referenced by getDeltaTCPhi(), and getTCPhi().

double PFMETBenchmark::tc_set
private

Definition at line 174 of file PFMETBenchmark.h.

Referenced by getDeltaTCSET(), and getTCSET().

double PFMETBenchmark::true_met
private

Definition at line 156 of file PFMETBenchmark.h.

Referenced by getDeltaCaloMET(), getDeltaPFMET(), getDeltaTCMET(), and getTrueMET().

double PFMETBenchmark::true_mex
private

Definition at line 157 of file PFMETBenchmark.h.

Referenced by getCaloMEX(), getPFMEX(), and getTCMEX().

double PFMETBenchmark::true_mey
private

Definition at line 158 of file PFMETBenchmark.h.

Referenced by getCaloMEY(), getPFMEY(), and getTCMEY().

double PFMETBenchmark::true_phi
private

Definition at line 159 of file PFMETBenchmark.h.

Referenced by getDeltaCaloPhi(), getDeltaPFPhi(), getDeltaTCPhi(), and getTruePhi().

double PFMETBenchmark::true_set
private

Definition at line 155 of file PFMETBenchmark.h.

Referenced by getDeltaCaloSET(), getDeltaPFSET(), getDeltaTCSET(), and getTrueSET().