ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Control
GaudiSequencer
src
AthPrescaler.h
Go to the documentation of this file.
1
2
3
/*
4
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
5
*/
6
7
// AthPrescaler.h
8
// Header file for class AthPrescaler
9
// Author: S.Binet<binet@cern.ch>
10
// Stolen from Gaudi repository
12
#ifndef GAUDISEQUENCER_ATHPRESCALER_H
13
#define GAUDISEQUENCER_ATHPRESCALER_H
14
15
#include "
AthenaBaseComps/AthAlgorithm.h
"
16
#include "Gaudi/Property.h"
17
18
class
AthPrescaler
:
public
AthAlgorithm
19
{
20
21
public
:
22
26
AthPrescaler
(
const
std::string& name, ISvcLocator* pSvcLocator );
27
31
~AthPrescaler
( );
32
33
/*****************************
34
** Public Function Members **
35
*****************************/
36
37
virtual
StatusCode
initialize
()
override
;
38
virtual
StatusCode
execute
(
const
EventContext& ctx)
override
;
39
virtual
StatusCode
finalize
()
override
;
40
41
private
:
42
43
/**************************
44
** Private Data Members **
45
**************************/
46
50
Gaudi::CheckedProperty<double>
m_percentPass
;
51
55
int
m_pass
;
56
60
int
m_seen
;
61
};
62
63
#endif
// GAUDISEQUENCER_ATHPRESCALER_H
AthAlgorithm.h
AthAlgorithm::AthAlgorithm
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition
AthAlgorithm.cxx:10
AthPrescaler::execute
virtual StatusCode execute(const EventContext &ctx) override
Execute method.
Definition
AthPrescaler.cxx:37
AthPrescaler::initialize
virtual StatusCode initialize() override
Definition
AthPrescaler.cxx:28
AthPrescaler::AthPrescaler
AthPrescaler(const std::string &name, ISvcLocator *pSvcLocator)
Constructor(s).
Definition
AthPrescaler.cxx:14
AthPrescaler::~AthPrescaler
~AthPrescaler()
Destructor.
Definition
AthPrescaler.cxx:24
AthPrescaler::m_seen
int m_seen
Number of events seen.
Definition
AthPrescaler.h:60
AthPrescaler::finalize
virtual StatusCode finalize() override
Definition
AthPrescaler.cxx:52
AthPrescaler::m_pass
int m_pass
Number of events passed.
Definition
AthPrescaler.h:55
AthPrescaler::m_percentPass
Gaudi::CheckedProperty< double > m_percentPass
Percentage of events that should be passed.
Definition
AthPrescaler.h:50
Generated on
for ATLAS Offline Software by
1.17.0