CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Member Functions | Private Attributes
JetCorrectorDemo Class Reference
Inheritance diagram for JetCorrectorDemo:
edm::EDAnalyzer edm::EDConsumerBase

Public Types

typedef reco::Particle::LorentzVector LorentzVector
 
- Public Types inherited from edm::EDAnalyzer
typedef EDAnalyzer ModuleType
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 

Public Member Functions

 JetCorrectorDemo (const edm::ParameterSet &)
 
 ~JetCorrectorDemo () override
 
- Public Member Functions inherited from edm::EDAnalyzer
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzer ()
 
SerialTaskQueueglobalLuminosityBlocksQueue ()
 
SerialTaskQueueglobalRunsQueue ()
 
ModuleDescription const & moduleDescription () const
 
std::string workerType () const
 
 ~EDAnalyzer () override
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
void convertCurrentProcessAlias (std::string const &processName)
 Convert "@currentProcess" in InputTag process names to the actual current process name. More...
 
 EDConsumerBase ()
 
 EDConsumerBase (EDConsumerBase &&)=default
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
ESProxyIndex const * esGetTokenIndices (edm::Transition iTrans) const
 
ProductResolverIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
std::vector< ProductResolverIndexAndSkipBit > const & itemsToGetFrom (BranchType iType) const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
bool registeredToConsume (ProductResolverIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
ProductResolverIndexAndSkipBit uncheckedIndexFrom (EDGetToken) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
void updateLookup (eventsetup::ESRecordsToProxyIndices const &)
 
virtual ~EDConsumerBase () noexcept(false)
 

Private Member Functions

void analyze (const edm::Event &, const edm::EventSetup &) override
 
void beginJob () override
 
void endJob () override
 

Private Attributes

edm::Service< TFileServicefs
 
bool mDebug
 
double mEtaMax
 
double mEtaMin
 
TH2F * mJECvsEta
 
TH2F * mJECvsPt
 
edm::EDGetTokenT< reco::JetCorrectormJetCorrector
 
int mNGraphPoints
 
int mNHistoPoints
 
std::string mPayloadName
 
double mPtMax
 
double mPtMin
 
TRandom * mRandom
 
TGraph * mUncCorPt [100]
 
std::string mUncertaintyFile
 
std::string mUncertaintyTag
 
TGraph * mUncEta [100]
 
bool mUseCondDB
 
std::vector< double > mVEta
 
TGraphErrors * mVGraphCorPt [100]
 
TGraphErrors * mVGraphEta [100]
 
TGraphErrors * mVGraphPt [100]
 
std::vector< double > mVPt
 
double veta [100][1000]
 
double vex_eta [100][1000]
 
double vex_pt [100][1000]
 
double vjec_eta [100][1000]
 
double vjec_pt [100][1000]
 
double vjecUnc_eta [100][1000]
 
double vjecUnc_pt [100][1000]
 
double vpt [100][1000]
 
double vptcor [100][1000]
 
double vUnc_eta [100][1000]
 
double vUnc_pt [100][1000]
 

Additional Inherited Members

- Static Public Member Functions inherited from edm::EDAnalyzer
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &)
 
static bool wantsGlobalLuminosityBlocks ()
 
static bool wantsGlobalRuns ()
 
static bool wantsStreamLuminosityBlocks ()
 
static bool wantsStreamRuns ()
 
- Protected Member Functions inherited from edm::EDConsumerBase
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken consumes (TypeToGet const &id, edm::InputTag const &tag)
 
ConsumesCollector consumesCollector ()
 Use a ConsumesCollector to gather consumes information from helper functions. More...
 
template<typename ProductType , BranchType B = InEvent>
void consumesMany ()
 
void consumesMany (const TypeToGet &id)
 
template<BranchType B>
void consumesMany (const TypeToGet &id)
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes ()
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes (ESInputTag const &tag)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 

Detailed Description

Definition at line 28 of file JetCorrectorDemo.cc.

Member Typedef Documentation

◆ LorentzVector

Definition at line 32 of file JetCorrectorDemo.cc.

Constructor & Destructor Documentation

◆ JetCorrectorDemo()

