ATLAS Offline Software
Calorimeter
CaloMonitoring
rootMacros
CellClusterLinkTool.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3
*/
4
6
// CellClusterLinkTool.h : a standalone DQ monitoring tool by using cluster //
7
// and cell plots //
8
// Author: FENG TIAN (Columbia University) //
9
// Email : Feng.Tian@cern.ch //
10
// usage: //
11
// 1. compile : //
12
// g++ `root-config --cflags --glibs` -o CellClusterLink CellClusterLinkTool.C //
13
// 2. run : //
14
// ./CellClusterLinkTool Run# tag stream data10_7TeV(or data10_hi) //
16
17
#include <string>
18
#include "TH2F.h"
19
#include<fstream>
20
using namespace
std;
21
double
RedThreshold_cluster
=100;
22
double
RedThreshold_cell
=100;
23
24
#define MODE M_5_5
25
ofstream
outputfile
;
26
class
clusterbin
{
27
public
:
28
float
m_eta{};
29
float
m_phi{};
30
int
m_nx{};
31
int
m_ny{};
32
float
m_value{};
33
string
m_level
;
34
float
m_OSRatio{};
35
};
36
class
cellbin
{
37
public
:
38
float
m_eta{};
39
float
m_phi{};
40
int
m_nx{};
41
int
m_ny{};
42
float
m_value{};
43
int
m_partition{};
44
int
m_layer{};
45
int
m_side{};
46
string
m_level
;
47
float
m_OSRatio{};
48
string
m_name
;
49
};
50
enum
{
EMBA
,
EMECA
,
HECA
,
FCALA
,
EMBC
,
EMECC
,
HECC
,
FCALC
,
NbOfPartition
};
51
enum
{
Presampler
,
Sampling1
,
Sampling2
,
Sampling3
,
NbOflayers
};
52
enum
SIDE
{
Aside
=1,
Cside
=-1};
53
enum
{
M_5_5
,
M_3_5
,
M_3_7
};
54
enum
{
CaloB
,
CaloEA
,
CaloEC
,
NbCaloPart
};
55
float
m_range
[
NbCaloPart
][2]={{-1.5,1.5},{1.5,4.9},{-4.9,-1.5}};
56
string
ClusterPlotsNames_occ
[]={
"m_EtavsPhi3"
,
57
// "m_EtavsPhi4"
58
};
59
string
ClusterPlotsNames_avg
[]={
60
// "etaphi_thresh_avgenergy_3",
61
// "etaphi_thresh_avgenergy_4"
62
};
63
TH2F
*
h2_cluster_occ
[5]={NULL};
64
TH2F
*
h2_cluster_avg
[5]={NULL};
65
TH2F
*
h2_occ
[
NbOfPartition
][4]={NULL};
66
TH2F
*
h2_cellStatus_Summary
[
NbOfPartition
][4]={NULL};
67
TH2F
*
h2_avgEnergy
[
NbOfPartition
][4]={NULL};
68
TH2F
*
h2_cellStatus_Summary_avgEnergy
[
NbOfPartition
][4]={NULL};
69
string
TargetNames
[]={
"CellOccupancyVsEtaPhi_EMBPA_5Sigma"
,
70
"CellOccupancyVsEtaPhi_EMBPC_5Sigma"
,
71
"CellOccupancyVsEtaPhi_EMB1A_5Sigma"
,
72
"CellOccupancyVsEtaPhi_EMB1C_5Sigma"
,
73
"CellOccupancyVsEtaPhi_EMB2A_5Sigma"
,
74
"CellOccupancyVsEtaPhi_EMB2C_5Sigma"
,
75
"CellOccupancyVsEtaPhi_EMB3A_5Sigma"
,
76
"CellOccupancyVsEtaPhi_EMB3C_5Sigma"
,
77
"CellOccupancyVsEtaPhi_HEC0A_5Sigma"
,
78
"CellOccupancyVsEtaPhi_HEC0C_5Sigma"
,
79
"CellOccupancyVsEtaPhi_HEC1A_5Sigma"
,
80
"CellOccupancyVsEtaPhi_HEC1C_5Sigma"
,
81
"CellOccupancyVsEtaPhi_HEC2A_5Sigma"
,
82
"CellOccupancyVsEtaPhi_HEC2C_5Sigma"
,
83
"CellOccupancyVsEtaPhi_HEC3A_5Sigma"
,
84
"CellOccupancyVsEtaPhi_HEC3C_5Sigma"
,
85
"CellOccupancyVsEtaPhi_EMECPA_5Sigma"
,
86
"CellOccupancyVsEtaPhi_EMECPC_5Sigma"
,
87
"CellOccupancyVsEtaPhi_EMEC1A_5Sigma"
,
88
"CellOccupancyVsEtaPhi_EMEC1C_5Sigma"
,
89
"CellOccupancyVsEtaPhi_EMEC2A_5Sigma"
,
90
"CellOccupancyVsEtaPhi_EMEC2C_5Sigma"
,
91
"CellOccupancyVsEtaPhi_EMEC3A_5Sigma"
,
92
"CellOccupancyVsEtaPhi_EMEC3C_5Sigma"
,
93
"CellOccupancyVsEtaPhi_FCAL1A_5Sigma"
,
94
"CellOccupancyVsEtaPhi_FCAL1C_5Sigma"
,
95
"CellOccupancyVsEtaPhi_FCAL2A_5Sigma"
,
96
"CellOccupancyVsEtaPhi_FCAL2C_5Sigma"
,
97
"CellOccupancyVsEtaPhi_FCAL3A_5Sigma"
,
98
"CellOccupancyVsEtaPhi_FCAL3C_5Sigma"
99
};
100
string
TargetNames_Avg
[]={
"CellAvgEnergyVsEtaPhi_EMBPA_4Sigma"
,
101
"CellAvgEnergyVsEtaPhi_EMBPC_4Sigma"
,
102
"CellAvgEnergyVsEtaPhi_EMB1A_4Sigma"
,
103
"CellAvgEnergyVsEtaPhi_EMB1C_4Sigma"
,
104
"CellAvgEnergyVsEtaPhi_EMB2A_4Sigma"
,
105
"CellAvgEnergyVsEtaPhi_EMB2C_4Sigma"
,
106
"CellAvgEnergyVsEtaPhi_EMB3A_4Sigma"
,
107
"CellAvgEnergyVsEtaPhi_EMB3C_4Sigma"
,
108
"CellAvgEnergyVsEtaPhi_HEC0A_4Sigma"
,
109
"CellAvgEnergyVsEtaPhi_HEC0C_4Sigma"
,
110
"CellAvgEnergyVsEtaPhi_HEC1A_4Sigma"
,
111
"CellAvgEnergyVsEtaPhi_HEC1C_4Sigma"
,
112
"CellAvgEnergyVsEtaPhi_HEC2A_4Sigma"
,
113
"CellAvgEnergyVsEtaPhi_HEC2C_4Sigma"
,
114
"CellAvgEnergyVsEtaPhi_HEC3A_4Sigma"
,
115
"CellAvgEnergyVsEtaPhi_HEC3C_4Sigma"
,
116
"CellAvgEnergyVsEtaPhi_EMECPA_4Sigma"
,
117
"CellAvgEnergyVsEtaPhi_EMECPC_4Sigma"
,
118
"CellAvgEnergyVsEtaPhi_EMEC1A_4Sigma"
,
119
"CellAvgEnergyVsEtaPhi_EMEC1C_4Sigma"
,
120
"CellAvgEnergyVsEtaPhi_EMEC2A_4Sigma"
,
121
"CellAvgEnergyVsEtaPhi_EMEC2C_4Sigma"
,
122
"CellAvgEnergyVsEtaPhi_EMEC3A_4Sigma"
,
123
"CellAvgEnergyVsEtaPhi_EMEC3C_4Sigma"
,
124
"CellAvgEnergyVsEtaPhi_FCAL1A_4Sigma"
,
125
"CellAvgEnergyVsEtaPhi_FCAL1C_4Sigma"
,
126
"CellAvgEnergyVsEtaPhi_FCAL2A_4Sigma"
,
127
"CellAvgEnergyVsEtaPhi_FCAL2C_4Sigma"
,
128
"CellAvgEnergyVsEtaPhi_FCAL3A_4Sigma"
,
129
"CellAvgEnergyVsEtaPhi_FCAL3C_4Sigma"
,
130
};
cellbin::m_level
string m_level
Definition:
CellClusterLinkTool.h:46
HECA
@ HECA
Definition:
CellClusterLinkTool.h:50
Sampling3
@ Sampling3
Definition:
CellClusterLinkTool.h:51
EMBA
@ EMBA
Definition:
CellClusterLinkTool.h:50
h2_cluster_avg
TH2F * h2_cluster_avg[5]
Definition:
CellClusterLinkTool.h:64
FCALA
@ FCALA
Definition:
CellClusterLinkTool.h:50
Sampling2
@ Sampling2
Definition:
CellClusterLinkTool.h:51
CaloB
@ CaloB
Definition:
CellClusterLinkTool.h:54
cellbin
Definition:
CellClusterLinkTool.h:36
RedThreshold_cluster
double RedThreshold_cluster
Definition:
CellClusterLinkTool.h:21
CaloEA
@ CaloEA
Definition:
CellClusterLinkTool.h:54
NbOfPartition
@ NbOfPartition
Definition:
CellClusterLinkTool.h:50
h2_occ
TH2F * h2_occ[NbOfPartition][4]
Definition:
CellClusterLinkTool.h:65
python.TrigEgammaMonitorHelper.TH2F
def TH2F(name, title, nxbins, bins_par2, bins_par3, bins_par4, bins_par5=None, bins_par6=None, path='', **kwargs)
Definition:
TrigEgammaMonitorHelper.py:45
m_range
float m_range[NbCaloPart][2]
Definition:
CellClusterLinkTool.h:55
NbOflayers
@ NbOflayers
Definition:
CellClusterLinkTool.h:51
EMECA
@ EMECA
Definition:
CellClusterLinkTool.h:50
outputfile
ofstream outputfile
Definition:
CellClusterLinkTool.h:25
EMBC
@ EMBC
Definition:
CellClusterLinkTool.h:50
M_5_5
@ M_5_5
Definition:
CellClusterLinkTool.h:53
Sampling1
@ Sampling1
Definition:
CellClusterLinkTool.h:51
CaloEC
@ CaloEC
Definition:
CellClusterLinkTool.h:54
Presampler
@ Presampler
Definition:
CellClusterLinkTool.h:51
h2_avgEnergy
TH2F * h2_avgEnergy[NbOfPartition][4]
Definition:
CellClusterLinkTool.h:67
ClusterPlotsNames_avg
string ClusterPlotsNames_avg[]
Definition:
CellClusterLinkTool.h:59
cellbin::m_name
string m_name
Definition:
CellClusterLinkTool.h:48
TargetNames_Avg
string TargetNames_Avg[]
Definition:
CellClusterLinkTool.h:100
Cside
@ Cside
Definition:
CellClusterLinkTool.h:52
HECC
@ HECC
Definition:
CellClusterLinkTool.h:50
Aside
@ Aside
Definition:
CellClusterLinkTool.h:52
h2_cellStatus_Summary
TH2F * h2_cellStatus_Summary[NbOfPartition][4]
Definition:
CellClusterLinkTool.h:66
clusterbin
Definition:
CellClusterLinkTool.h:26
RedThreshold_cell
double RedThreshold_cell
Definition:
CellClusterLinkTool.h:22
h2_cellStatus_Summary_avgEnergy
TH2F * h2_cellStatus_Summary_avgEnergy[NbOfPartition][4]
Definition:
CellClusterLinkTool.h:68
ClusterPlotsNames_occ
string ClusterPlotsNames_occ[]
Definition:
CellClusterLinkTool.h:56
clusterbin::m_level
string m_level
Definition:
CellClusterLinkTool.h:33
SIDE
SIDE
Definition:
CellClusterLinkTool.h:52
TargetNames
string TargetNames[]
Definition:
CellClusterLinkTool.h:69
M_3_7
@ M_3_7
Definition:
CellClusterLinkTool.h:53
EMECC
@ EMECC
Definition:
CellClusterLinkTool.h:50
M_3_5
@ M_3_5
Definition:
CellClusterLinkTool.h:53
NbCaloPart
@ NbCaloPart
Definition:
CellClusterLinkTool.h:54
FCALC
@ FCALC
Definition:
CellClusterLinkTool.h:50
h2_cluster_occ
TH2F * h2_cluster_occ[5]
Definition:
CellClusterLinkTool.h:63
Generated on Sun Dec 22 2024 21:08:10 for ATLAS Offline Software by
1.8.18