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
Functions
utils Namespace Reference

Functions

bool hasCollection (EVENT::LCEvent *lc_event, const std::string &collection)
 description
 
VertexbuildVertex (EVENT::Vertex *lc_vertex)
 description
 
ParticlebuildParticle (EVENT::ReconstructedParticle *lc_particle, std::string trackstate_location, EVENT::LCCollection *gbl_kink_data, EVENT::LCCollection *track_data)
 description
 
TrackbuildTrack (EVENT::Track *lc_track, std::string trackstate_location, EVENT::LCCollection *gbl_kink_data, EVENT::LCCollection *track_data)
 description
 
bool IsSameTrack (Track *trk1, Track *trk2)
 description
 
RawSvtHitbuildRawHit (EVENT::TrackerRawData *rawTracker_hit, EVENT::LCCollection *raw_svt_hit_fits)
 
TrackerHitbuildTrackerHit (IMPL::TrackerHitImpl *lc_trackerHit, bool rotate=true, int type=0)
 description
 
CalClusterbuildCalCluster (EVENT::Cluster *lc_cluster)
 description
 
bool addRawInfoTo3dHit (TrackerHit *tracker_hit, IMPL::TrackerHitImpl *lc_tracker_hit, EVENT::LCCollection *raw_svt_fits, std::vector< RawSvtHit * > *rawHits=nullptr, int type=0, bool storeRawHit=true)
 description
 
bool isUsedByTrack (IMPL::TrackerHitImpl *lc_tracker_hit, EVENT::Track *lc_track)
 description
 
bool isUsedByTrack (TrackerHit *tracker_hit, EVENT::Track *lc_track)
 description
 
bool getParticlesFromVertex (Vertex *vtx, Particle *ele, Particle *pos)
 description
 
static UTIL::BitField64 decoder ("system:6,barrel:3,layer:4,module:12,sensor:1,side:32:-2,strip:12")
 description
 
double getKalmanTrackL1Isolations (Track *track, std::vector< TrackerHit * > *siClusters)
 description
 
void get2016KFMCTruthHitCodes (Track *ele_trk, Track *pos_trk, int &L1L2hitCode, int &L1hitCode, int &L2hitCode)
 description
 
double v0_projection_to_target_significance (json v0proj_fits, int run, double &vtx_proj_x, double &vtx_proj_y, double &vtx_proj_x_signif, double &vtx_proj_y_signif, double vtx_x, double vtx_y, double vtx_z, double vtx_px, double vtx_py, double vtx_pz)
 description
 

Function Documentation

◆ addRawInfoTo3dHit()

bool addRawInfoTo3dHit ( TrackerHit tracker_hit,
IMPL::TrackerHitImpl *  lc_tracker_hit,
EVENT::LCCollection *  raw_svt_fits,
std::vector< RawSvtHit * > *  rawHits = nullptr,
int  type = 0,
bool  storeRawHit = true 
)

description

Parameters
tracker_hit
lc_tracker_hit
raw_svt_fits
rawHits
type
Returns
true
false

Definition at line 440 of file utilities.cxx.

◆ buildCalCluster()

CalCluster * buildCalCluster ( EVENT::Cluster *  lc_cluster)

description

Parameters
lc_cluster
Returns
CalCluster*

Definition at line 107 of file utilities.cxx.

◆ buildParticle()

Particle * buildParticle ( EVENT::ReconstructedParticle *  lc_particle,
std::string  trackstate_location,
EVENT::LCCollection *  gbl_kink_data,
EVENT::LCCollection *  track_data 
)

description

Parameters
lc_particle
gbl_kink_data
track_data
Returns
Particle*

Definition at line 56 of file utilities.cxx.

◆ buildRawHit()

RawSvtHit * buildRawHit ( EVENT::TrackerRawData *  rawTracker_hit,
EVENT::LCCollection *  raw_svt_hit_fits 
)

Definition at line 340 of file utilities.cxx.

◆ buildTrack()

Track * buildTrack ( EVENT::Track *  lc_track,
std::string  trackstate_location,
EVENT::LCCollection *  gbl_kink_data,
EVENT::LCCollection *  track_data 
)

description

Parameters
lc_track
gbl_kink_data
track_data
Returns
Track*

Definition at line 158 of file utilities.cxx.

◆ buildTrackerHit()

TrackerHit * buildTrackerHit ( IMPL::TrackerHitImpl *  lc_trackerHit,
bool  rotate = true,
int  type = 0 
)

description

Parameters
lc_trackerHit
rotate
type
Returns
TrackerHit*

Definition at line 406 of file utilities.cxx.

◆ buildVertex()

Vertex * buildVertex ( EVENT::Vertex *  lc_vertex)

description

Parameters
lc_vertex
Returns
Vertex*

Definition at line 31 of file utilities.cxx.

◆ decoder()

static UTIL::BitField64 decoder ( "system:6  ,
barrel:3  ,
layer:4  ,
module:12  ,
sensor:1  ,
side:32:-  2,
strip:12"   
)
static

description

Todo:
extern?

◆ get2016KFMCTruthHitCodes()

void get2016KFMCTruthHitCodes ( Track ele_trk,
Track pos_trk,
int &  L1L2hitCode,
int &  L1hitCode,
int &  L2hitCode 
)

description

Todo:
extern?

Definition at line 675 of file utilities.cxx.

◆ getKalmanTrackL1Isolations()

double getKalmanTrackL1Isolations ( Track track,
std::vector< TrackerHit * > *  siClusters 
)

description

Todo:
extern?

Definition at line 566 of file utilities.cxx.

◆ getParticlesFromVertex()

bool getParticlesFromVertex ( Vertex vtx,
Particle ele,
Particle pos 
)

description

Parameters
vtx
ele
pos
Returns
true
false

Definition at line 541 of file utilities.cxx.

◆ hasCollection()

bool hasCollection ( EVENT::LCEvent *  lc_event,
const std::string &  collection 
)

description

Parameters
lc_event
collection
Returns
true
false

Definition at line 18 of file utilities.cxx.

◆ IsSameTrack()

bool IsSameTrack ( Track trk1,
Track trk2 
)

description

Parameters
trk1
trk2
Returns
true
false

Definition at line 143 of file utilities.cxx.

◆ isUsedByTrack() [1/2]

bool isUsedByTrack ( IMPL::TrackerHitImpl *  lc_tracker_hit,
EVENT::Track *  lc_track 
)

description

Parameters
lc_tracker_hit
lc_track
Returns
true
false

Definition at line 515 of file utilities.cxx.

◆ isUsedByTrack() [2/2]

bool isUsedByTrack ( TrackerHit tracker_hit,
EVENT::Track *  lc_track 
)

description

Parameters
tracker_hit
lc_track
Returns
true
false

Definition at line 528 of file utilities.cxx.

◆ v0_projection_to_target_significance()

double v0_projection_to_target_significance ( json  v0proj_fits,
int  run,
double &  vtx_proj_x,
double &  vtx_proj_y,
double &  vtx_proj_x_signif,
double &  vtx_proj_y_signif,
double  vtx_x,
double  vtx_y,
double  vtx_z,
double  vtx_px,
double  vtx_py,
double  vtx_pz 
)

description

Todo:
extern?

Definition at line 879 of file utilities.cxx.