ATLAS Offline Software
ToyNextPassFilterTool.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 // $Id: ToyNextPassFilterTool.cxx,v 1.4 2008-09-23 22:00:47 binet Exp $
7 
9  const std::string& name,
10  const IInterface* parent )
11  : AthAlgTool ( type, name , parent ), m_passesDone(0)
12 {
13  // declareInterface<INextPassFilter>(this);
14  declareProperty( "NPasses", m_nPasses=2 );
15 }
16 
17 bool
19  return ++m_passesDone < m_nPasses;
20 }
ToyNextPassFilterTool.h
a tool providing a toy implementation of INextPassFilter
AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition: AthCommonDataStore.h:145
test_pyathena.parent
parent
Definition: test_pyathena.py:15
ToyNextPassFilterTool::m_nPasses
unsigned int m_nPasses
property: no of pass to allow
Definition: ToyNextPassFilterTool.h:48
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:192
ToyNextPassFilterTool::m_passesDone
unsigned int m_passesDone
no of passes already done
Definition: ToyNextPassFilterTool.h:47
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
ToyNextPassFilterTool::doNextPass
virtual bool doNextPass()
IAlgTool Initialize method.
Definition: ToyNextPassFilterTool.cxx:18
AthAlgTool
Definition: AthAlgTool.h:26
ToyNextPassFilterTool::ToyNextPassFilterTool
ToyNextPassFilterTool(const std::string &type, const std::string &name, const IInterface *parent)
Standard constructor.
Definition: ToyNextPassFilterTool.cxx:8