ATLAS Offline Software
Loading...
Searching...
No Matches
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"
15
16class CscDigitCollection : public DataVector<CscDigit>
17{
18
19public: // 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
45CLASS_DEF( CscDigitCollection_vector , 1282354891 , 1 )
46
47#endif
macros to associate a CLID to a type
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
DataVector< CscDigitCollection > CscDigitCollection_vector
An STL vector of pointers that by default owns its pointed-to elements.
CscDigitCollection()=default
CscDigitCollection(const Identifier &id, const IdentifierHash &idHash)
IdentifierHash m_idHash
IdentifierHash identifierHash() const
Identifier identify() const
Derived DataVector<T>.
Definition DataVector.h:795
DataVector(SG::OwnershipPolicy ownPolicy=SG::OWN_ELEMENTS, SG::IndexTrackingPolicy trackIndices=SG::DEFAULT_TRACK_INDICES)
This is a "hash" representation of an Identifier.