BmnRoot
Loading...
Searching...
No Matches
BmnSiMDPoint.cxx
Go to the documentation of this file.
1
2
3#include <iostream>
4#include "BmnSiMDPoint.h"
5#include "FairMCPoint.h"
6#include "FairLogger.h"
7#include "TVector3.h"
8#include "TVirtualMC.h"
9#include "TParticle.h"
10
11// ----- Default constructor -------------------------------------------
13 : FairMCPoint(),
14 fXOut(0.0),
15 fYOut(0.0),
16 fZOut(0.0),
17 fPxOut(0.0),
18 fPyOut(0.0),
19 fPzOut(0.0),
20 fIsPrimary(0), fCharge(-1.0), fPdgId(0)
21
22 {
23 nCopy = -1;
24
25}
26// -------------------------------------------------------------------------
27
28// ----- Standard constructor ------------------------------------------
29BmnSiMDPoint::BmnSiMDPoint(Int_t trackID, Int_t detID, Int_t copyNo,
30 TVector3 posIn, TVector3 posOut,
31 TVector3 momIn, TVector3 momOut,
32 Double_t tof, Double_t length,
33 Double_t eLoss, Int_t isPrimary, Double_t charge, Int_t pdgId,
34 Double_t timeIn, Double_t timeOut, Double_t lengthtrack)
35 //UInt_t EventId,
36 : FairMCPoint(trackID, detID, posIn, momIn, tof, length, eLoss),
37 //EventId
38
39 fXOut(posOut.X()),
40 fYOut(posOut.Y()),
41 fZOut(posOut.Z()),
42 fPxOut(momOut.Px()),
43 fPyOut(momOut.Py()),
44 fPzOut(momOut.Pz()),
45 fIsPrimary(isPrimary),
46 fCharge(charge),
47 fPdgId(pdgId)
48
49 {
50
51 nCopy = copyNo;
52
53 fTimeIn = timeIn;
54 fTimeOut = timeOut;
55 fLengthtrack = lengthtrack;
56 }
57// ----- Destructor ----------------------------------------------------
59// -------------------------------------------------------------------------
60
61// ----- Public method Print -------------------------------------------
62void BmnSiMDPoint::Print(const Option_t* opt) const {
63 cout << "-I- BmnSiMDPoint: MUO Point for track " << fTrackID
64 << " in detector " << fDetectorID << endl;
65 cout << " Position (" << fX << ", " << fY << ", " << fZ
66 << ") cm" << endl;
67 cout << " Momentum (" << fPx << ", " << fPy << ", " << fPz
68 << ") GeV" << endl;
69 cout << " Time " << fTime << " ns, Length " << fLength
70 << " cm, Energy loss " << fELoss*1.0e06 << " keV" << endl;
71}
72// -------------------------------------------------------------------------
virtual ~BmnSiMDPoint()
Double_t fLengthtrack
Double_t fTimeOut
virtual void Print(const Option_t *opt) const
Double_t fTimeIn