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
TrackBiasingTool.h
Go to the documentation of this file.
1#pragma once
2
3//------------------//
4// C++ //
5//------------------//
6#include <iostream>
7#include <random>
8#include <memory>
9
10
11
12
13//------------------//
14// hpstr //
15//------------------//
16
17#include "Track.h"
18#include "Vertex.h"
19
20class TFile;
21class TH1D;
22class TVector3;
23
25
26 public :
27
28 TrackBiasingTool(const std::string& biasingfile,
29 const std::string& tracks = "KalmanFullTracks");
30
31 double biasTrackP(const Track& track);
32
33 double getCorrection(const double& p,
34 const double tanL,
35 const int q);
36
38
39 //Update the track P with a specific scale Factor
40 void updateWithBiasP(Track& trk, double scaleFactor);
41
42 //Update the track P with scale Factors according to the internal calibration plots
43 void updateWithBiasP(Track& trk);
44
45private:
46
47 std::shared_ptr<TFile> biasingfile_;
48
49 //Biasing terms
50
51 //This is per charge -1: electron +1: positron
54
55 // debug
56 bool debug_{false};
57
58};
Class used to encapsulate track information.
Class used to encapsulate Vertex information.
double getCorrection(const double &p, const double tanL, const int q)
void updateWithBiasP(Track &trk, double scaleFactor)
void updateVertexWithBiasP(Vertex *vtx)
double biasTrackP(const Track &track)
std::shared_ptr< TFile > biasingfile_
Definition Track.h:32