ATLAS Offline Software
PrepRawDataCollection.icc
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 ///////////////////////////////////////////////////////////////////
6 // PrepRawDataCollection.icc
7 // Implementation file for class PrepRawDataCollection
8 ///////////////////////////////////////////////////////////////////
9 // (c) ATLAS Detector software
10 ///////////////////////////////////////////////////////////////////
11 // Version 1.0 15/07/2003 Veronique Boisvert
12 ///////////////////////////////////////////////////////////////////
13 
14 //namespace Trk{
15 
16 template< class PrepRawDataT >
17 // Constructor with parameters:
18 PrepRawDataCollection< PrepRawDataT >::PrepRawDataCollection(const
19  IdentifierHash idHash) :
20  DataVector<PrepRawDataT>(),
21  m_idHash(idHash),
22  m_id()
23 {}
24 
25 template< class PrepRawDataT >
26 PrepRawDataCollection< PrepRawDataT >::PrepRawDataCollection() :
27  DataVector<PrepRawDataT>(),
28  m_idHash(),
29  m_id()
30 {}
31 
32 template< class PrepRawDataT >
33 PrepRawDataCollection< PrepRawDataT >::PrepRawDataCollection(const PrepRawDataCollection& prd) :
34  DataVector<PrepRawDataT>(prd),
35  m_idHash(),
36  m_id()
37 {
38  // added this ctor as a temporary hack for HLT
39  // it should never be called.
40  throw Trk::PrepRawDataCollectionCopyConstructorCalled();
41 }
42 
43 
44 // Destructor:
45 template< class PrepRawDataT >
46 PrepRawDataCollection< PrepRawDataT >::~PrepRawDataCollection()
47 { }
48 
49 template< class PrepRawDataT >
50 Identifier PrepRawDataCollection< PrepRawDataT >::identify() const
51 {
52  return m_id;
53 }
54 
55 template< class PrepRawDataT >
56 IdentifierHash PrepRawDataCollection< PrepRawDataT >::identifyHash() const
57 {
58  return m_idHash;
59 }
60 
61 template< class PrepRawDataT >
62 void PrepRawDataCollection< PrepRawDataT >::setIdentifier(Identifier id)
63 {
64  m_id = id;
65 }
66 
67 template< class PrepRawDataT >
68 std::string PrepRawDataCollection< PrepRawDataT >::type() const
69 {
70  return "PrepRawDataCollection";
71 }
72