The Gaudi Framework
v36r1 (3e2fb5a8)
HistoTimingAlg.h
Go to the documentation of this file.
1
/***********************************************************************************\
2
* (c) Copyright 1998-2019 CERN for the benefit of the LHCb and ATLAS collaborations *
3
* *
4
* This software is distributed under the terms of the Apache version 2 licence, *
5
* copied verbatim in the file "LICENSE". *
6
* *
7
* In applying this licence, CERN does not waive the privileges and immunities *
8
* granted to it by virtue of its status as an Intergovernmental Organization *
9
* or submit itself to any jurisdiction. *
10
\***********************************************************************************/
11
#ifndef HISTOGRAMS_HistoTimingAlg_H
12
#define HISTOGRAMS_HistoTimingAlg_H 1
13
14
#include <map>
15
#include <sstream>
16
17
// GaudiKernel
18
#include "
GaudiKernel/IRndmGenSvc.h
"
19
#include "
GaudiKernel/RndmGenerators.h
"
20
21
// from Gaudi
22
#include "
GaudiAlg/GaudiHistoAlg.h
"
23
32
class
HistoTimingAlg
:
public
GaudiHistoAlg
{
33
34
public
:
36
using
GaudiHistoAlg::GaudiHistoAlg
;
37
38
StatusCode
initialize
()
override
;
39
StatusCode
execute
()
override
;
40
41
private
:
42
Rndm::Numbers
m_rand
;
43
44
typedef
std::map<IHistogram1D*, std::string>
HistoMap
;
45
46
HistoMap
m_histos
;
47
48
Gaudi::Property<bool>
m_useGaudiAlg
{
this
,
"UseLookup"
,
false
,
""
};
49
Gaudi::Property<unsigned int>
m_nHistos
{
this
,
"NumHistos"
, 20,
""
};
50
Gaudi::Property<unsigned int>
m_nTracks
{
this
,
"NumTracks"
, 30,
""
};
51
};
52
53
#endif // HISTOGRAMS_HistoTimingAlg_H
RndmGenerators.h
HistoTimingAlg::HistoMap
std::map< IHistogram1D *, std::string > HistoMap
Definition:
HistoTimingAlg.h:44
IRndmGenSvc.h
HistoTimingAlg::m_nHistos
Gaudi::Property< unsigned int > m_nHistos
Definition:
HistoTimingAlg.h:49
HistoTimingAlg::m_nTracks
Gaudi::Property< unsigned int > m_nTracks
Definition:
HistoTimingAlg.h:50
GaudiHistoAlg.h
HistoTimingAlg::m_histos
HistoMap m_histos
Definition:
HistoTimingAlg.h:46
HistoTimingAlg
Definition:
HistoTimingAlg.h:32
StatusCode
Definition:
StatusCode.h:65
Rndm::Numbers
Random number accessor This small class encapsulates the use of the random number generator.
Definition:
RndmGenerators.h:359
GaudiHistoAlg::GaudiHistoAlg
GaudiHistoAlg()=delete
std::map< IHistogram1D *, std::string >
HistoTimingAlg::initialize
StatusCode initialize() override
Algorithm initialization.
Definition:
HistoTimingAlg.cpp:31
GaudiHistoAlg
Definition:
GaudiHistoAlg.h:47
HistoTimingAlg::m_useGaudiAlg
Gaudi::Property< bool > m_useGaudiAlg
Definition:
HistoTimingAlg.h:48
HistoTimingAlg::execute
StatusCode execute() override
Algorithm execution.
Definition:
HistoTimingAlg.cpp:55
Gaudi::Property< bool >
HistoTimingAlg::m_rand
Rndm::Numbers m_rand
Definition:
HistoTimingAlg.h:42
GaudiExamples
src
Histograms
HistoTimingAlg.h
Generated on Tue Sep 21 2021 12:27:41 for The Gaudi Framework by
1.8.18