JetCorrectorDemo::JetCorrectorDemo ( const edm::ParameterSet iConfig)
explicit

Definition at line 58 of file JetCorrectorDemo.cc.

58  {
59  mJetCorrector = consumes<reco::JetCorrector>(iConfig.getParameter<edm::InputTag>("JetCorrector"));
60  mPayloadName = iConfig.getParameter<std::string>("PayloadName");
61  mUncertaintyTag = iConfig.getParameter<std::string>("UncertaintyTag");
62  mUncertaintyFile = iConfig.getParameter<std::string>("UncertaintyFile");
63  mNHistoPoints = iConfig.getParameter<int>("NHistoPoints");
64  mNGraphPoints = iConfig.getParameter<int>("NGraphPoints");
65  mEtaMin = iConfig.getParameter<double>("EtaMin");
66  mEtaMax = iConfig.getParameter<double>("EtaMax");
67  mPtMin = iConfig.getParameter<double>("PtMin");
68  mPtMax = iConfig.getParameter<double>("PtMax");
69  mVEta = iConfig.getParameter<std::vector<double> >("VEta");
70  mVPt = iConfig.getParameter<std::vector<double> >("VPt");
71  mDebug = iConfig.getUntrackedParameter<bool>("Debug", false);
72  mUseCondDB = iConfig.getUntrackedParameter<bool>("UseCondDB", false);
73 }

References edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), mDebug, mEtaMax, mEtaMin, mJetCorrector, mNGraphPoints, mNHistoPoints, mPayloadName, mPtMax, mPtMin, mUncertaintyFile, mUncertaintyTag, mUseCondDB, mVEta, mVPt, and AlCaHLTBitMon_QueryRunRegistry::string.

◆ ~JetCorrectorDemo()

JetCorrectorDemo::~JetCorrectorDemo ( )
override

Definition at line 75 of file JetCorrectorDemo.cc.

75 {}

Member Function Documentation

◆ analyze()

void JetCorrectorDemo::analyze ( const edm::Event iEvent,
const edm::EventSetup iSetup 
)
overrideprivatevirtual

Implements edm::EDAnalyzer.

Definition at line 77 of file JetCorrectorDemo.cc.

