ATLAS Offline Software
LArAccumulatedDigitContainer.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3 */
4 
13 #ifndef LARACCUMULATEDDIGITCONTAINER_H
14 #define LARACCUMULATEDDIGITCONTAINER_H
15 
17 #include "AthenaKernel/CLASS_DEF.h"
18 #include "CLHEP/Units/SystemOfUnits.h"
20 
21 
22 class LArAccumulatedDigitContainer : public DataVector<LArAccumulatedDigit> {
23 
24  public :
29 
30  inline void setNStep (unsigned int NStep) { m_NStep=NStep; }
31  inline void setStepIndex(unsigned int StepIndex) { m_StepIndex=StepIndex; }
32  inline unsigned int getNStep () const { return m_NStep; }
33  inline unsigned int getStepIndex() const { return m_StepIndex; }
34  inline int isLastStep() const { return (m_StepIndex==m_NStep-1); }
35  //private:
36 
37  unsigned int m_NStep, m_StepIndex;
38 };
39 
40 
42 
43 #endif
LArAccumulatedDigitContainer
Container class for LArAccumulatedDigit.
Definition: LArAccumulatedDigitContainer.h:22
LArAccumulatedDigitContainer::m_NStep
unsigned int m_NStep
Definition: LArAccumulatedDigitContainer.h:37
LArAccumulatedDigitContainer::getNStep
unsigned int getNStep() const
Definition: LArAccumulatedDigitContainer.h:32
LArAccumulatedDigitContainer::~LArAccumulatedDigitContainer
virtual ~LArAccumulatedDigitContainer()
destructor
LArAccumulatedDigit.h
SG::OwnershipPolicy
OwnershipPolicy
describes the possible element ownership policies (see e.g. DataVector)
Definition: OwnershipPolicy.h:16
SG::OWN_ELEMENTS
@ OWN_ELEMENTS
this data object owns its elements
Definition: OwnershipPolicy.h:17
DataVector
Derived DataVector<T>.
Definition: DataVector.h:794
LArAccumulatedDigitContainer::m_StepIndex
unsigned int m_StepIndex
Definition: LArAccumulatedDigitContainer.h:37
LArAccumulatedDigitContainer::LArAccumulatedDigitContainer
LArAccumulatedDigitContainer(SG::OwnershipPolicy ownPolicy=SG::OWN_ELEMENTS)
Default Constructor.
Definition: LArAccumulatedDigitContainer.cxx:8
DataVector.h
An STL vector of pointers that by default owns its pointed-to elements.
CLASS_DEF
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Definition: Control/AthenaKernel/AthenaKernel/CLASS_DEF.h:64
LArAccumulatedDigitContainer::getStepIndex
unsigned int getStepIndex() const
Definition: LArAccumulatedDigitContainer.h:33
DataVector< LArAccumulatedDigit >::ownPolicy
SG::OwnershipPolicy ownPolicy() const
Return the ownership policy setting for this container.
LArAccumulatedDigitContainer::isLastStep
int isLastStep() const
Definition: LArAccumulatedDigitContainer.h:34
CLASS_DEF.h
macros to associate a CLID to a type
LArAccumulatedDigitContainer::setStepIndex
void setStepIndex(unsigned int StepIndex)
Definition: LArAccumulatedDigitContainer.h:31
LArAccumulatedDigitContainer::setNStep
void setNStep(unsigned int NStep)
Definition: LArAccumulatedDigitContainer.h:30