ATLAS Offline Software
Loading...
Searching...
No Matches
CalibrationDataUpdater.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3*/
4
6// CalibrationDataUpdater.h, (c) ATLAS Detector software
8
9#ifndef ANALYSISCALIBRATIONDATAUPDATER_H
10#define ANALYSISCALIBRATIONDATAUPDATER_H
11
12// Gaudi includes
14#include "GaudiKernel/MsgStream.h"
15#include <string>
16
17class AtlasDetectorID;
18class Identifier;
19
20class TFile;
21class TObject;
22
23namespace Analysis
24{
25
36
38 {
39 public:
40
42 CalibrationDataUpdater(const std::string& name, ISvcLocator* pSvcLocator);
44 virtual ~CalibrationDataUpdater() = default;
45
47 StatusCode initialize() override;
48
49 private:
50
52 void setDefaultResults(const std::string& Name, TFile* fOut) const;
53 void copyResults(const std::string& from, const std::string& to,
54 TFile* fIn, TFile* fOut) const;
55 bool isValidName(const std::string& Name) const;
56 void writeOutput(TObject* in, const std::string& Name, TFile* fOut) const;
57
58 //--------------- properties ------------------
59
61 std::string m_inputRootFile = "";
62
64 std::string m_DbRootFile = "";
65
67 std::vector<std::string> m_paramNames;
68
72 Gaudi::Property m_overrideDefaults = false;
73
74 };
75} // end of namespace
76
77#endif
JetDumper::Name Name
Definition JetDumper.cxx:19
StatusCode initialize() override
standard Athena-Algorithm method
std::string m_inputRootFile
input ROOT file containing new results
void writeOutput(TObject *in, const std::string &Name, TFile *fOut) const
void copyResults(const std::string &from, const std::string &to, TFile *fIn, TFile *fOut) const
std::string m_DbRootFile
ROOT file to be entered in COOL.
virtual ~CalibrationDataUpdater()=default
Default Destructor.
Gaudi::Property m_overrideDefaults
flag if these results are to be used as defaults (they will anyway if no other results exist for the ...
bool isValidName(const std::string &Name) const
std::vector< std::string > m_paramNames
names of input and output parametrisations
CalibrationDataUpdater(const std::string &name, ISvcLocator *pSvcLocator)
Standard Athena-Algorithm Constructor.
void setDefaultResults(const std::string &Name, TFile *fOut) const
auxiliary functions
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
This class provides an interface to generate or decode an identifier for the upper levels of the dete...
The namespace of all packages in PhysicsAnalysis/JetTagging.