Public Member Functions | Private Attributes | List of all members
brb::WCTrack Class Reference

#include "/cvmfs/nova-development.opensciencegrid.org/novasoft/releases/N20-12-03/BeamlineRecoBase/WCTrack.h"

Public Member Functions

 WCTrack ()
 
 WCTrack (float momentum, float y_kink, TVector3 delta_dist, TVector3 mag_entry, float dist_to_mag_axis, TVector2 xy_face, std::vector< TVector3 > wcHits, TVector3 dir, float theta, float phi, float residual)
 
float Momentum () const
 
float YKink () const
 
TVector3 DeltaDist () const
 
TVector3 MagnetEntryPoint () const
 
float TransDistToMagAxis () const
 
TVector2 XYFace () const
 
TVector3 Dir () const
 
float Theta () const
 
float Phi () const
 
float Residual () const
 
TVector3 WCHit (unsigned int wc) const
 
int WC (size_t hit) const
 
float HitWire (size_t hit) const
 
float HitPosition (int wc, int wire) const
 
size_t NHits () const
 

Private Attributes

float fMomentum
 Reconstructed momentum in the XZ plane (coord system origin is at secondary target) More...
 
float fYKink
 Angle difference between upstream and downstream tracks. More...
 
TVector3 fDeltaDist
 Distance between upstream and downstream track ends. More...
 
TVector3 fMagnetEntryPoint
 X,Y,Z intersect of upstream WC track with front face of magnet. More...
 
float fTransDistToMagAxis
 Transverse distance from WC track intercept to central axis of magnet. More...
 
TVector2 fXYFace
 X and Y position of the track on the upstream face of the detector. More...
 
std::vector< TVector3 > fWCHit
 Hits on each chamber used to make the track. More...
 
TVector3 fDir
 Unit vector describing direction. More...
 
float fTheta
 Theta defined from the Z axis. More...
 
float fPhi
 Phi defined counterclockwise from the X axis. More...
 
float fResidual
 Returns the goodness of fit to a linear regression for points used in track. More...
 
std::vector< intfWC
 Defined from 1 to 4, like the Wire Chambers. More...
 
std::vector< float > fHitWire
 
float fHitPosition [4][3]
 WC is first index, dimension (x,y,z) as the second index. A [4][3] object. More...
 

Detailed Description

Definition at line 25 of file WCTrack.h.

Constructor & Destructor Documentation

brb::WCTrack::WCTrack ( )
inline
brb::WCTrack::WCTrack ( float  momentum,
float  y_kink,
TVector3  delta_dist,
TVector3  mag_entry,
float  dist_to_mag_axis,
TVector2  xy_face,
std::vector< TVector3 >  wcHits,
TVector3  dir,
float  theta,
float  phi,
float  residual 
)

Definition at line 12 of file WCTrack.cxx.

15  :
17  fYKink(y_kink),
18  fDeltaDist(delta_dist),
19  fMagnetEntryPoint(mag_entry),
20  fTransDistToMagAxis(dist_to_mag_axis),
21  fXYFace(xy_face),
22  fWCHit(wcHits),
23  fDir(dir),
24  fTheta(theta),
25  fPhi(phi),
26  fResidual(residual) {
27 }
TVector3 fDeltaDist
Distance between upstream and downstream track ends.
Definition: WCTrack.h:56
float fTheta
Theta defined from the Z axis.
Definition: WCTrack.h:62
std::vector< TVector3 > fWCHit
Hits on each chamber used to make the track.
Definition: WCTrack.h:60
float fPhi
Phi defined counterclockwise from the X axis.
Definition: WCTrack.h:63
float fMomentum
Reconstructed momentum in the XZ plane (coord system origin is at secondary target) ...
Definition: WCTrack.h:54
float fResidual
Returns the goodness of fit to a linear regression for points used in track.
Definition: WCTrack.h:64
TDirectory * dir
Definition: macro.C:5
TVector3 fDir
Unit vector describing direction.
Definition: WCTrack.h:61
float fYKink
Angle difference between upstream and downstream tracks.
Definition: WCTrack.h:55
float fTransDistToMagAxis
Transverse distance from WC track intercept to central axis of magnet.
Definition: WCTrack.h:58
TVector2 fXYFace
X and Y position of the track on the upstream face of the detector.
Definition: WCTrack.h:59
TVector3 fMagnetEntryPoint
X,Y,Z intersect of upstream WC track with front face of magnet.
Definition: WCTrack.h:57

