BmnRoot
Loading...
Searching...
No Matches
BmnMwpcPoint.cxx
Go to the documentation of this file.
1
//------------------------------------------------------------------------------------------------------------------------
2
// -------------------------------------------------------------------------
3
// ----- BmnMWPC1Point source file -----
4
// -------------------------------------------------------------------------
5
6
7
#include <iostream>
8
#include "
BmnMwpcPoint.h
"
9
10
11
//------------------------------------------------------------------------------------------------------------------------
12
BmnMwpcPoint::BmnMwpcPoint
() : FairMCPoint() { }
13
//------------------------------------------------------------------------------------------------------------------------
14
BmnMwpcPoint::BmnMwpcPoint
(Int_t trackID, Int_t detID, TVector3 pos, Double_t radius, TVector3 mom, Double_t tof,
15
Double_t length, Double_t eLoss, Int_t isPrimary, Double_t charge, Int_t pdgId, TVector3 trackPos)
16
: FairMCPoint(trackID, detID, pos, mom, tof, length, eLoss),
17
fIsPrimary(isPrimary), fCharge(charge), fRadius(radius), fPdgId(pdgId)
18
{
19
fTX
= trackPos.X();
20
fTY
= trackPos.Y();
21
fTZ
= trackPos.Z();
22
}
23
//------------------------------------------------------------------------------------------------------------------------
24
BmnMwpcPoint::~BmnMwpcPoint
() { }
25
//------------------------------------------------------------------------------------------------------------------------
26
Double_t
BmnMwpcPoint::GetDistance
() {
27
TVector3
dist
= TVector3(fX, fY, fZ) - TVector3(
fTX
,
fTY
,
fTZ
);
28
return
dist
.Mag();
29
}
30
//------------------------------------------------------------------------------------------------------------------------
31
void
BmnMwpcPoint::Print
(
const
Option_t* opt)
const
32
{
33
cout <<
"-I- BmnMWPC1Point: MWPC1 point for track "
<< fTrackID
34
<<
" in detector "
<< fDetectorID << endl;
35
cout <<
" Position ("
<< fX <<
", "
<< fY <<
", "
<< fZ
36
<<
") cm"
<< endl;
37
cout <<
" Momentum ("
<< fPx <<
", "
<< fPy <<
", "
<< fPz
38
<<
") GeV"
<< endl;
39
cout <<
" Time "
<< fTime <<
" ns, Length "
<< fLength
40
<<
" cm, Energy loss "
<< fELoss*1.0e06 <<
" keV"
<< endl;
41
}
42
//------------------------------------------------------------------------------------------------------------------------
dist
vector< Double_t > dist(vector< Double_t > qp, Double_t mu)
Definition
BmnMath.cxx:869
BmnMwpcPoint::BmnMwpcPoint
BmnMwpcPoint()
Definition
BmnMwpcPoint.cxx:12
BmnMwpcPoint::fTZ
Double_t fTZ
Definition
BmnMwpcPoint.h:55
BmnMwpcPoint::fTY
Double_t fTY
Definition
BmnMwpcPoint.h:55
BmnMwpcPoint::fTX
Double_t fTX
Definition
BmnMwpcPoint.h:55
BmnMwpcPoint::~BmnMwpcPoint
virtual ~BmnMwpcPoint()
Definition
BmnMwpcPoint.cxx:24
BmnMwpcPoint::Print
virtual void Print(const Option_t *opt) const
Definition
BmnMwpcPoint.cxx:31
BmnMwpcPoint::GetDistance
Double_t GetDistance()
Definition
BmnMwpcPoint.cxx:26
BmnMwpcPoint.h
detectors
mwpc
BmnMwpcPoint.cxx
Generated on Fri May 15 2026 10:40:52 for BmnRoot by
1.9.8