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.
Toggle main menu visibility
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
z
Functions
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
z
Enumerations
Enumerator
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
z
~
Variables
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
Enumerations
Enumerator
Files
File List
File Members
All
c
d
f
i
j
l
m
n
p
r
s
u
Functions
c
d
f
i
m
n
r
s
u
Variables
Typedefs
Macros
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
Loading...
Searching...
No Matches
utils
include
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
20
class
TFile;
21
class
TH1D;
22
class
TVector3;
23
24
class
TrackBiasingTool
{
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
37
void
updateVertexWithBiasP
(
Vertex
* vtx);
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
45
private
:
46
47
std::shared_ptr<TFile>
biasingfile_
;
48
49
//Biasing terms
50
51
//This is per charge -1: electron +1: positron
52
TH1D*
eop_h_top_
;
53
TH1D*
eop_h_bot_
;
54
55
// debug
56
bool
debug_
{
false
};
57
58
};
24
class
TrackBiasingTool
{
…
};
Track.h
Class used to encapsulate track information.
Vertex.h
Class used to encapsulate Vertex information.
TrackBiasingTool
Definition
TrackBiasingTool.h:24
TrackBiasingTool::getCorrection
double getCorrection(const double &p, const double tanL, const int q)
Definition
TrackBiasingTool.cxx:27
TrackBiasingTool::eop_h_bot_
TH1D * eop_h_bot_
Definition
TrackBiasingTool.h:53
TrackBiasingTool::updateWithBiasP
void updateWithBiasP(Track &trk, double scaleFactor)
Definition
TrackBiasingTool.cxx:75
TrackBiasingTool::updateVertexWithBiasP
void updateVertexWithBiasP(Vertex *vtx)
Definition
TrackBiasingTool.cxx:86
TrackBiasingTool::biasTrackP
double biasTrackP(const Track &track)
Definition
TrackBiasingTool.cxx:39
TrackBiasingTool::biasingfile_
std::shared_ptr< TFile > biasingfile_
Definition
TrackBiasingTool.h:47
TrackBiasingTool::eop_h_top_
TH1D * eop_h_top_
Definition
TrackBiasingTool.h:52
TrackBiasingTool::debug_
bool debug_
Definition
TrackBiasingTool.h:56
Track
Definition
Track.h:32
Vertex
Definition
Vertex.h:22
Generated by
1.9.8