FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FairTutPropHit.cxx
Go to the documentation of this file.
1 /********************************************************************************
2  * Copyright (C) 2020 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
3  * *
4  * This software is distributed under the terms of the *
5  * GNU Lesser General Public Licence (LGPL) version 3, *
6  * copied verbatim in the file "LICENSE" *
7  ********************************************************************************/
8 #include "FairTutPropHit.h"
9 
11  : FairHit()
12  , fTrackID(-1)
13  , fPx(0.)
14  , fPy(0.)
15  , fPz(0.)
16  , fDPx(0.)
17  , fDPy(0.)
18  , fDPz(0.)
19 {}
20 
22  int mcindex,
23  const TVector3& pos,
24  const TVector3& dpos,
25  int trackID,
26  int pdgCode,
27  double charge,
28  const TVector3& mom,
29  const TVector3& dmom)
30  : FairHit(detID, pos, dpos, mcindex)
31  , fTrackID(trackID)
32  , fPdgCode(pdgCode)
33  , fCharge(charge)
34  , fPx(mom.X())
35  , fPy(mom.Y())
36  , fPz(mom.Z())
37  , fDPx(dmom.X())
38  , fDPy(dmom.Y())
39  , fDPz(dmom.Z())
40 {}
41 
43 
ClassImp(FairEventBuilder)
virtual ~FairTutPropHit()