SND@LHC Software
Loading...
Searching...
No Matches
strawtubesPoint Class Reference

#include <strawtubesPoint.h>

Inheritance diagram for strawtubesPoint:
Collaboration diagram for strawtubesPoint:

Public Member Functions

 strawtubesPoint ()
 
 strawtubesPoint (Int_t trackID, Int_t detID, TVector3 pos, TVector3 mom, Double_t tof, Double_t length, Double_t eLoss, Int_t pdgcode, Double_t dist)
 
virtual ~strawtubesPoint ()
 
virtual void Print () const
 
Int_t PdgCode () const
 
Double_t dist2Wire () const
 

Private Member Functions

 strawtubesPoint (const strawtubesPoint &point)
 
strawtubesPoint operator= (const strawtubesPoint &point)
 
 ClassDef (strawtubesPoint, 2)
 

Private Attributes

Int_t fPdgCode
 
Double_t fdist2Wire
 

Detailed Description

Definition at line 10 of file strawtubesPoint.h.

Constructor & Destructor Documentation

◆ strawtubesPoint() [1/3]

strawtubesPoint::strawtubesPoint ( )

Default constructor

Definition at line 10 of file strawtubesPoint.cxx.

11 : FairMCPoint()
12{
13}

◆ strawtubesPoint() [2/3]

strawtubesPoint::strawtubesPoint ( Int_t  trackID,
Int_t  detID,
TVector3  pos,
TVector3  mom,
Double_t  tof,
Double_t  length,
Double_t  eLoss,
Int_t  pdgcode,
Double_t  dist 
)

Constructor with arguments

Parameters
trackIDIndex of MCTrack
detIDDetector ID
posCcoordinates at entrance to active volume [cm]
momMomentum of track at entrance [GeV]
tofTime since event start [ns]
lengthTrack length since creation [cm]
eLossEnergy deposit [GeV]

Definition at line 17 of file strawtubesPoint.cxx.

21 : FairMCPoint(trackID, detID, pos, mom, tof, length, eLoss), fPdgCode(pdgcode), fdist2Wire(dist)
22{
23}

◆ ~strawtubesPoint()

strawtubesPoint::~strawtubesPoint ( )
virtual

Destructor

Definition at line 27 of file strawtubesPoint.cxx.

27{ }

◆ strawtubesPoint() [3/3]

strawtubesPoint::strawtubesPoint ( const strawtubesPoint point)
private

Copy constructor

Member Function Documentation

◆ ClassDef()

strawtubesPoint::ClassDef ( strawtubesPoint  ,
 
)
private

◆ dist2Wire()

Double_t strawtubesPoint::dist2Wire ( ) const
inline

Definition at line 35 of file strawtubesPoint.h.

35{return fdist2Wire;}

◆ operator=()

strawtubesPoint strawtubesPoint::operator= ( const strawtubesPoint point)
private

◆ PdgCode()

Int_t strawtubesPoint::PdgCode ( ) const
inline

Definition at line 34 of file strawtubesPoint.h.

34{return fPdgCode;}

◆ Print()

void strawtubesPoint::Print ( ) const
virtual

Output to screen

Definition at line 31 of file strawtubesPoint.cxx.

32{
33 cout << "-I- strawtubesPoint: strawtubes point for track " << fTrackID
34 << " in detector " << fDetectorID << endl;
35 cout << " Position (" << fX << ", " << fY << ", " << fZ << ", " << fdist2Wire
36 << ") cm" << endl;
37 cout << " Momentum (" << fPx << ", " << fPy << ", " << fPz
38 << ") GeV" << endl;
39 cout << " Time " << fTime << " ns, Length " << fLength << "pdgid" << fPdgCode
40 << " cm, Energy loss " << fELoss*1.0e06 << " keV" << endl;
41}

Member Data Documentation

◆ fdist2Wire

Double_t strawtubesPoint::fdist2Wire
private

Definition at line 43 of file strawtubesPoint.h.

◆ fPdgCode

Int_t strawtubesPoint::fPdgCode
private

Definition at line 42 of file strawtubesPoint.h.


The documentation for this class was generated from the following files: