BmnRoot
Loading...
Searching...
No Matches
BmnSiliconPoint.cxx
Go to the documentation of this file.
1#include "BmnSiliconPoint.h"
2
3#include <iostream>
4
5using namespace std;
6
8: FairMCPoint(),
9 fIsPrimary(0),
10 fCharge(-1.0),
11 fPdgId(0),
12 fX_out(0.0),
13 fY_out(0.0),
14 fZ_out(0.0),
15 fPx_out(0.0),
16 fPy_out(0.0),
17 fPz_out(0.0),
18 fStation(-1),
19 fModule(-1)
20{}
21
22BmnSiliconPoint::BmnSiliconPoint(Int_t trackID, Int_t detID,
23 TVector3 posIn, TVector3 posOut,
24 TVector3 momIn, TVector3 momOut,
25 Double_t tof, Double_t length, Double_t eLoss,
26 Int_t isPrimary, Double_t charge, Int_t pdgId)
27
28: FairMCPoint(trackID, detID, posIn, momIn, tof, length, eLoss),
29 fIsPrimary(isPrimary),
30 fCharge(charge),
31 fPdgId(pdgId),
32 fX_out(posOut.X()),
33 fY_out(posOut.Y()),
34 fZ_out(posOut.Z()),
35 fPx_out(momOut.Px()),
36 fPy_out(momOut.Py()),
37 fPz_out(momOut.Pz()),
38 fStation(-1),
39 fModule(-1)
40{}
41
44
45void BmnSiliconPoint::Print(const Option_t* opt) const {
46 cout << "-I- BmnSiliconPoint: Silicon point for track " << fTrackID << " in detector " << fDetectorID << endl;
47 cout << " Position (" << fX << ", " << fY << ", " << fZ << ") cm" << endl;
48 cout << " Momentum (" << fPx << ", " << fPy << ", " << fPz << ") GeV" << endl;
49 cout << " Time " << fTime << " ns, Length " << fLength << " cm, Energy loss " << fELoss*1.0e06 << " keV" << endl;
50}
virtual ~BmnSiliconPoint()
virtual void Print(const Option_t *opt) const
STL namespace.