ATLAS Offline Software
Loading...
Searching...
No Matches
TileCellNoiseMonTool.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: TileCellNoiseMonTool.h
8// PACKAGE: TileMonitoring
9//
10// AUTHORS: Christophe Clement
11//
12//
13// ********************************************************************
14#ifndef TILECELLNOISEMONTOOL_H
15#define TILECELLNOISEMONTOOL_H
16
17#include "TileFatherMonTool.h"
18#include <string>
19#include <vector>
20
22class TH1F;
23class TH2F;
24class TF1;
25
29
30class ATLAS_NOT_THREAD_SAFE TileCellNoiseMonTool: public TileFatherMonTool { // deprecated: ATLASRECTS-7259
31
32 public:
33
34 TileCellNoiseMonTool(const std::string & type, const std::string & name,
35 const IInterface* parent);
36
37 virtual ~TileCellNoiseMonTool();
38
39 virtual StatusCode initialize() final;
40
41 //pure virtual methods
42 StatusCode bookHistograms();
43 StatusCode fillHistograms();
44 StatusCode procHistograms();
45 StatusCode checkHists(bool fromFinalize);
46 StatusCode finalHists();
47
48 StatusCode bookCellNoiseHistos();
49
50 StatusCode fillHistoPerCell();
51 void do2GFit(); // perform double gaussian fit
52 void do2GFit(TH1F* h, double *, TF1 *); // perform double gaussian fit
53
54 void cleanHistVec();
55
56 private:
57
58 void initFirstEvent();
59
60 ToolHandle<ITileBadChanTool> m_tileBadChanTool;
61
62 bool m_doOnline{};
63
64 std::string m_cellsContName;
65
67
68 // x-axis range for the individual cell noise histograms
69 float m_xMin{};
70 float m_xMax{};
71
72 std::vector<TH1F*> m_tileCellEne[4][64]; // a 2D array of 4x64 partitions X modules, each containing a vector of cells
73
74 TH2F* m_mapSigma1[4]={};
75 TH2F* m_mapSigma2[4]={};
76 TH2F* m_mapR[4]={};
77 TH2F* m_mapChi2[4]={};
78 TH2F* m_mapChi2prb[4]={};
79 TH2F* m_mapRmsOsig[4]={};
80 TH2F* m_mapRms[4]={};
81
84
89
90 // TH2D* m_test;
91};
92
93#endif
#define ATLAS_NOT_THREAD_SAFE
getNoisyStrip() Find noisy strips from hitmaps and write out into xml/db formats
Header file for AthHistogramAlgorithm.
An abstract inteface to get Tile channel and ADC status.
virtual StatusCode fillHistograms()
An inheriting class should either override this function or fillHists().
virtual StatusCode bookHistograms()
An inheriting class should either override this function or bookHists().
virtual StatusCode finalHists()
Calls procHists( true, true, true ).
virtual StatusCode checkHists(bool calledFromFinalize)
This implementation does nothing; equivalent functionality may be provided by procHists(....
virtual StatusCode procHistograms()
An inheriting class should either override this function or finalHists().
std::vector< TH1F * > m_tileCellEne[4][64]
ToolHandle< ITileBadChanTool > m_tileBadChanTool
Tile Bad Channel tool.
TileCellNoiseMonTool(const std::string &type, const std::string &name, const IInterface *parent)
TileFatherMonTool(const std::string &type, const std::string &name, const IInterface *parent)
Base class for TileCal monitoring tools.
virtual StatusCode initialize() override
The initialize will set some navigation variables and retrieve basic services.
TH1F(name, title, nxbins, bins_par2, bins_par3=None, path='', **kwargs)