ATLAS Offline Software
Loading...
Searching...
No Matches
testMomentumSystematics.cxx File Reference
#include <ElectronPhotonFourMomentumCorrection/egammaEnergyCorrectionTool.h>
#include "TProfile.h"
#include "TCanvas.h"
#include "TH1D.h"
#include <iostream>
Include dependency graph for testMomentumSystematics.cxx:

Go to the source code of this file.

Functions

int main ()

Function Documentation

◆ main()

int main ( )

Definition at line 12 of file testMomentumSystematics.cxx.

12 {
13
16 ect12c.initialize();
17
18 TH1D h2012cNom("h2012cNom","h2012cNom",500,-5,5);
19 TH1D h2012cUp("h2012cUp","h2012cUp",500,-5,5);
20 TH1D h2012cDown("h2012cDown","h2012cDown",500,-5,5);
21
22 for(int i=1; i<=h2012cNom.GetNbinsX(); i++) {
23
24 double eta = h2012cNom.GetBinCenter(i);
25 double pIn = 40000.;
26
27 // es2012c
28
31 pIn,
32 eta,
34
37 pIn,
38 eta,
40
43 pIn,
44 eta,
46
47 std::cout << eta << " " << (pNom-pIn)/pIn << " " << (pUp-pIn)/pIn << " " << (pDown-pIn)/pIn
48 << " " << pIn << " " << pNom << " " << pUp << " " << pDown << std::endl;
49
50 }
51
52 return 0;
53}
Scalar eta() const
pseudorapidity method
double getCorrectedMomentum(PATCore::ParticleDataType::DataType dataType, PATCore::ParticleType::Type ptype, double momentum, double trk_eta, egEnergyCorr::Scale::Variation scaleVar=egEnergyCorr::Scale::None, double varSF=1.0) const
take eta and uncorrected energy of electron, return corrected energy, apply given variation,...