ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
ElectronPhotonID
ElectronPhotonFourMomentumCorrection
ElectronPhotonFourMomentumCorrection
LinearityADC.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef ELECTRONPHOTONFOURMOMENTUMCORRECTION_LINEARITYADC_H
6
#define ELECTRONPHOTONFOURMOMENTUMCORRECTION_LINEARITYADC_H
7
#include <
PATCore/PATCoreEnums.h
>
8
#include <TProfile2D.h>
9
10
#include <map>
11
#include <memory>
12
#include <string>
13
14
#include "
AsgMessaging/AsgMessaging.h
"
15
24
25
class
LinearityADC
:
public
asg::AsgMessaging
{
26
27
public
:
30
LinearityADC
(
const
std::string& filename,
31
const
std::string& name =
"ADCNonLinearityCorrection"
);
32
~LinearityADC
(){};
33
37
float
getCorr
(
float
etaCalo,
float
et
,
38
PATCore::ParticleType::Type
ptype =
39
PATCore::ParticleType::Electron
)
const
;
40
41
private
:
42
std::map<PATCore::ParticleType::Type, std::unique_ptr<TProfile2D>>
m_hcorr
;
43
};
44
#endif
AsgMessaging.h
PATCoreEnums.h
LinearityADC::m_hcorr
std::map< PATCore::ParticleType::Type, std::unique_ptr< TProfile2D > > m_hcorr
Definition
LinearityADC.h:42
LinearityADC::getCorr
float getCorr(float etaCalo, float et, PATCore::ParticleType::Type ptype=PATCore::ParticleType::Electron) const
get relative correction factor to apply to energy: corrected energy should be original energy * corre...
Definition
LinearityADC.cxx:26
LinearityADC::~LinearityADC
~LinearityADC()
Definition
LinearityADC.h:32
LinearityADC::LinearityADC
LinearityADC(const std::string &filename, const std::string &name="ADCNonLinearityCorrection")
constructor (initialization done there reading a root file for the HV maps per period
Definition
LinearityADC.cxx:9
asg::AsgMessaging
Class mimicking the AthMessaging class from the offline software.
Definition
AsgMessaging.h:40
PATCore::ParticleType::Type
Type
Definition
PATCoreEnums.h:35
PATCore::ParticleType::Electron
@ Electron
Definition
PATCoreEnums.h:40
et
Extra patterns decribing particle interation process.
Generated on
for ATLAS Offline Software by
1.17.0