ATLAS Offline Software
HepMcParticleLink_p2.h
Go to the documentation of this file.
1 
3 /*
4  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
5 */
6 
7 #ifndef GENERATOROBJECTSTPCNV_HEPMCPARTICLELINK_P2_H
8 #define GENERATOROBJECTSTPCNV_HEPMCPARTICLELINK_P2_H
9 
10 // STL includes
11 #include <string>
12 
13 // Forward declaration
15 
17 {
18  // Make HepMcParticleLinkCnv_p2 our friend
20 
22  // Public methods:
24 public:
25 
29 
31  HepMcParticleLink_p2( //const std::string& mcEvtName,
32  const unsigned short genEvtIndex,
33  const unsigned long barcode,
34  char evtColl );
35 
37  // Protected data:
39 protected:
40 
44  //std::string m_mcEvtName;
45 
48  unsigned short m_mcEvtIndex;
49 
51  unsigned long m_barcode;
52 
53  // identifier for the type of McEventCollection containing the particle (HS, PU,...)
54  char m_evtColl;
55 };
56 
60 
62  //m_mcEvtName( "Unknown" ),
63  m_mcEvtIndex ( 0 ),
64  m_barcode ( 0 ),
65  m_evtColl ('a')
66 {}
67 
68 inline
69 HepMcParticleLink_p2::HepMcParticleLink_p2( //const std::string& mcEvtName,
70  const unsigned short genEvtIndex,
71  const unsigned long barcode,
72  char evtColl) :
73  // m_mcEvtName ( mcEvtName ),
74  m_mcEvtIndex ( genEvtIndex ),
75  m_barcode ( barcode ),
76  m_evtColl ( evtColl )
77 {}
78 
79 #endif //> GENERATOROBJECTSTPCNV_HEPMCPARTICLELINK_P2_H
HepMC::barcode
int barcode(const T *p)
Definition: Barcode.h:16
HepMcParticleLinkCnv_p2
Definition: HepMcParticleLinkCnv_p2.h:29