77  {
79  iEvent.getByToken(mJetCorrector, corrector);
80  JetCorrectionUncertainty *jecUnc(nullptr);
81  if (!mUncertaintyTag.empty()) {
82  if (mUseCondDB) {
84  iSetup.get<JetCorrectionsRecord>().get(mPayloadName, JetCorParColl);
85  JetCorrectorParameters const &JetCorPar = (*JetCorParColl)[mUncertaintyTag];
86  jecUnc = new JetCorrectionUncertainty(JetCorPar);
87  std::cout << "Configured Uncertainty from CondDB" << std::endl;
88  } else {
89  edm::FileInPath fip("CondFormats/JetMETObjects/data/" + mUncertaintyFile + ".txt");
90  jecUnc = new JetCorrectionUncertainty(fip.fullPath());
91  }
92  }
93  double jec, rawPt, corPt, eta, unc;
94  TLorentzVector P4;
95  double dEta = (mEtaMax - mEtaMin) / mNGraphPoints;
96  for (int i = 0; i < mNHistoPoints; i++) {
97  rawPt = mRandom->Uniform(mPtMin, mPtMax);
98  eta = mRandom->Uniform(mEtaMin, mEtaMax);
99  P4.SetPtEtaPhiE(rawPt, eta, 0, 0);
100  LorentzVector rawP4(P4.Px(), P4.Py(), P4.Pz(), P4.E());
101  jec = corrector->correction(rawP4);
102  mJECvsEta->Fill(eta, jec);
103  mJECvsPt->Fill(rawPt, jec);
104  }
105  //--------- Pt Graphs ------------------
106  for (unsigned ieta = 0; ieta < mVEta.size(); ieta++) {
107  double rPt = pow((3500. / TMath::CosH(mVEta[ieta])) / mPtMin, 1. / mNGraphPoints);
108  for (int i = 0; i < mNGraphPoints; i++) {
109  rawPt = mPtMin * pow(rPt, i);
110  eta = mVEta[ieta];
111  vpt[ieta][i] = rawPt;
112  P4.SetPtEtaPhiE(rawPt, eta, 0, 0);
113  LorentzVector rawP4(P4.Px(), P4.Py(), P4.Pz(), P4.E());
114  jec = corrector->correction(rawP4); // the jec is a function of the raw pt
115  vjec_eta[ieta][i] = jec;
116  vptcor[ieta][i] = rawPt * jec;
117  unc = 0.0;
118  if (!mUncertaintyTag.empty()) {
119  jecUnc->setJetEta(eta);
120  jecUnc->setJetPt(rawPt * jec); // the uncertainty is a function of the corrected pt
121  unc = jecUnc->getUncertainty(true);
122  }
123  vjecUnc_eta[ieta][i] = unc * jec;
124  vUnc_eta[ieta][i] = unc;
125  vex_eta[ieta][i] = 0.0;
126  if (mDebug)
127  std::cout << rawPt << " " << eta << " " << jec << " " << rawPt * jec << " " << unc << std::endl;
128  }
129  }
130  //--------- Eta Graphs -------------------
131  for (unsigned ipt = 0; ipt < mVPt.size(); ipt++) {
132  for (int i = 0; i < mNGraphPoints; i++) {
133  eta = mEtaMin + i * dEta;
134  corPt = mVPt[ipt];
135  veta[ipt][i] = eta;
136  //---------- find the raw pt -----------
137  double e = 1.0;
138  int nLoop(0);
139  rawPt = corPt;
140  while (e > 0.0001 && nLoop < 10) {
141  P4.SetPtEtaPhiE(rawPt, eta, 0, 0);
142  LorentzVector rawP4(P4.Px(), P4.Py(), P4.Pz(), P4.E());
143  jec = corrector->correction(rawP4);
144  double tmp = rawPt * jec;
145  e = fabs(tmp - corPt) / corPt;
146  if (jec > 0)
147  rawPt = corPt / jec;
148  nLoop++;
149  }
150  //--------- calculate the jec for the rawPt --------
151  P4.SetPtEtaPhiE(rawPt, eta, 0, 0);
152  LorentzVector rawP4(P4.Px(), P4.Py(), P4.Pz(), P4.E());
153  jec = corrector->correction(rawP4); // the jec is a function of the raw pt
154  vjec_pt[ipt][i] = jec;
155  unc = 0.0;
156  if (!mUncertaintyTag.empty()) {
157  jecUnc->setJetEta(eta);
158  jecUnc->setJetPt(corPt); // the uncertainty is a function of the corrected pt
159  unc = jecUnc->getUncertainty(true);
160  }
161  vjecUnc_pt[ipt][i] = unc * jec;
162  vUnc_pt[ipt][i] = unc;
163  vex_pt[ipt][i] = 0.0;
164  if (mDebug)
165  std::cout << rawPt << " " << eta << " " << jec << " " << rawPt * jec << " " << unc << std::endl;
166  }
167  }
168 }

References pfClustersFromHGC3DClusters_cfi::corrector, gather_cfg::cout, HLT_2018_cff::dEta, MillePedeFileConverter_cfg::e, PVValHelper::eta, edm::FileInPath::fullPath(), edm::EventSetup::get(), get, JetCorrectionUncertainty::getUncertainty(), mps_fire::i, LEDCalibrationChannels::ieta, iEvent, jetMETDQMOfflineSource_cff::jec, mDebug, mEtaMax, mEtaMin, mJECvsEta, mJECvsPt, mJetCorrector, mNGraphPoints, mNHistoPoints, mPayloadName, mPtMax, mPtMin, mRandom, mUncertaintyFile, mUncertaintyTag, mUseCondDB, mVEta, mVPt, funct::pow(), jets_cff::rawPt, JetCorrectionUncertainty::setJetEta(), JetCorrectionUncertainty::setJetPt(), createJobs::tmp, veta, vex_eta, vex_pt, vjec_eta, vjec_pt, vjecUnc_eta, vjecUnc_pt, vpt, vptcor, vUnc_eta, and vUnc_pt.

◆ beginJob()

