ATLAS Offline Software
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 
9 #include <string>
11 
12 #include "TFile.h"
13 #include "TMath.h"
14 #include "TObjString.h"
15 #include "TTree.h"
16 #include "TClass.h"
17 
20 #include "AsgTools/AsgTool.h"
21 
22 #ifndef TRIGFASTCALIBWITHRINGS_H
23 #define TRIGFASTCALIBWITHRINGS_H
24 
26 
27 {
28 
29  public:
30  TrigFastCalibWithRings(const std::string& type, const std::string& myname, const IInterface* parent);
32  StatusCode initialize() final;
33  StatusCode execute() 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
TrigRingerRingsContainer.h
IegammaMVACalibTool.h
asg::AsgTool
Base class for the dual-use tool implementation classes.
Definition: AsgTool.h:47
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
Definition: TrigFastCalibWithRings.h:27
TrigFastCalibWithRings::makeCalibWRings
float makeCalibWRings(const EventContext &ctx) const
Definition: TrigFastCalibWithRings.cxx:160
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition: StoreGate/StoreGate/ReadHandleKey.h:39
FortranAlgorithmOptions.fileName
fileName
Definition: FortranAlgorithmOptions.py:13
TrigFastCalibWithRings::m_BDTs
std::vector< MVAUtils::BDT > m_BDTs
Where the BDTs are stored.
Definition: TrigFastCalibWithRings.h:48
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
TrigFastCalibWithRings::m_ringerKey
SG::ReadHandleKey< xAOD::TrigRingerRingsContainer > m_ringerKey
Definition: TrigFastCalibWithRings.h:43
test_pyathena.parent
parent
Definition: test_pyathena.py:15
egammaMVACalibTool.h
TrigFastCalibWithRings::checkRings
bool checkRings(const EventContext &ctx) const
Definition: TrigFastCalibWithRings.cxx:31
TrigFastCalibWithRings::getString
static const TString & getString(TObject *obj)
Definition: TrigFastCalibWithRings.cxx:149
PathResolver.h
TrigFastCalibWithRings::TrigFastCalibWithRings
TrigFastCalibWithRings(const std::string &type, const std::string &myname, const IInterface *parent)
Definition: TrigFastCalibWithRings.cxx:10
TrigFastCalibWithRings::initialize
StatusCode initialize() final
Dummy implementation of the initialisation function.
Definition: TrigFastCalibWithRings.cxx:15
TrigFastCalibWithRings::~TrigFastCalibWithRings
~TrigFastCalibWithRings()
Definition: TrigFastCalibWithRings.cxx:13
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
AsgTool.h
checker_macros.h
Define macros for attributes used to control the static checker.
python.PyAthena.obj
obj
Definition: PyAthena.py:132
TrigFastCalibWithRings::setupBDTFastCalo
StatusCode setupBDTFastCalo(const std::string &fileName)
Definition: TrigFastCalibWithRings.cxx:48
TrigFastCalibWithRings::m_CalibPath
Gaudi::Property< std::string > m_CalibPath
Definition: TrigFastCalibWithRings.h:41
TrigFastCalibWithRings::execute
StatusCode execute() const
Definition: TrigFastCalibWithRings.cxx:26
TrigFastCalibWithRings::m_shifts
std::vector< TFormula > m_shifts
shifts formulas
Definition: TrigFastCalibWithRings.h:51