ATLAS Offline Software
ShowerLibStatistics.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 /*
6  * FCALDistEnergyShowerLibStatistics.h
7  *
8  * Created on: Feb 24, 2012
9  * Author: sedov
10  */
11 
12 #ifndef SHOWERLIBSTATISTICS_H_
13 #define SHOWERLIBSTATISTICS_H_
14 
15 #include <map>
16 #include <string>
17 
18 namespace ShowerLib {
19 
21 public:
22  ShowerLibStatistics(const std::map<int,std::string>& bincaptions,
23  const std::map<int,int>& binsizes);
24  void recordShowerLibUse(int binkey);
25  const std::string statistics();
26 private:
27 
28  int m_counter;
29  std::map<int,int> m_calls;
30  std::map<int,std::string> m_binstrings;
31  std::map<int,int> m_binsizes;
32 
33 };
34 
35 
36 } /* namespace ShowerLib */
37 #endif /* SHOWERLIBSTATISTICS_H_ */
ShowerLib::ShowerLibStatistics::m_calls
std::map< int, int > m_calls
Definition: ShowerLibStatistics.h:29
PixelAthClusterMonAlgCfg.binsizes
binsizes
Definition: PixelAthClusterMonAlgCfg.py:301
ShowerLib::ShowerLibStatistics
Definition: ShowerLibStatistics.h:20
ShowerLib::ShowerLibStatistics::statistics
const std::string statistics()
Definition: ShowerLibStatistics.cxx:33
ShowerLib::ShowerLibStatistics::m_counter
int m_counter
Definition: ShowerLibStatistics.h:28
ShowerLib::ShowerLibStatistics::recordShowerLibUse
void recordShowerLibUse(int binkey)
Definition: ShowerLibStatistics.cxx:27
ShowerLib::ShowerLibStatistics::m_binstrings
std::map< int, std::string > m_binstrings
Definition: ShowerLibStatistics.h:30
ShowerLib::ShowerLibStatistics::ShowerLibStatistics
ShowerLibStatistics(const std::map< int, std::string > &bincaptions, const std::map< int, int > &binsizes)
Definition: ShowerLibStatistics.cxx:18
ShowerLib
Namespace for the ShowerLib related classes.
Definition: LArG4GenShowerLib.h:19
ShowerLib::ShowerLibStatistics::m_binsizes
std::map< int, int > m_binsizes
Definition: ShowerLibStatistics.h:31