void JetCorrectorDemo::beginJob ( void  )
overrideprivatevirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 170 of file JetCorrectorDemo.cc.

170  {
171  if (mNGraphPoints > 1000)
172  throw cms::Exception("JetCorrectorDemo", "Too many graph points !!! Maximum is 1000 !!!");
173  if (mVEta.size() > 100)
174  throw cms::Exception("JetCorrectorDemo", "Too many eta values !!! Maximum is 100 !!!");
175  if (mVPt.size() > 100)
176  throw cms::Exception("JetCorrectorDemo", "Too many pt values !!! Maximum is 100 !!!");
177  mJECvsEta = fs->make<TH2F>("JECvsEta", "JECvsEta", 200, mEtaMin, mEtaMax, 100, 0, 5);
178  mJECvsPt = fs->make<TH2F>("JECvsPt", "JECvsPt", 200, mPtMin, mPtMax, 100, 0, 5);
179  mRandom = new TRandom();
180  mRandom->SetSeed(0);
181 }

References Exception, fs, TFileService::make(), mEtaMax, mEtaMin, mJECvsEta, mJECvsPt, mNGraphPoints, mPtMax, mPtMin, mRandom, mVEta, and mVPt.

◆ endJob()

void JetCorrectorDemo::endJob ( void  )
overrideprivatevirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 183 of file JetCorrectorDemo.cc.

183  {
184  char name[1000];
185  for (unsigned ipt = 0; ipt < mVPt.size(); ipt++) {
186  mVGraphEta[ipt] = fs->make<TGraphErrors>(mNGraphPoints, veta[ipt], vjec_pt[ipt], vex_pt[ipt], vjecUnc_pt[ipt]);
187  sprintf(name, "JEC_vs_Eta_CorPt%1.1f", mVPt[ipt]);
188  mVGraphEta[ipt]->SetName(name);
189  mUncEta[ipt] = fs->make<TGraph>(mNGraphPoints, veta[ipt], vUnc_pt[ipt]);
190  sprintf(name, "UNC_vs_Eta_CorPt%1.1f", mVPt[ipt]);
191  mUncEta[ipt]->SetName(name);
192  }
193  for (unsigned ieta = 0; ieta < mVEta.size(); ieta++) {
194  mVGraphPt[ieta] =
196  sprintf(name, "JEC_vs_RawPt_eta%1.1f", mVEta[ieta]);
197  mVGraphPt[ieta]->SetName(name);
198  mVGraphCorPt[ieta] =
200  sprintf(name, "JEC_vs_CorPt_eta%1.1f", mVEta[ieta]);
201  mVGraphCorPt[ieta]->SetName(name);
203  sprintf(name, "UNC_vs_CorPt_eta%1.1f", mVEta[ieta]);
204  mUncCorPt[ieta]->SetName(name);
205  }
206 }

References fs, LEDCalibrationChannels::ieta, TFileService::make(), mNGraphPoints, mUncCorPt, mUncEta, mVEta, mVGraphCorPt, mVGraphEta, mVGraphPt, mVPt, Skims_PA_cff::name, veta, vex_eta, vex_pt, vjec_eta, vjec_pt, vjecUnc_eta, vjecUnc_pt, vpt, vptcor, vUnc_eta, and vUnc_pt.

Member Data Documentation

◆ fs

edm::Service<TFileService> JetCorrectorDemo::fs
private

Definition at line 48 of file JetCorrectorDemo.cc.

Referenced by beginJob(), and endJob().

◆ mDebug

bool JetCorrectorDemo::mDebug
private

Definition at line 41 of file JetCorrectorDemo.cc.

Referenced by analyze(), and JetCorrectorDemo().

◆ mEtaMax

double JetCorrectorDemo::mEtaMax
private

Definition at line 43 of file JetCorrectorDemo.cc.

Referenced by analyze(), beginJob(), and JetCorrectorDemo().

◆ mEtaMin

double JetCorrectorDemo::mEtaMin
private

Definition at line 43 of file JetCorrectorDemo.cc.

Referenced by analyze(), beginJob(), and JetCorrectorDemo().

◆ mJECvsEta

TH2F* JetCorrectorDemo::mJECvsEta
private