Member Function Documentation

TVector3 brb::WCTrack::DeltaDist ( ) const

Definition at line 40 of file WCTrack.cxx.

References fDeltaDist.

Referenced by WCTrack().

40  {
41  return fDeltaDist;
42 }
TVector3 fDeltaDist
Distance between upstream and downstream track ends.
Definition: WCTrack.h:56
TVector3 brb::WCTrack::Dir ( ) const

Definition at line 60 of file WCTrack.cxx.

References fDir.

Referenced by tbana::DSToFAna::ProjectTrack(), and WCTrack().

60  {
61  return fDir;
62 }
TVector3 fDir
Unit vector describing direction.
Definition: WCTrack.h:61
float brb::WCTrack::HitPosition ( int  wc,
int  wire 
) const

Definition at line 100 of file WCTrack.cxx.

Referenced by WCTrack().

100  {
101  return 0.;
102 }
float brb::WCTrack::HitWire ( size_t  hit) const

Definition at line 95 of file WCTrack.cxx.

Referenced by WCTrack().

95  {
96  return 0.;
97 }
TVector3 brb::WCTrack::MagnetEntryPoint ( ) const

Definition at line 45 of file WCTrack.cxx.

References fMagnetEntryPoint.

Referenced by WCTrack().

45  {
46  return fMagnetEntryPoint;
47 }
TVector3 fMagnetEntryPoint
X,Y,Z intersect of upstream WC track with front face of magnet.
Definition: WCTrack.h:57
float brb::WCTrack::Momentum ( ) const

Definition at line 30 of file WCTrack.cxx.

References fMomentum.

Referenced by WCTrack().

30  {
31  return fMomentum;
32 }
float fMomentum
Reconstructed momentum in the XZ plane (coord system origin is at secondary target) ...
Definition: WCTrack.h:54
size_t brb::WCTrack::NHits ( ) const

Definition at line 105 of file WCTrack.cxx.

Referenced by WCTrack().

105  {
106  return 0;
107 }
float brb::WCTrack::Phi ( ) const

Definition at line 80 of file WCTrack.cxx.

References fPhi.

Referenced by WCTrack().

80  {
81  return fPhi;
82 }
float fPhi
Phi defined counterclockwise from the X axis.
Definition: WCTrack.h:63
float brb::WCTrack::Residual ( ) const

Definition at line 85 of file WCTrack.cxx.

References fResidual.

Referenced by WCTrack().

85  {
86  return fResidual;
87 }
float fResidual
Returns the goodness of fit to a linear regression for points used in track.
Definition: WCTrack.h:64
float brb::WCTrack::Theta ( ) const

Definition at line 75 of file WCTrack.cxx.

References fTheta.

Referenced by WCTrack().

75  {
76  return fTheta;
77 }
float fTheta
Theta defined from the Z axis.
Definition: WCTrack.h:62
float brb::WCTrack::TransDistToMagAxis ( ) const

Definition at line 50 of file WCTrack.cxx.

References fTransDistToMagAxis.

Referenced by WCTrack().

50  {
51  return fTransDistToMagAxis;
52 }
float fTransDistToMagAxis
Transverse distance from WC track intercept to central axis of magnet.
Definition: WCTrack.h:58
int brb::WCTrack::WC ( size_t  hit) const

