ATLAS Offline Software
Loading...
Searching...
No Matches
LArTemperatureCorrectionTool.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef LARTEMPERATURECORRECTIONTOOL_H
6#define LARTEMPERATURECORRECTIONTOOL_H
7
24
26#include <TFile.h>
27#include <TTree.h>
28
29#include <map>
30#include <memory>
31#include <string>
32
34 public:
35 struct AllValues {
36 double barrel;
37 double endcapA;
38 double endcapC;
39 };
40 LArTemperatureCorrectionTool(const std::string& filename);
47 }
50 }
51 int get_cache_size() const { return m_cache.size(); }
52 int get_first_run() const { return m_first_run; }
53 int get_last_run() const { return m_last_run; }
56
57 private:
58 std::unique_ptr<TFile> m_file;
59 TTree* m_tree; // raw pointer, let ROOT manage it
62 std::map<int, AllValues> m_cache;
64};
65
66#endif
LArTemperatureCorrectionTool(const std::string &filename)
AllValues get_corrections(int run)
correction should be applied on MC as a multiplication: E = E * correction
Class mimicking the AthMessaging class from the offline software.
Definition run.py:1