Definition at line 49 of file JetCorrectorDemo.cc.

Referenced by analyze(), and beginJob().

◆ mJECvsPt

TH2F * JetCorrectorDemo::mJECvsPt
private

Definition at line 49 of file JetCorrectorDemo.cc.

Referenced by analyze(), and beginJob().

◆ mJetCorrector

edm::EDGetTokenT<reco::JetCorrector> JetCorrectorDemo::mJetCorrector
private

Definition at line 39 of file JetCorrectorDemo.cc.

Referenced by analyze(), and JetCorrectorDemo().

◆ mNGraphPoints

int JetCorrectorDemo::mNGraphPoints
private

Definition at line 42 of file JetCorrectorDemo.cc.

Referenced by analyze(), beginJob(), endJob(), and JetCorrectorDemo().

◆ mNHistoPoints

int JetCorrectorDemo::mNHistoPoints
private

Definition at line 42 of file JetCorrectorDemo.cc.

Referenced by analyze(), and JetCorrectorDemo().

◆ mPayloadName

std::string JetCorrectorDemo::mPayloadName
private

Definition at line 40 of file JetCorrectorDemo.cc.

Referenced by analyze(), and JetCorrectorDemo().

◆ mPtMax

double JetCorrectorDemo::mPtMax
private

Definition at line 43 of file JetCorrectorDemo.cc.

Referenced by analyze(), beginJob(), and JetCorrectorDemo().

◆ mPtMin

double JetCorrectorDemo::mPtMin
private

Definition at line 43 of file JetCorrectorDemo.cc.

Referenced by analyze(), beginJob(), and JetCorrectorDemo().

◆ mRandom

TRandom* JetCorrectorDemo::mRandom
private

Definition at line 52 of file JetCorrectorDemo.cc.

Referenced by analyze(), and beginJob().

◆ mUncCorPt

TGraph * JetCorrectorDemo::mUncCorPt[100]
private

Definition at line 51 of file JetCorrectorDemo.cc.

Referenced by endJob().

◆ mUncertaintyFile

std::string JetCorrectorDemo::mUncertaintyFile
private

Definition at line 40 of file JetCorrectorDemo.cc.

Referenced by analyze(), and JetCorrectorDemo().

◆ mUncertaintyTag

std::string JetCorrectorDemo::mUncertaintyTag
private

Definition at line 40 of file JetCorrectorDemo.cc.

Referenced by analyze(), and JetCorrectorDemo().

◆ mUncEta

TGraph* JetCorrectorDemo::mUncEta[100]
private

Definition at line 51 of file JetCorrectorDemo.cc.

Referenced by endJob().

◆ mUseCondDB

bool JetCorrectorDemo::mUseCondDB
private

Definition at line 41 of file JetCorrectorDemo.cc.

Referenced by analyze(), and JetCorrectorDemo().

◆ mVEta

std::vector<double> JetCorrectorDemo::mVEta
private

Definition at line 44 of file JetCorrectorDemo.cc.

Referenced by analyze(), beginJob(), endJob(), and JetCorrectorDemo().

◆ mVGraphCorPt

TGraphErrors * JetCorrectorDemo::mVGraphCorPt[100]
private

Definition at line 50 of file JetCorrectorDemo.cc.

Referenced by endJob().

◆ mVGraphEta

TGraphErrors* JetCorrectorDemo::mVGraphEta[100]
private

Definition at line 50 of file JetCorrectorDemo.cc.

Referenced by endJob().

◆ mVGraphPt

TGraphErrors * JetCorrectorDemo::mVGraphPt[100]
private

Definition at line 50 of file JetCorrectorDemo.cc.

Referenced by endJob().

◆ mVPt

std::vector<double> JetCorrectorDemo::mVPt
private

Definition at line 44 of file JetCorrectorDemo.cc.

Referenced by analyze(), beginJob(), endJob(), and JetCorrectorDemo().

◆ veta

double JetCorrectorDemo::veta[100][1000]
private

Definition at line 45 of file JetCorrectorDemo.cc.

Referenced by analyze(), and endJob().

◆ vex_eta

