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 | Private Attributes | List of all members
TrackSmearingTool Class Reference

#include <TrackSmearingTool.h>

Public Member Functions

 TrackSmearingTool (const std::string &smearingfile, const bool relSmearing=true, const int seed=42, const std::string &tracks="KalmanFullTracks")
 
double smearTrackP (const Track &trk)
 
void updateWithSmearP (Track &trk)
 

Private Attributes

std::shared_ptr< std::default_random_engine > generator_
 
std::shared_ptr< std::normal_distribution< double > > normal_
 
std::shared_ptr< TFile > smearingfile_
 
TH1D * smearing_histo_top_
 
TH1D * smearing_histo_bot_
 
bool debug_ {false}
 
bool relSmearing_ {false}
 

Detailed Description

Definition at line 19 of file TrackSmearingTool.h.

Constructor & Destructor Documentation

◆ TrackSmearingTool()

TrackSmearingTool ( const std::string &  smearingfile,
const bool  relSmearing = true,
const int  seed = 42,
const std::string &  tracks = "KalmanFullTracks" 
)

Definition at line 7 of file TrackSmearingTool.cxx.

Member Function Documentation

◆ smearTrackP()

double smearTrackP ( const Track trk)

Definition at line 36 of file TrackSmearingTool.cxx.

◆ updateWithSmearP()

void updateWithSmearP ( Track trk)

Definition at line 78 of file TrackSmearingTool.cxx.

Member Data Documentation

◆ debug_

bool debug_ {false}
private

Definition at line 48 of file TrackSmearingTool.h.

◆ generator_

std::shared_ptr<std::default_random_engine> generator_
private

Definition at line 35 of file TrackSmearingTool.h.

◆ normal_

std::shared_ptr<std::normal_distribution<double> > normal_
private

Definition at line 39 of file TrackSmearingTool.h.

◆ relSmearing_

bool relSmearing_ {false}
private

Definition at line 49 of file TrackSmearingTool.h.

◆ smearing_histo_bot_

TH1D* smearing_histo_bot_
private

Definition at line 45 of file TrackSmearingTool.h.

◆ smearing_histo_top_

TH1D* smearing_histo_top_
private

Definition at line 44 of file TrackSmearingTool.h.

◆ smearingfile_

std::shared_ptr<TFile> smearingfile_
private

Definition at line 41 of file TrackSmearingTool.h.


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