ATLAS Offline Software
Loading...
Searching...
No Matches
OccupancyHoleFinder.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef DQM_ALGORITHMS_OCCUPANCYHOLEFINDER_H
6#define DQM_ALGORITHMS_OCCUPANCYHOLEFINDER_H
7
8#include <dqm_core/Algorithm.h>
9#include <string>
10#include <iosfwd>
11
12class TH1;
13class TH2;
14
15namespace dqm_algorithms
16{
17 struct OccupancyHoleFinder : public dqm_core::Algorithm
18 {
19 OccupancyHoleFinder(const std::string & name);
21
22 //overwrites virtual functions
24 dqm_core::Result * execute( const std::string & , const TObject & , const dqm_core::AlgorithmConfig & );
25 using dqm_core::Algorithm::printDescription;
26 void printDescription(std::ostream& out);
27
28 //return histogram with median in each vertical strip
29 TH1* getMedian(const TH2* histo);
30 //Have this function call your own function based on name
31 //See MDT_OccupancyHoleFinder.h as an example
32 std::string getChamberName(const TH2* histo, int biny);
33 //Called when calling derived instance 'MDT_OccupancyHoleFinder.h'
34 std::string getMDTChamberName(const TH2* histo, int biny);
35 std::string getMDTChamberNameByCrate(int biny, const std::string& crate);
36
37 private:
38 std::string m_name;
39 };
40}
41
42#endif // DQM_ALGORITHMS_OCCUPANCYHOLEFINDER_H
std::string getMDTChamberName(const TH2 *histo, int biny)
OccupancyHoleFinder(const std::string &name)
std::string getMDTChamberNameByCrate(int biny, const std::string &crate)
dqm_core::Result * execute(const std::string &, const TObject &, const dqm_core::AlgorithmConfig &)
std::string getChamberName(const TH2 *histo, int biny)