ATLAS Offline Software
Loading...
Searching...
No Matches
testMomentumSystematics.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3*/
4
6
7#include "TProfile.h"
8#include "TCanvas.h"
9#include "TH1D.h"
10#include <iostream>
11
12int main() {
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,...