ATLAS Offline Software
Loading...
Searching...
No Matches
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
Define macros for attributes used to control the static checker.
Property holding a SG store/key/clid from which a ReadHandle is made.
static const TString & getString(TObject *obj)
float makeCalibWRings(const EventContext &ctx) const
bool checkRings(const EventContext &ctx) const
StatusCode initialize() final
Dummy implementation of the initialisation function.
std::vector< MVAUtils::BDT > m_BDTs
Where the BDTs are stored.
std::unique_ptr< TH2Poly > m_hPoly
A TH2Poly used to extract bin numbers. Note there is an offset of 1.
TrigFastCalibWithRings(const std::string &type, const std::string &myname, const IInterface *parent)
SG::ReadHandleKey< xAOD::TrigRingerRingsContainer > m_ringerKey
Gaudi::Property< std::string > m_CalibPath
StatusCode setupBDTFastCalo(const std::string &fileName)
std::vector< TFormula > m_shifts
shifts formulas
Base class for the dual-use tool implementation classes.
Definition AsgTool.h:47