ATLAS Offline Software
CscDigitCollection.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 // CscDigitCollection.h
6 
7 #ifndef MUONSPECTROMETER_CSCDIGITCOLLECTION_H
8 #define MUONSPECTROMETER_CSCDIGITCOLLECTION_H
9 
11 #include "Identifier/Identifier.h"
14 #include "AthenaKernel/CLASS_DEF.h"
15 
16 class CscDigitCollection : public DataVector<CscDigit>
17 {
18 
19 public: // functions
20  //typedef
21  typedef Identifier ID;
22  typedef CscDigit DIGIT;
23  // Default constructor.
24  CscDigitCollection() = default;
25 
26  // Creates an empty container ready for writing.
27  CscDigitCollection(const Identifier& id, const IdentifierHash& idHash)
28  : DataVector<CscDigit>(),m_id(id),m_idHash(idHash)
29  { m_samplingPhase = false; };
30 
31  Identifier identify() const { return m_id; }
33  bool samplingPhase() const { return m_samplingPhase; }
35  private:
38  bool m_samplingPhase{false};
39 };
40 
42 
43 // Class needed only for persistency
45 CLASS_DEF( CscDigitCollection_vector , 1282354891 , 1 )
46 
47 #endif
CscDigit.h
CscDigitCollection::samplingPhase
bool samplingPhase() const
Definition: CscDigitCollection.h:33
CscDigitCollection::CscDigitCollection
CscDigitCollection(const Identifier &id, const IdentifierHash &idHash)
Definition: CscDigitCollection.h:27
CscDigitCollection::set_samplingPhase
void set_samplingPhase()
Definition: CscDigitCollection.h:34
CscDigitCollection::identify
Identifier identify() const
Definition: CscDigitCollection.h:31
Identifier
Definition: DetectorDescription/Identifier/Identifier/Identifier.h:32
CscDigit
Definition: CscDigit.h:17
CscDigitCollection::CscDigitCollection
CscDigitCollection()=default
CscDigitCollection::identifierHash
IdentifierHash identifierHash() const
Definition: CscDigitCollection.h:32
DataVector
Derived DataVector<T>.
Definition: DataVector.h:581
CscDigitCollection
Definition: CscDigitCollection.h:17
CscDigitCollection::m_idHash
IdentifierHash m_idHash
Definition: CscDigitCollection.h:37
id
SG::auxid_t id
Definition: Control/AthContainers/Root/debug.cxx:191
IdentifierHash.h
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
CscDigitCollection::ID
Identifier ID
Definition: CscDigitCollection.h:21
CscDigitCollection::m_id
Identifier m_id
Definition: CscDigitCollection.h:36
IdentifierHash
Definition: IdentifierHash.h:38
CLASS_DEF.h
macros to associate a CLID to a type
CscDigitCollection::DIGIT
CscDigit DIGIT
Definition: CscDigitCollection.h:22
CscDigitCollection::m_samplingPhase
bool m_samplingPhase
Definition: CscDigitCollection.h:38