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
TrackSmearingTool.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
// hpstr //
12
//------------------//
13
14
#include "
Track.h
"
15
16
class
TFile;
17
class
TH1D;
18
19
class
TrackSmearingTool
{
20
21
public :
22
23
// The seed needs to be set accordingly for each instance / job of the smearing tool
24
TrackSmearingTool
(
const
std::string& smearingfile,
25
const
bool
relSmearing =
true
,
26
const
int
seed = 42,
27
const
std::string& tracks =
"KalmanFullTracks"
);
28
29
double
smearTrackP
(
const
Track
& trk);
30
void
updateWithSmearP
(
Track
& trk);
31
32
private
:
33
34
//Random engine
35
std::shared_ptr<std::default_random_engine>
generator_
;
36
37
// General Normal distributions
38
39
std::shared_ptr<std::normal_distribution<double>>
normal_
;
40
41
std::shared_ptr<TFile>
smearingfile_
;
42
43
//Smearing terms
44
TH1D*
smearing_histo_top_
;
45
TH1D*
smearing_histo_bot_
;
46
47
// debug
48
bool
debug_
{
false
};
49
bool
relSmearing_
{
false
};
50
51
};
19
class
TrackSmearingTool
{
…
};
Track.h
Class used to encapsulate track information.
TrackSmearingTool
Definition
TrackSmearingTool.h:19
TrackSmearingTool::smearTrackP
double smearTrackP(const Track &trk)
Definition
TrackSmearingTool.cxx:36
TrackSmearingTool::smearing_histo_bot_
TH1D * smearing_histo_bot_
Definition
TrackSmearingTool.h:45
TrackSmearingTool::generator_
std::shared_ptr< std::default_random_engine > generator_
Definition
TrackSmearingTool.h:35
TrackSmearingTool::smearingfile_
std::shared_ptr< TFile > smearingfile_
Definition
TrackSmearingTool.h:41
TrackSmearingTool::relSmearing_
bool relSmearing_
Definition
TrackSmearingTool.h:49
TrackSmearingTool::normal_
std::shared_ptr< std::normal_distribution< double > > normal_
Definition
TrackSmearingTool.h:39
TrackSmearingTool::smearing_histo_top_
TH1D * smearing_histo_top_
Definition
TrackSmearingTool.h:44
TrackSmearingTool::debug_
bool debug_
Definition
TrackSmearingTool.h:48
TrackSmearingTool::updateWithSmearP
void updateWithSmearP(Track &trk)
Definition
TrackSmearingTool.cxx:78
Track
Definition
Track.h:32
Generated by
1.9.8