Definition at line 90 of file WCTrack.cxx.

Referenced by WCTrack().

90  {
91  return 0;
92 }
TVector3 brb::WCTrack::WCHit ( unsigned int  wc) const

Definition at line 65 of file WCTrack.cxx.

References om::cout, allTimeWatchdog::endl, and fWCHit.

Referenced by tbana::DSToFAna::ProjectTrack(), and WCTrack().

65  {
66  if (wc > fWCHit.size()) {
67  std::cout << "Requested WC " << wc << " out of range (" << fWCHit.size() << ")" << std::endl
68  << "Aborting..." << std::endl;
69  abort();
70  }
71  return fWCHit[wc];
72 }
std::vector< TVector3 > fWCHit
Hits on each chamber used to make the track.
Definition: WCTrack.h:60
OStream cout
Definition: OStream.cxx:6
TVector2 brb::WCTrack::XYFace ( ) const

Definition at line 55 of file WCTrack.cxx.

References fXYFace.

Referenced by WCTrack().

55  {
56  return fXYFace;
57 }
TVector2 fXYFace
X and Y position of the track on the upstream face of the detector.
Definition: WCTrack.h:59
float brb::WCTrack::YKink ( ) const

Definition at line 35 of file WCTrack.cxx.

References fYKink.

Referenced by WCTrack().

35  {
36  return fYKink;
37 }
float fYKink
Angle difference between upstream and downstream tracks.
Definition: WCTrack.h:55

Member Data Documentation

TVector3 brb::WCTrack::fDeltaDist
private

Distance between upstream and downstream track ends.

Definition at line 56 of file WCTrack.h.

Referenced by DeltaDist().

TVector3 brb::WCTrack::fDir
private

Unit vector describing direction.

Definition at line 61 of file WCTrack.h.

Referenced by Dir().

float brb::WCTrack::fHitPosition[4][3]
private

WC is first index, dimension (x,y,z) as the second index. A [4][3] object.

Definition at line 69 of file WCTrack.h.

std::vector<float> brb::WCTrack::fHitWire
private

Definition at line 68 of file WCTrack.h.

TVector3 brb::WCTrack::fMagnetEntryPoint
private

X,Y,Z intersect of upstream WC track with front face of magnet.

Definition at line 57 of file WCTrack.h.

Referenced by MagnetEntryPoint().

float brb::WCTrack::fMomentum
private

Reconstructed momentum in the XZ plane (coord system origin is at secondary target)

Definition at line 54 of file WCTrack.h.

Referenced by Momentum().

float brb::WCTrack::fPhi
private

Phi defined counterclockwise from the X axis.

Definition at line 63 of file WCTrack.h.

Referenced by Phi().

float brb::WCTrack::fResidual
private

Returns the goodness of fit to a linear regression for points used in track.

Definition at line 64 of file WCTrack.h.

Referenced by Residual().

float brb::WCTrack::fTheta
private

Theta defined from the Z axis.

Definition at line 62 of file WCTrack.h.

Referenced by Theta().

float brb::WCTrack::fTransDistToMagAxis
private

Transverse distance from WC track intercept to central axis of magnet.

Definition at line 58 of file WCTrack.h.

Referenced by TransDistToMagAxis().

std::vector<int> brb::WCTrack::fWC
private

Defined from 1 to 4, like the Wire Chambers.

Definition at line 67 of file WCTrack.h.

std::vector<TVector3> brb::WCTrack::fWCHit
private

Hits on each chamber used to make the track.

Definition at line 60 of file WCTrack.h.

Referenced by WCHit().

TVector2 brb::WCTrack::fXYFace
private

X and Y position of the track on the upstream face of the detector.

Definition at line 59 of file WCTrack.h.

Referenced by XYFace().

float brb::WCTrack::fYKink
private

Angle difference between upstream and downstream tracks.

Definition at line 55 of file WCTrack.h.

Referenced by YKink().


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