ATLAS Offline Software
Loading...
Searching...
No Matches
TileFatherMonTool.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3*/
4
5// ********************************************************************
6//
7// NAME: TileFatherMonTool.h
8// PACKAGE: TileMonitoring
9//
10// AUTHOR: Luca Fiorini (Luca.Fiorini@cern.ch)
11//
12// July 2006
13// ********************************************************************
14#ifndef TILEMONITORING_TILEFATHERMONTOOL_H
15#define TILEMONITORING_TILEFATHERMONTOOL_H
16
17#include "TilePaterMonTool.h"
18
20
21class CaloCell;
22class TriggerInfo;
23
24namespace Trig {
25 class TrigDecisionTool;
26}
27
31
32class ATLAS_NOT_THREAD_SAFE TileFatherMonTool: public TilePaterMonTool // deprecated: ATLASRECTS-7259
33{
34
35 public:
36
37 TileFatherMonTool(const std::string & type, const std::string & name,
38 const IInterface* parent);
39
40
41 virtual ~TileFatherMonTool();
42
43 virtual StatusCode initialize() override;
44
45 int getPartition( const CaloCell* cell );
46
47 void get_eventTrigs(uint32_t lvl1info);
48
49 //method to set an histogram axis bin labels according to a vector of strings
50 template<class T>
51 void SetBinLabel(T* axis, const std::vector<std::string>& labels);
52
53 //method to set an histogram axis bin labels according to an array of strings
54 template<class T>
55 void SetBinLabel(T* axis, const std::string* labels, int nLabels);
56
57 // Method to move bins of TProfile histogra,
58 // Used for online to display only latest 100 LB
59 void ShiftTprofile(TProfile *, int);
60
63 inline int vecIndx(unsigned int i) {
64 return m_activeTrigs[ m_eventTrigs[i] ];
65 }
66
67
71 inline uint32_t getL1info() { return m_lvl1info;};
72
74 inline uint32_t getEvtNum() { return m_evtNum;};
75
77 inline uint32_t getLumiBlock() { return m_lumiBlock;};
78
80 inline uint32_t getEvtBCID() { return m_evtBCID;};
81
83 inline uint32_t getRunNum() { return m_runNum;};
84
86 std::string getRunNumStr();
87
89 inline uint32_t gettileFlag() { return m_tileFlag;};
90
92 inline uint32_t gettileError_error() { return m_tileError_error;};
93
96 void fillEvtInfo();
97
107
117
131
132
134 std::string m_PartNames[NPartHisto] ;
135 std::string m_GainNames[2] ;
136 std::string m_TrigNames[NTrigHisto] ;
137
138 // conversion from ROS index to partition index
140
141 // conversion from partition index to ROS index
143
144 // conversion from partition index to ROS index
145
152 int m_activeTrigs[9]={0};
153
154 uint32_t m_lvl1info{};
155 uint32_t m_evtNum{};
156 uint32_t m_lumiBlock{};
157 uint32_t m_evtBCID{};
158 uint32_t m_runNum{};
159 uint32_t m_tileFlag{};
161 ToolHandle<Trig::TrigDecisionTool> m_trigDec;
162
164 std::vector<int> m_eventTrigs;
165
166 static bool m_is_collision;
167 static unsigned int m_lastevent;
168 static float m_time_difference;
169
170protected:
171
172private:
173 void checkIsCollision(); //moved to private. Should not be called from the derived classes.
176 std::vector<unsigned int> m_fillHistogramsForL1Triggers;
177 std::vector<bool> m_allowedL1TriggerBits;
178};
179
180#endif // TILEMONITORING_TILEFATHERMONTOOL_H
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
Data object for each calorimeter readout cell.
Definition CaloCell.h:57
uint32_t getL1info()
Method to get the Level1 Trigger word: 32bit long, but only 8 bit are used If no trigger word or empt...
ToolHandle< Trig::TrigDecisionTool > m_trigDec
std::string m_MBTSCellContainerID
uint32_t gettileFlag()
Method to get the tile Flag:
uint32_t getEvtNum()
Method to get the event number:
std::string m_GainNames[2]
uint32_t getRunNum()
Method to get the run Number:
static unsigned int m_lastevent
Partitions
enum defining TileCal partitions
std::string m_cellsContainerID
static float m_time_difference
int vecIndx(unsigned int i)
Method that returns the histogram index corresponding to trigger 'i'.
void ShiftTprofile(TProfile *, int)
uint32_t getLumiBlock()
Method to get the lumi_block word:
L1Trig
enum defining L1 trigger bits
int m_ros2partition[NPartHisto]
int m_activeTrigs[9]
this array doesn't simply say if the trigger has ever fired for this run, but it also contains the po...
TileFatherMonTool(const std::string &type, const std::string &name, const IInterface *parent)
Base class for TileCal monitoring tools.
std::vector< bool > m_allowedL1TriggerBits
std::vector< unsigned int > m_fillHistogramsForL1Triggers
uint32_t getEvtBCID()
Method to get the event BCID:
Sampling
enum defining TileCal cell samples
int m_partition2ros[NPartHisto]
std::string m_TrigNames[NTrigHisto]
void SetBinLabel(T *axis, const std::vector< std::string > &labels)
std::string m_SampStrNames[TotalSamp]
uint32_t gettileError_error()
Method to get the tile Error:
int getPartition(const CaloCell *cell)
Method to navigate from a cell to its Tile partition EBA, LBA, LBC, EBC.
std::string m_PartNames[NPartHisto]
void get_eventTrigs(uint32_t lvl1info)
Method to get the list of all Level1 trigger passed by the event.
std::vector< int > m_eventTrigs
Vector containing the list of triggers passed by the event.
virtual StatusCode initialize() override
TilePaterMonTool(const std::string &type, const std::string &name, const IInterface *parent)
This class contains trigger related information.
Definition TriggerInfo.h:77
The common trigger namespace for trigger analysis tools.