ATLAS Offline Software
SpacePointCollection.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 // SpacePointCollection.h
7 // Header file for class SpacePointCollection
9 // (c) ATLAS Detector software
11 // Class to contain all the SPs of a detector element:
12 // module for Pixel or wafer for SCT or layer for TRT,
13 // for Muons:
14 // For SCT the DE is ambiguous, we are using the id of the R module (not the one with
15 // the stereo angle )
16 // The overlap space points are contained in the SpacePointOverlapCollection
18 // Version 1.0 14/10/2003 Veronique Boisvert
20 
21 #ifndef TRKSPACEPOINT_SPACEPOINTCOLLECTION_H
22 #define TRKSPACEPOINT_SPACEPOINTCOLLECTION_H
23 
24 // Base classes
25 #include "Identifier/Identifier.h"
29 #include "GaudiKernel/DataObject.h"
30 //class SpacePoint;
32 
33 
35 
36 
38  : public Identifiable,
39  public DataVector< Trk::SpacePoint >
40 {
42  // Public methods:
44  public:
45 
46  // Standard thinning code won't work on this type because
47  // we have no default constructor.
48  static bool constexpr supportsThinning = false;
49 
50  // Constructor with parameters:
51  // Hashed offline identifier of the DE
53 
54  // Destructor:
56 
59 
60 
62  // Const methods:
64 
65  virtual Identifier identify() const override final;
66 
67  virtual IdentifierHash identifyHash() const override final;
68 
69  void setIdentifier(Identifier id);
70 
71  virtual std::string type() const;
72 
74  // Private methods:
76  private:
77 
80 
82  // Private data:
84  private:
86  Identifier m_id; // identifier of the DE
87 };
88 
90 MsgStream& operator << ( MsgStream& sl, const SpacePointCollection& coll);
91 
93 std::ostream& operator << ( std::ostream& sl, const SpacePointCollection& coll);
95 // Inline methods:
97 
98 #include "AthenaKernel/CLASS_DEF.h"
99 CLASS_DEF(SpacePointCollection,1156991496,1)
100 
101 #endif // TRKSPACEPOINT_SPACEPOINTCOLLECTION_H
SpacePointCollection::identify
virtual Identifier identify() const override final
Definition: SpacePointCollection.cxx:36
SpacePointCollection::supportsThinning
static constexpr bool supportsThinning
Definition: SpacePointCollection.h:48
SpacePointCollection::SpacePointCollection
SpacePointCollection()=delete
Identifiable.h
const
bool const RAWDATA *ch2 const
Definition: LArRodBlockPhysicsV0.cxx:560
SpacePointCollection::identifyHash
virtual IdentifierHash identifyHash() const override final
Definition: SpacePointCollection.cxx:41
SpacePointCollection::~SpacePointCollection
virtual ~SpacePointCollection()
SpacePointCollection::m_idHash
const IdentifierHash m_idHash
Definition: SpacePointCollection.h:85
SpacePointCollection::setIdentifier
void setIdentifier(Identifier id)
Definition: SpacePointCollection.cxx:46
SpacePoint.h
SpacePointCollection::type
virtual std::string type() const
Definition: SpacePointCollection.cxx:51
SpacePointCollectionCopyConstructorCalled
Definition: SpacePointCollection.h:34
DataVector
Derived DataVector<T>.
Definition: DataVector.h:794
private
#define private
Definition: DetDescrConditionsDict_dict_fixes.cxx:13
IdentifierHash.h
SpacePointCollection::m_id
Identifier m_id
Definition: SpacePointCollection.h:86
DataVector.h
An STL vector of pointers that by default owns its pointed-to elements.
calibdata.delete
list delete
Definition: calibdata.py:46
Identifiable
This class provides an abstract interface to an Identifiable object.
Definition: Identifiable.h:27
SpacePointCollection
Definition: SpacePointCollection.h:40
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
IdentifierHash
This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to lo...
Definition: IdentifierHash.h:25
Identifier
Definition: IdentifierFieldParser.cxx:14