hpstr
The Heavy Photon Search Toolkit for Reconstruction (hpstr) provides an interface to physics data from the HPS experiment saved in the LCIO format and converts it into an ROOT based format.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
AnaHelpers Class Reference

brief description more details More...

#include <AnaHelpers.h>

Public Member Functions

 AnaHelpers ()
 
TVector3 rotateToSvtFrame (TVector3 v)
 Rotate a vector from HPS to SVT Frame (i.e. for position/momentum rotation)
 
TVector3 rotationToSvtFrame (const TVector3 &v)
 Rotate a vector from HPS to SVT Frame via TRotation.
 
TMatrixDSym rotateToSvtFrame (TMatrixDSym cov)
 Rotate a matrix from HPS to SVT Frame (i.e. for covariance matrix rotation)
 
TMatrixDSym rotateToHpsFrame (TMatrixDSym cov)
 brief description
 
void InnermostLayerCheck (Track *trk, bool &foundL1, bool &foundL2)
 Checks if a track has a 3d hit on innermost layer and second innermost layer.
 
bool GetParticlesFromVtx (Vertex *vtx, Particle *&ele, Particle *&pos)
 Get the Particles From Vtx object.
 
bool MatchToGBLTracks (int ele_id, int pos_id, Track *&ele_trk, Track *&pos_trk, std::vector< Track * > &trks)
 brief description
 
bool GetParticlesFromVtxAndParticleList (std::vector< Particle * > &parts, Vertex *vtx, Particle *&ele, Particle *&pos)
 
bool IsECalFiducial (CalCluster *clu)
 
double GetClusterCoplanarity (CalCluster *cl1, CalCluster *cl2)
 
ParticleGetParticleFromCluster (std::vector< Particle * > &parts, CalCluster *cluster)
 
TrackGetTrackFromParticle (std::vector< Track * > &trks, Particle *part)
 

Static Public Member Functions

static std::string getFileName (std::string filePath, bool withExtension)
 

Private Attributes

const double SVT_ANGLE = -30.5e-3
 Angle between SVT system and HPS coordinates.
 
TRotation rotSvt
 description
 
TMatrixDSym * rotSvt_sym
 description
 
bool debug_ {false}
 description
 

Detailed Description

brief description more details

Definition at line 27 of file AnaHelpers.h.

Constructor & Destructor Documentation

◆ AnaHelpers()

Definition at line 244 of file AnaHelpers.cxx.

Member Function Documentation

◆ GetClusterCoplanarity()

double GetClusterCoplanarity ( CalCluster cl1,
CalCluster cl2 
)

Definition at line 90 of file AnaHelpers.cxx.

◆ getFileName()

std::string getFileName ( std::string  filePath,
bool  withExtension 
)
static

Definition at line 5 of file AnaHelpers.cxx.

◆ GetParticleFromCluster()

Particle * GetParticleFromCluster ( std::vector< Particle * > &  parts,
CalCluster cluster 
)

Definition at line 143 of file AnaHelpers.cxx.

◆ GetParticlesFromVtx()

bool GetParticlesFromVtx ( Vertex vtx,
Particle *&  ele,
Particle *&  pos 
)

Get the Particles From Vtx object.

Parameters
vtx
ele
pos
Returns
true
false

Definition at line 157 of file AnaHelpers.cxx.

◆ GetParticlesFromVtxAndParticleList()

bool GetParticlesFromVtxAndParticleList ( std::vector< Particle * > &  parts,
Vertex vtx,
Particle *&  ele,
Particle *&  pos 
)

Definition at line 191 of file AnaHelpers.cxx.

◆ GetTrackFromParticle()

Track * GetTrackFromParticle ( std::vector< Track * > &  trks,
Particle part 
)

Definition at line 134 of file AnaHelpers.cxx.

◆ InnermostLayerCheck()

void InnermostLayerCheck ( Track trk,
bool &  foundL1,
bool &  foundL2 
)

Checks if a track has a 3d hit on innermost layer and second innermost layer.

Parameters
trk
foundL1
foundL2

Definition at line 54 of file AnaHelpers.cxx.

◆ IsECalFiducial()

bool IsECalFiducial ( CalCluster clu)

Definition at line 30 of file AnaHelpers.cxx.

◆ MatchToGBLTracks()

bool MatchToGBLTracks ( int  ele_id,
int  pos_id,
Track *&  ele_trk,
Track *&  pos_trk,
std::vector< Track * > &  trks 
)

brief description

Parameters
ele_id
pos_id
ele_trk
pos_trk
trks
Returns
true
false

Definition at line 116 of file AnaHelpers.cxx.

◆ rotateToHpsFrame()

TMatrixDSym rotateToHpsFrame ( TMatrixDSym  cov)
inline

brief description

Parameters
cov
Returns
TMatrixDSym

Definition at line 65 of file AnaHelpers.h.

◆ rotateToSvtFrame() [1/2]

TMatrixDSym rotateToSvtFrame ( TMatrixDSym  cov)
inline

Rotate a matrix from HPS to SVT Frame (i.e. for covariance matrix rotation)

Parameters
cov
Returns
TMatrixDSym

Definition at line 55 of file AnaHelpers.h.

◆ rotateToSvtFrame() [2/2]

TVector3 rotateToSvtFrame ( TVector3  v)

Rotate a vector from HPS to SVT Frame (i.e. for position/momentum rotation)

Parameters
v
Returns
TVector3

Definition at line 265 of file AnaHelpers.cxx.

◆ rotationToSvtFrame()

TVector3 rotationToSvtFrame ( const TVector3 &  v)

Rotate a vector from HPS to SVT Frame via TRotation.

Parameters
v
Returns
TVector3

Definition at line 271 of file AnaHelpers.cxx.

Member Data Documentation

◆ debug_

bool debug_ {false}
private

description

Definition at line 116 of file AnaHelpers.h.

◆ rotSvt

TRotation rotSvt
private

description

Definition at line 114 of file AnaHelpers.h.

◆ rotSvt_sym

TMatrixDSym* rotSvt_sym
private

description

Definition at line 115 of file AnaHelpers.h.

◆ SVT_ANGLE

const double SVT_ANGLE = -30.5e-3
private

Angle between SVT system and HPS coordinates.

Definition at line 113 of file AnaHelpers.h.


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