ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
LArCalorimeter
LArSamplesMon
LArSamplesMon
LArIdTranslatorHelper.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 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
18
#include "
CxxUtils/checker_macros.h
"
19
20
class
TString;
21
class
TCanvas;
22
class
TH1;
23
class
TH2;
24
class
TTree;
25
class
TFile;
26
class
TH2I;
27
28
29
class
ATLAS_NOT_THREAD_SAFE
LArIdTranslatorHelper
30
{
31
public
:
32
33
LArIdTranslatorHelper
(
const
TString& inputfile);
34
LArIdTranslatorHelper
(
const
LArIdTranslatorHelper
&) =
delete
;
35
LArIdTranslatorHelper
&
operator =
(
const
LArIdTranslatorHelper
&) =
delete
;
36
~LArIdTranslatorHelper
();
37
38
// variables
39
Int_t
bec
,
side
,
ft
,
sl
,
ch
,
sa
,
part
;
40
Float_t
eta
,
phi
,
x
,
y
,
z
;
41
ULong64_t
onlid
,
offlid
,
ttid
;
42
std::vector<int>*
hvid
;
43
Long_t
entry
;
44
Int_t
binetadqm
,
binphidqm1
,
binphidqm2
;
45
46
// functions
47
int
GetPartitionLayerIndex
(
const
int
partition,
const
int
layer)
const
;
48
bool
FindChannel
(
const
int
index
,
float
eta
,
float
phi
);
49
bool
LoadIdTranslator
(
const
TString&
file
);
50
51
bool
IsInitialized
(){
return
m_kInitialized
; }
52
std::unique_ptr<TCanvas> CaloPartitionLayerDisplay(TH2**
h
,
const
Char_t* title=
""
,
bool
kLogz=
true
);
53
std::unique_ptr<TH2> GetCaloPartitionLayerMap(
const
int
index
,
bool
kProfile=
false
);
54
const
Char_t* GetPartitonLayerName(
const
int
index
);
55
void
MakeTranslatorMapping(
const
char
* inputtreefile,
const
char
* inputhistfile,
const
int
run
);
56
bool
IsHVLine(
const
int
hvline)
const
;
57
58
Int_t
GetNpl
(){
return
m_nPartitionLayers
; }
59
60
TTree*
Tree
() {
return
m_tree
; }
61
62
private
:
63
64
bool
m_kInitialized
;
65
TTree*
m_tree
;
66
std::unique_ptr<TFile>
m_file
;
67
Int_t
m_ntotal
,
m_extrabins
;
68
69
Int_t
m_canvas_counts
,
m_clonemap_counts
;
70
Char_t
m_namebuf
[128]{};
71
72
Int_t
m_nPartitionLayers
;
// number of partition layers (nominally 30, from CaloCell monitoring)
73
std::vector<std::string>
m_PartitionLayers
;
74
Int_t
m_nHistCategories
;
// categories used for mapping performances
75
std::vector<std::string>
m_HistCategories
;
76
std::vector<std::vector<TH2I*> >
m_HistCellmaps
;
// mapping histograms loaded from input rootfile
77
};
78
79
#endif
80
operator=
ElementLink & operator=(const ElementLink &)=default
checker_macros.h
Define macros for attributes used to control the static checker.
ATLAS_NOT_THREAD_SAFE
#define ATLAS_NOT_THREAD_SAFE
getNoisyStrip() Find noisy strips from hitmaps and write out into xml/db formats
Definition
checker_macros.h:212
h
Header file for AthHistogramAlgorithm.
LArIdTranslatorHelper::entry
Long_t entry
Definition
LArIdTranslatorHelper.h:43
LArIdTranslatorHelper::ttid
ULong64_t ttid
Definition
LArIdTranslatorHelper.h:41
LArIdTranslatorHelper::LArIdTranslatorHelper
LArIdTranslatorHelper(const TString &inputfile)
Definition
LArIdTranslatorHelper.cxx:34
LArIdTranslatorHelper::LArIdTranslatorHelper
LArIdTranslatorHelper(const LArIdTranslatorHelper &)=delete
LArIdTranslatorHelper::IsInitialized
bool IsInitialized()
Definition
LArIdTranslatorHelper.h:51
LArIdTranslatorHelper::m_HistCategories
std::vector< std::string > m_HistCategories
Definition
LArIdTranslatorHelper.h:75
LArIdTranslatorHelper::bec
Int_t bec
Definition
LArIdTranslatorHelper.h:39
LArIdTranslatorHelper::m_clonemap_counts
Int_t m_clonemap_counts
Definition
LArIdTranslatorHelper.h:69
LArIdTranslatorHelper::GetNpl
Int_t GetNpl()
Definition
LArIdTranslatorHelper.h:58
LArIdTranslatorHelper::binphidqm1
Int_t binphidqm1
Definition
LArIdTranslatorHelper.h:44
LArIdTranslatorHelper::LoadIdTranslator
bool LoadIdTranslator(const TString &file)
Definition
LArIdTranslatorHelper.cxx:91
LArIdTranslatorHelper::binetadqm
Int_t binetadqm
Definition
LArIdTranslatorHelper.h:44
LArIdTranslatorHelper::ft
Int_t ft
Definition
LArIdTranslatorHelper.h:39
LArIdTranslatorHelper::offlid
ULong64_t offlid
Definition
LArIdTranslatorHelper.h:41
LArIdTranslatorHelper::eta
Float_t eta
Definition
LArIdTranslatorHelper.h:40
LArIdTranslatorHelper::Tree
TTree * Tree()
Definition
LArIdTranslatorHelper.h:60
LArIdTranslatorHelper::GetPartitionLayerIndex
int GetPartitionLayerIndex(const int partition, const int layer) const
Definition
LArIdTranslatorHelper.cxx:148
LArIdTranslatorHelper::m_nHistCategories
Int_t m_nHistCategories
Definition
LArIdTranslatorHelper.h:74
LArIdTranslatorHelper::hvid
std::vector< int > * hvid
Definition
LArIdTranslatorHelper.h:42
LArIdTranslatorHelper::z
Float_t z
Definition
LArIdTranslatorHelper.h:40
LArIdTranslatorHelper::binphidqm2
Int_t binphidqm2
Definition
LArIdTranslatorHelper.h:44
LArIdTranslatorHelper::y
Float_t y
Definition
LArIdTranslatorHelper.h:40
LArIdTranslatorHelper::phi
Float_t phi
Definition
LArIdTranslatorHelper.h:40
LArIdTranslatorHelper::sa
Int_t sa
Definition
LArIdTranslatorHelper.h:39
LArIdTranslatorHelper::m_kInitialized
bool m_kInitialized
Definition
LArIdTranslatorHelper.h:64
LArIdTranslatorHelper::m_PartitionLayers
std::vector< std::string > m_PartitionLayers
Definition
LArIdTranslatorHelper.h:73
LArIdTranslatorHelper::m_canvas_counts
Int_t m_canvas_counts
Definition
LArIdTranslatorHelper.h:69
LArIdTranslatorHelper::part
Int_t part
Definition
LArIdTranslatorHelper.h:39
LArIdTranslatorHelper::m_namebuf
Char_t m_namebuf[128]
Definition
LArIdTranslatorHelper.h:70
LArIdTranslatorHelper::m_extrabins
Int_t m_extrabins
Definition
LArIdTranslatorHelper.h:67
LArIdTranslatorHelper::m_tree
TTree * m_tree
Definition
LArIdTranslatorHelper.h:65
LArIdTranslatorHelper::m_file
std::unique_ptr< TFile > m_file
Definition
LArIdTranslatorHelper.h:66
LArIdTranslatorHelper::m_nPartitionLayers
Int_t m_nPartitionLayers
Definition
LArIdTranslatorHelper.h:72
LArIdTranslatorHelper::x
Float_t x
Definition
LArIdTranslatorHelper.h:40
LArIdTranslatorHelper::onlid
ULong64_t onlid
Definition
LArIdTranslatorHelper.h:41
LArIdTranslatorHelper::ch
Int_t ch
Definition
LArIdTranslatorHelper.h:39
LArIdTranslatorHelper::sl
Int_t sl
Definition
LArIdTranslatorHelper.h:39
LArIdTranslatorHelper::side
Int_t side
Definition
LArIdTranslatorHelper.h:39
LArIdTranslatorHelper::m_HistCellmaps
std::vector< std::vector< TH2I * > > m_HistCellmaps
Definition
LArIdTranslatorHelper.h:76
LArIdTranslatorHelper::FindChannel
bool FindChannel(const int index, float eta, float phi)
Definition
LArIdTranslatorHelper.cxx:196
LArIdTranslatorHelper::m_ntotal
Int_t m_ntotal
Definition
LArIdTranslatorHelper.h:67
index
Definition
index.py:1
file
TFile * file
Definition
tile_monitor.h:29
run
int run(int argc, char *argv[])
Definition
ttree2hdf5.cxx:28
Generated on
for ATLAS Offline Software by
1.17.0