ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigAlgorithms
TrigT2CaloEgamma
src
TrigFastCalibWithRings.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
6
7
#include "
egammaMVACalib/egammaMVACalibTool.h
"
8
#include "
EgammaAnalysisInterfaces/IegammaMVACalibTool.h
"
9
#include <string>
10
#include "
xAODTrigRinger/TrigRingerRingsContainer.h
"
11
12
#include "TFile.h"
13
#include "TMath.h"
14
#include "TObjString.h"
15
#include "TTree.h"
16
#include "TClass.h"
17
18
#include "
PathResolver/PathResolver.h
"
19
#include "
CxxUtils/checker_macros.h
"
20
#include "
AsgTools/AsgTool.h
"
21
22
#ifndef TRIGFASTCALIBWITHRINGS_H
23
#define TRIGFASTCALIBWITHRINGS_H
24
25
class
TrigFastCalibWithRings
:
public
asg::AsgTool
26
27
{
28
29
public
:
30
TrigFastCalibWithRings
(
const
std::string&
type
,
const
std::string& myname,
const
IInterface* parent);
31
~TrigFastCalibWithRings
();
32
StatusCode
initialize
()
final
;
33
StatusCode
execute
(
const
EventContext& ctx)
const
;
34
float
makeCalibWRings
(
const
EventContext& ctx)
const
;
35
StatusCode
setupBDTFastCalo
(
const
std::string& fileName);
36
static
const
TString&
getString
(TObject* obj);
37
bool
checkRings
(
const
EventContext& ctx )
const
;
38
39
40
private
:
41
Gaudi::Property<std::string>
m_CalibPath
{
this
,
"CalibPath"
,
""
,
42
"Path to BDT File"
};
43
SG::ReadHandleKey<xAOD::TrigRingerRingsContainer>
m_ringerKey
{
this
,
"RingerKey"
,
"HLT_FastCaloRinger"
,
""
};
45
std::unique_ptr<TH2Poly>
m_hPoly
;
46
48
std::vector<MVAUtils::BDT>
m_BDTs
;
49
51
std::vector<TFormula>
m_shifts
;
52
53
};
54
55
#endif
// TRIGFASTCALIBWITHRINGS_H
AsgTool.h
IegammaMVACalibTool.h
PathResolver.h
TrigRingerRingsContainer.h
checker_macros.h
Define macros for attributes used to control the static checker.
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition
StoreGate/StoreGate/ReadHandleKey.h:40
TrigFastCalibWithRings::getString
static const TString & getString(TObject *obj)
Definition
TrigFastCalibWithRings.cxx:149
TrigFastCalibWithRings::execute
StatusCode execute(const EventContext &ctx) const
Definition
TrigFastCalibWithRings.cxx:26
TrigFastCalibWithRings::makeCalibWRings
float makeCalibWRings(const EventContext &ctx) const
Definition
TrigFastCalibWithRings.cxx:160
TrigFastCalibWithRings::checkRings
bool checkRings(const EventContext &ctx) const
Definition
TrigFastCalibWithRings.cxx:31
TrigFastCalibWithRings::initialize
StatusCode initialize() final
Dummy implementation of the initialisation function.
Definition
TrigFastCalibWithRings.cxx:15
TrigFastCalibWithRings::m_BDTs
std::vector< MVAUtils::BDT > m_BDTs
Where the BDTs are stored.
Definition
TrigFastCalibWithRings.h:48
TrigFastCalibWithRings::~TrigFastCalibWithRings
~TrigFastCalibWithRings()
Definition
TrigFastCalibWithRings.cxx:13
TrigFastCalibWithRings::m_hPoly
std::unique_ptr< TH2Poly > m_hPoly
A TH2Poly used to extract bin numbers. Note there is an offset of 1.
Definition
TrigFastCalibWithRings.h:45
TrigFastCalibWithRings::TrigFastCalibWithRings
TrigFastCalibWithRings(const std::string &type, const std::string &myname, const IInterface *parent)
Definition
TrigFastCalibWithRings.cxx:10
TrigFastCalibWithRings::m_ringerKey
SG::ReadHandleKey< xAOD::TrigRingerRingsContainer > m_ringerKey
Definition
TrigFastCalibWithRings.h:43
TrigFastCalibWithRings::m_CalibPath
Gaudi::Property< std::string > m_CalibPath
Definition
TrigFastCalibWithRings.h:41
TrigFastCalibWithRings::setupBDTFastCalo
StatusCode setupBDTFastCalo(const std::string &fileName)
Definition
TrigFastCalibWithRings.cxx:48
TrigFastCalibWithRings::m_shifts
std::vector< TFormula > m_shifts
shifts formulas
Definition
TrigFastCalibWithRings.h:51
asg::AsgTool
Base class for the dual-use tool implementation classes.
Definition
AsgTool.h:47
egammaMVACalibTool.h
type
Generated on
for ATLAS Offline Software by
1.17.0