ATLAS Offline Software
Loading...
Searching...
No Matches
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>
20using namespace std;
23
24#define MODE M_5_5
25ofstream outputfile;
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};
36class cellbin{
37public:
38 float m_eta{};
39 float m_phi{};
40 int m_nx{};
41 int m_ny{};
42 float m_value{};
44 int m_layer{};
45 int m_side{};
46 string m_level;
47 float m_OSRatio{};
48 string m_name;
49};
52enum SIDE{Aside=1,Cside=-1};
55float m_range[NbCaloPart][2]={{-1.5,1.5},{1.5,4.9},{-4.9,-1.5}};
56string ClusterPlotsNames_occ[]={ "m_EtavsPhi3",
57// "m_EtavsPhi4"
58 };
60// "etaphi_thresh_avgenergy_3",
61// "etaphi_thresh_avgenergy_4"
62 };
63TH2F* h2_cluster_occ[5]={NULL};
64TH2F* h2_cluster_avg[5]={NULL};
65TH2F* h2_occ[NbOfPartition][4]={NULL};
67TH2F* h2_avgEnergy[NbOfPartition][4]={NULL};
69string 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 };
100string 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 };
string ClusterPlotsNames_occ[]
float m_range[NbCaloPart][2]
TH2F * h2_avgEnergy[NbOfPartition][4]
TH2F * h2_cellStatus_Summary_avgEnergy[NbOfPartition][4]
double RedThreshold_cell
@ NbOfPartition
string ClusterPlotsNames_avg[]
TH2F * h2_cluster_occ[5]
string TargetNames[]
ofstream outputfile
double RedThreshold_cluster
TH2F * h2_cluster_avg[5]
@ Sampling3
@ Sampling2
@ NbOflayers
@ Presampler
@ Sampling1
@ NbCaloPart
string TargetNames_Avg[]
TH2F * h2_cellStatus_Summary[NbOfPartition][4]
TH2F * h2_occ[NbOfPartition][4]
STL namespace.