double JetCorrectorDemo::vex_eta[100][1000]
private

Definition at line 46 of file JetCorrectorDemo.cc.

Referenced by analyze(), and endJob().

◆ vex_pt

double JetCorrectorDemo::vex_pt[100][1000]
private

Definition at line 46 of file JetCorrectorDemo.cc.

Referenced by analyze(), and endJob().

◆ vjec_eta

double JetCorrectorDemo::vjec_eta[100][1000]
private

Definition at line 45 of file JetCorrectorDemo.cc.

Referenced by analyze(), and endJob().

◆ vjec_pt

double JetCorrectorDemo::vjec_pt[100][1000]
private

Definition at line 45 of file JetCorrectorDemo.cc.

Referenced by analyze(), and endJob().

◆ vjecUnc_eta

double JetCorrectorDemo::vjecUnc_eta[100][1000]
private

Definition at line 46 of file JetCorrectorDemo.cc.

Referenced by analyze(), and endJob().

◆ vjecUnc_pt

double JetCorrectorDemo::vjecUnc_pt[100][1000]
private

Definition at line 46 of file JetCorrectorDemo.cc.

Referenced by analyze(), and endJob().

◆ vpt

double JetCorrectorDemo::vpt[100][1000]
private

Definition at line 45 of file JetCorrectorDemo.cc.

Referenced by analyze(), and endJob().

◆ vptcor

double JetCorrectorDemo::vptcor[100][1000]
private

Definition at line 45 of file JetCorrectorDemo.cc.

Referenced by analyze(), and endJob().

◆ vUnc_eta

double JetCorrectorDemo::vUnc_eta[100][1000]
private

Definition at line 46 of file JetCorrectorDemo.cc.

Referenced by analyze(), and endJob().

◆ vUnc_pt

double JetCorrectorDemo::vUnc_pt[100][1000]
private

Definition at line 46 of file JetCorrectorDemo.cc.

Referenced by analyze(), and endJob().

