ATLAS Offline Software
LArRawChannelBuilderStatistics.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3 */
4 
12 #ifndef LARROD_LARRAWCHANNELBUILDERSTATISTICS_H
13 #define LARROD_LARRAWCHANNELBUILDERSTATISTICS_H
14 
15 #include "GaudiKernel/Kernel.h" // for ulonglong , unsigned 64bit long int
16 
17 #include <vector>
18 #include <string>
19 
21 {
22  public:
23  LArRawChannelBuilderStatistics(unsigned int nerr, unsigned short bitpat);
25 
26  void incrementErrorCount(unsigned int nerr);
27  ulonglong returnErrorCount(unsigned int nerr);
28  ulonglong returnErrorCountPerEvent(unsigned int nerr);
29  ulonglong returnErrorCountSqPerEvent(unsigned int nerr);
30  unsigned long returnEvents() const;
31 
32  void setErrorString(unsigned int nerr, const std::string& s);
33  std::string returnErrorString(unsigned int nerr);
34 
35  unsigned int returnBitPattern() const;
36  unsigned int returnMaxErrors() const;
37 
39 
40  private:
41 
42  // store information about errors in this tool
43  const unsigned int m_N_errors;
44  std::vector<ulonglong> /* 64 bits */ m_error_count;
45  std::vector<std::string> m_error_string;
46  std::vector<unsigned long> m_errors_this_event;
47  std::vector<ulonglong> /* 64 bits */ m_errors_per_event;
48  std::vector<ulonglong> /* 64 bits */ m_errorsSq_per_event;
49  unsigned long m_events;
50 
51  // bit pattern to identify that this tool build this RawChannel
52  const unsigned int m_bit_pattern;
53  const std::string m_s;
54 
55  bool m_first;
56 };
57 
58 #endif
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
LArRawChannelBuilderStatistics::m_errors_this_event
std::vector< unsigned long > m_errors_this_event
Definition: LArRawChannelBuilderStatistics.h:46
LArRawChannelBuilderStatistics::setErrorString
void setErrorString(unsigned int nerr, const std::string &s)
Definition: LArRawChannelBuilderStatistics.cxx:69
LArRawChannelBuilderStatistics::m_N_errors
const unsigned int m_N_errors
Definition: LArRawChannelBuilderStatistics.h:43
LArRawChannelBuilderStatistics
Returns various counters from the LArRawChannel building.
Definition: LArRawChannelBuilderStatistics.h:21
LArRawChannelBuilderStatistics::LArRawChannelBuilderStatistics
LArRawChannelBuilderStatistics(unsigned int nerr, unsigned short bitpat)
Definition: LArRawChannelBuilderStatistics.cxx:10
LArRawChannelBuilderStatistics::incrementErrorCount
void incrementErrorCount(unsigned int nerr)
Definition: LArRawChannelBuilderStatistics.cxx:34
LArRawChannelBuilderStatistics::m_bit_pattern
const unsigned int m_bit_pattern
Definition: LArRawChannelBuilderStatistics.h:52
LArRawChannelBuilderStatistics::m_first
bool m_first
Definition: LArRawChannelBuilderStatistics.h:55
LArRawChannelBuilderStatistics::m_s
const std::string m_s
Definition: LArRawChannelBuilderStatistics.h:53
LArRawChannelBuilderStatistics::returnErrorCount
ulonglong returnErrorCount(unsigned int nerr)
Definition: LArRawChannelBuilderStatistics.cxx:43
LArRawChannelBuilderStatistics::returnErrorCountSqPerEvent
ulonglong returnErrorCountSqPerEvent(unsigned int nerr)
Definition: LArRawChannelBuilderStatistics.cxx:57
LArRawChannelBuilderStatistics::m_errorsSq_per_event
std::vector< ulonglong > m_errorsSq_per_event
Definition: LArRawChannelBuilderStatistics.h:48
LArRawChannelBuilderStatistics::returnEvents
unsigned long returnEvents() const
Definition: LArRawChannelBuilderStatistics.cxx:64
LArRawChannelBuilderStatistics::returnErrorCountPerEvent
ulonglong returnErrorCountPerEvent(unsigned int nerr)
Definition: LArRawChannelBuilderStatistics.cxx:50
LArRawChannelBuilderStatistics::m_errors_per_event
std::vector< ulonglong > m_errors_per_event
Definition: LArRawChannelBuilderStatistics.h:47
LArRawChannelBuilderStatistics::m_error_count
std::vector< ulonglong > m_error_count
Definition: LArRawChannelBuilderStatistics.h:44
LArRawChannelBuilderStatistics::resetErrorcountPerEvent
void resetErrorcountPerEvent()
Definition: LArRawChannelBuilderStatistics.cxx:90
LArRawChannelBuilderStatistics::returnMaxErrors
unsigned int returnMaxErrors() const
Definition: LArRawChannelBuilderStatistics.cxx:80
LArRawChannelBuilderStatistics::m_events
unsigned long m_events
Definition: LArRawChannelBuilderStatistics.h:49
LArRawChannelBuilderStatistics::~LArRawChannelBuilderStatistics
~LArRawChannelBuilderStatistics()
Definition: LArRawChannelBuilderStatistics.h:24
LArRawChannelBuilderStatistics::m_error_string
std::vector< std::string > m_error_string
Definition: LArRawChannelBuilderStatistics.h:45
LArRawChannelBuilderStatistics::returnErrorString
std::string returnErrorString(unsigned int nerr)
Definition: LArRawChannelBuilderStatistics.cxx:74
LArRawChannelBuilderStatistics::returnBitPattern
unsigned int returnBitPattern() const
Definition: LArRawChannelBuilderStatistics.cxx:85