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