JetCorrectorDemo::vpt
double vpt[100][1000]
Definition: JetCorrectorDemo.cc:45
JetCorrectorDemo::vex_eta
double vex_eta[100][1000]
Definition: JetCorrectorDemo.cc:46
mps_fire.i
i
Definition: mps_fire.py:355
JetCorrectorDemo::mNHistoPoints
int mNHistoPoints
Definition: JetCorrectorDemo.cc:42
gather_cfg.cout
cout
Definition: gather_cfg.py:144
JetCorrectorDemo::mJECvsPt
TH2F * mJECvsPt
Definition: JetCorrectorDemo.cc:49
JetCorrectorDemo::mPayloadName
std::string mPayloadName
Definition: JetCorrectorDemo.cc:40
JetCorrectorDemo::mUncertaintyFile
std::string mUncertaintyFile
Definition: JetCorrectorDemo.cc:40
JetCorrectorDemo::mVGraphPt
TGraphErrors * mVGraphPt[100]
Definition: JetCorrectorDemo.cc:50
edm::ParameterSet::getUntrackedParameter
T getUntrackedParameter(std::string const &, T const &) const
createJobs.tmp
tmp
align.sh
Definition: createJobs.py:716
JetCorrectorDemo::vUnc_eta
double vUnc_eta[100][1000]
Definition: JetCorrectorDemo.cc:46
edm::Handle< reco::JetCorrector >
HLT_2018_cff.dEta
dEta
Definition: HLT_2018_cff.py:12289
JetCorrectorDemo::vjec_pt
double vjec_pt[100][1000]
Definition: JetCorrectorDemo.cc:45
pfClustersFromHGC3DClusters_cfi.corrector
corrector
Definition: pfClustersFromHGC3DClusters_cfi.py:4
edm::FileInPath
Definition: FileInPath.h:64
JetCorrectorDemo::fs
edm::Service< TFileService > fs
Definition: JetCorrectorDemo.cc:48
JetCorrectorDemo::mPtMin
double mPtMin
Definition: JetCorrectorDemo.cc:43
edm::EventSetup::get
T get() const
Definition: EventSetup.h:73
JetCorrectorDemo::mDebug
bool mDebug
Definition: JetCorrectorDemo.cc:41
PVValHelper::eta
Definition: PVValidationHelpers.h:69
JetCorrectorDemo::mJECvsEta
TH2F * mJECvsEta
Definition: JetCorrectorDemo.cc:49
edm::ESHandle
Definition: DTSurvey.h:22
JetCorrectionsRecord
Definition: JetCorrectionsRecord.h:11
JetCorrectorDemo::mUncertaintyTag
std::string mUncertaintyTag
Definition: JetCorrectorDemo.cc:40
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
LEDCalibrationChannels.ieta
ieta
Definition: LEDCalibrationChannels.py:63
JetCorrectorDemo::veta
double veta[100][1000]
Definition: JetCorrectorDemo.cc:45
JetCorrectorDemo::mUncCorPt
TGraph * mUncCorPt[100]
Definition: JetCorrectorDemo.cc:51
JetCorrectorDemo::mVPt
std::vector< double > mVPt
Definition: JetCorrectorDemo.cc:44
JetCorrectorDemo::mRandom
TRandom * mRandom
Definition: JetCorrectorDemo.cc:52
jets_cff.rawPt
rawPt
Definition: jets_cff.py:513
iEvent
int iEvent
Definition: GenABIO.cc:224
JetCorrectorDemo::mPtMax
double mPtMax
Definition: JetCorrectorDemo.cc:43
JetCorrectorDemo::mVGraphCorPt
TGraphErrors * mVGraphCorPt[100]
Definition: JetCorrectorDemo.cc:50
JetCorrectorDemo::vjec_eta
double vjec_eta[100][1000]
Definition: JetCorrectorDemo.cc:45
get
#define get
JetCorrectionUncertainty
Definition: JetCorrectionUncertainty.h:11
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
JetCorrectorDemo::mVGraphEta
TGraphErrors * mVGraphEta[100]
Definition: JetCorrectorDemo.cc:50
JetCorrectorDemo::mEtaMax
double mEtaMax
Definition: JetCorrectorDemo.cc:43
JetCorrectorDemo::mJetCorrector
edm::EDGetTokenT< reco::JetCorrector > mJetCorrector
Definition: JetCorrectorDemo.cc:39
JetCorrectorDemo::mUncEta
TGraph * mUncEta[100]
Definition: JetCorrectorDemo.cc:51
LorentzVector
math::XYZTLorentzVector LorentzVector
Definition: HLTMuonMatchAndPlot.h:49
Exception
Definition: hltDiff.cc:246
JetCorrectorDemo::mUseCondDB
bool mUseCondDB
Definition: JetCorrectorDemo.cc:41
JetCorrectorParameters
Definition: JetCorrectorParameters.h:25
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
JetCorrectorDemo::vjecUnc_pt
double vjecUnc_pt[100][1000]
Definition: JetCorrectorDemo.cc:46
JetCorrectorDemo::vjecUnc_eta
double vjecUnc_eta[100][1000]
Definition: JetCorrectorDemo.cc:46
JetCorrectorDemo::vex_pt
double vex_pt[100][1000]
Definition: JetCorrectorDemo.cc:46
jetMETDQMOfflineSource_cff.jec
jec
Definition: jetMETDQMOfflineSource_cff.py:27
funct::pow
Power< A, B >::type pow(const A &a, const B &b)
Definition: Power.h:30
cms::Exception
Definition: Exception.h:70
JetCorrectorDemo::vUnc_pt
double vUnc_pt[100][1000]
Definition: JetCorrectorDemo.cc:46
JetCorrectorDemo::mVEta
std::vector< double > mVEta
Definition: JetCorrectorDemo.cc:44
JetCorrectorDemo::vptcor
double vptcor[100][1000]
Definition: JetCorrectorDemo.cc:45
JetCorrectorDemo::mEtaMin
double mEtaMin
Definition: JetCorrectorDemo.cc:43
edm::InputTag
Definition: InputTag.h:15
TFileService::make
T * make(const Args &... args) const
make new ROOT object
Definition: TFileService.h:64
JetCorrectorDemo::mNGraphPoints
int mNGraphPoints
Definition: JetCorrectorDemo.cc:42
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37