ATLAS Offline Software
Loading...
Searching...
No Matches
LArIdTranslatorHelper.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4
8
9#ifndef LArSamples_LArIdTranslatorHelper_H
10#define LArSamples_LArIdTranslatorHelper_H
11
12
13#include <vector>
14#include <cstdlib>
15#include <string>
16#include <memory>
17#include "RtypesCore.h" //ROOT data types, Int_t etc
19
20class TString;
21class TCanvas;
22class TH1;
23class TH2;
24class TTree;
25class TFile;
26class TH2I;
27
28
30{
31 public:
32
33 LArIdTranslatorHelper(const TString& inputfile);
35
36 // variables
38 Float_t eta,phi,x,y,z;
39 ULong64_t onlid,offlid,ttid;
40 std::vector<int>* hvid;
41 Long_t entry;
43
44 // functions
45 int GetPartitionLayerIndex(const int partition, const int layer) const;
46 bool FindChannel(const int index, float eta, float phi);
47 bool LoadIdTranslator(const TString& file);
48
49 bool IsInitialized(){ return m_kInitialized; }
50 TCanvas* CaloPartitionLayerDisplay(TH2** h,const Char_t* title="",bool kLogz=true);
51 TH2* GetCaloPartitionLayerMap(const int index,bool kProfile=false);
52 const Char_t* GetPartitonLayerName(const int index);
53 void MakeTranslatorMapping(const char* inputtreefile,const char* inputhistfile,const int run);
54 bool IsHVLine(const int hvline) const;
55
56 Int_t GetNpl(){ return m_nPartitionLayers; }
57
58 TTree* Tree() { return m_tree; }
59
60 private:
61
63 TTree* m_tree;
64 TFile* m_file;
66
68 Char_t m_namebuf[128]{};
69
70 Int_t m_nPartitionLayers; // number of partition layers (nominally 30, from CaloCell monitoring)
71 std::vector<std::string> m_PartitionLayers;
72 Int_t m_nHistCategories; // categories used for mapping performances
73 std::vector<std::string> m_HistCategories;
74 std::vector<std::vector<TH2I*> > m_HistCellmaps; // mapping histograms loaded from input rootfile
75};
76
77#endif
78
Define macros for attributes used to control the static checker.
#define ATLAS_NOT_THREAD_SAFE
getNoisyStrip() Find noisy strips from hitmaps and write out into xml/db formats
Header file for AthHistogramAlgorithm.
LArIdTranslatorHelper(const TString &inputfile)
std::vector< std::string > m_HistCategories
bool LoadIdTranslator(const TString &file)
int GetPartitionLayerIndex(const int partition, const int layer) const
std::vector< int > * hvid
std::vector< std::string > m_PartitionLayers
std::vector< std::vector< TH2I * > > m_HistCellmaps
bool FindChannel(const int index, float eta, float phi)
Definition index.py:1
Definition run.py:1
TFile * file