ATLAS Offline Software
Loading...
Searching...
No Matches
FitFunctions Namespace Reference

Functions

double getd0ResParam_N (float abstrketa, float trkpt, bool debug=false)
double getz0ResParam_N (float abstrketa, float trkpt, bool debug=false)
double getEffParam_N (float abstrketa, float trkpt, bool debug=false)
double getEffParam_LRT (double absd0, double lowd0_cut, double highd0_cut, bool debug=false)
double getptqoptResParam_N (float abstrketa, float trkpt, bool debug=false)

Function Documentation

◆ getd0ResParam_N()

double FitFunctions::getd0ResParam_N ( float abstrketa,
float trkpt,
bool debug = false )

Definition at line 7 of file FakeTrackSmearer.h.

19 {
20 #include "FitFunctions/URD/d0Fitparam_N.C"
21 #include "FitFunctions/URD/z0Fitparam_N.C"
22 #include "FitFunctions/URD/effFitparam_N.C"
23 #include "FitFunctions/URD/effFitparam_LRT.C"
24 #include "FitFunctions/URD/ptqoptFitparam_N.C"
25}
26
27
29{
30 public:
31 FakeTrackSmearer(const std::string & InstanceName, long long randomseed=0, bool verbose=false)
32 : m_baseName (InstanceName),
33 m_verbose (verbose),
34 m_myRandom (new TRandom3(randomseed))
35 {
36 Prepare();
37 Tracks.clear();
38
39 // Set these in order to define the scenario:
40 //SetSigmaScaleFactor(1.0);
41 //SetResolutionPtCutOff(5.0);
42 //UseResolutionPtCutOff(true);
43
44 }
45 //
46 FakeTrackSmearer(const FakeTrackSmearer & other) = delete;
47 FakeTrackSmearer & operator=(const FakeTrackSmearer & other) = delete;
48
49// prepare the functions to use
50 void Prepare()
51 {
52 printf("Entering Prepare\n");
53 std::string name;
54
55 name="d0res_eta"+m_baseName; //pt=10GeV
56 d0res_eta=new TF1(name.c_str(),[&](double*x,double*p){return d0ResFunc(x[0],p[0]=10.,0); },0.0,4.0,1);
57 name="z0res_eta"+m_baseName;
58 z0res_eta=new TF1(name.c_str(),[&](double*x,double*p){return z0ResFunc(x[0],p[0]=10.,0); },0.0,4.0,1);
59 name="curvres_eta"+m_baseName;
60 curvres_eta=new TF1(name.c_str(),[&](double*x,double*p){return curvResFunc(x[0],p[0]=10.,0); },0.0,4.0,1);
61
62 name="d0ref_eta"+m_baseName;
63 d0ref_eta=new TF1(name.c_str(),[&](double*x,double*p){return d0RefFunc(x[0],p[0]=10.,0); },0.0,4.0,1);
64 name="z0ref_eta"+m_baseName;
65 z0ref_eta=new TF1(name.c_str(),[&](double*x,double*p){return z0RefFunc(x[0],p[0]=10.,0); },0.0,4.0,1);
66
67
68 name="d0res_pt"+m_baseName; //eta=1
69 d0res_pt=new TF1(name.c_str(),[&](double*x,double*p){return d0ResFunc(p[0]=1.,x[0],0); },1.0,200.0,1);
70 name="z0res_pt"+m_baseName;
71 z0res_pt=new TF1(name.c_str(),[&](double*x,double*p){return z0ResFunc(p[0]=1.,x[0],0); },1.0,200.0,1);
72 name="curvres_pt"+m_baseName;
73 curvres_pt=new TF1(name.c_str(),[&](double*x,double*p){return curvResFunc(p[0]=1.,x[0],0); },1.0,200.0,1);
74
75 name="d0ref_pt"+m_baseName;
76 d0ref_pt=new TF1(name.c_str(),[&](double*x,double*p){return d0RefFunc(p[0]=1.,x[0],0); },1.0,200.0,1);
77 name="z0ref_pt"+m_baseName;
78 z0ref_pt=new TF1(name.c_str(),[&](double*x,double*p){return z0RefFunc(p[0]=1.,x[0],0); },1.0,200.0,1);
79
80 name="effLRT_d0"+m_baseName;
81 m_parameterizedEfficiency_lowd0_LRT = 10.;
#define x
bool verbose
Definition hcg.cxx:73

◆ getEffParam_LRT()

double FitFunctions::getEffParam_LRT ( double absd0,
double lowd0_cut,
double highd0_cut,
bool debug = false )

Definition at line 8 of file FakeTrackSmearer.h.

19 {
20 #include "FitFunctions/URD/d0Fitparam_N.C"
21 #include "FitFunctions/URD/z0Fitparam_N.C"
22 #include "FitFunctions/URD/effFitparam_N.C"
23 #include "FitFunctions/URD/effFitparam_LRT.C"
24 #include "FitFunctions/URD/ptqoptFitparam_N.C"
25}
26

◆ getEffParam_N()

double FitFunctions::getEffParam_N ( float abstrketa,
float trkpt,
bool debug = false )

Definition at line 8 of file FakeTrackSmearer.h.

19 {
20 #include "FitFunctions/URD/d0Fitparam_N.C"
21 #include "FitFunctions/URD/z0Fitparam_N.C"
22 #include "FitFunctions/URD/effFitparam_N.C"
23 #include "FitFunctions/URD/effFitparam_LRT.C"
24 #include "FitFunctions/URD/ptqoptFitparam_N.C"
25}
26
27
29{
30 public:
31 FakeTrackSmearer(const std::string & InstanceName, long long randomseed=0, bool verbose=false)
32 : m_baseName (InstanceName),
33 m_verbose (verbose),
34 m_myRandom (new TRandom3(randomseed))
35 {
36 Prepare();
37 Tracks.clear();

◆ getptqoptResParam_N()

double FitFunctions::getptqoptResParam_N ( float abstrketa,
float trkpt,
bool debug = false )

Definition at line 7 of file FakeTrackSmearer.h.

19 {
20 #include "FitFunctions/URD/d0Fitparam_N.C"
21 #include "FitFunctions/URD/z0Fitparam_N.C"
22 #include "FitFunctions/URD/effFitparam_N.C"
23 #include "FitFunctions/URD/effFitparam_LRT.C"
24 #include "FitFunctions/URD/ptqoptFitparam_N.C"
25}
26
27
29{
30 public:
31 FakeTrackSmearer(const std::string & InstanceName, long long randomseed=0, bool verbose=false)
32 : m_baseName (InstanceName),
33 m_verbose (verbose),
34 m_myRandom (new TRandom3(randomseed))
35 {
36 Prepare();
37 Tracks.clear();
38
39 // Set these in order to define the scenario:
40 //SetSigmaScaleFactor(1.0);
41 //SetResolutionPtCutOff(5.0);
42 //UseResolutionPtCutOff(true);
43
44 }
45 //
46 FakeTrackSmearer(const FakeTrackSmearer & other) = delete;
47 FakeTrackSmearer & operator=(const FakeTrackSmearer & other) = delete;
48
49// prepare the functions to use
50 void Prepare()
51 {
52 printf("Entering Prepare\n");
53 std::string name;
54
55 name="d0res_eta"+m_baseName; //pt=10GeV
56 d0res_eta=new TF1(name.c_str(),[&](double*x,double*p){return d0ResFunc(x[0],p[0]=10.,0); },0.0,4.0,1);
57 name="z0res_eta"+m_baseName;
58 z0res_eta=new TF1(name.c_str(),[&](double*x,double*p){return z0ResFunc(x[0],p[0]=10.,0); },0.0,4.0,1);
59 name="curvres_eta"+m_baseName;
60 curvres_eta=new TF1(name.c_str(),[&](double*x,double*p){return curvResFunc(x[0],p[0]=10.,0); },0.0,4.0,1);
61
62 name="d0ref_eta"+m_baseName;
63 d0ref_eta=new TF1(name.c_str(),[&](double*x,double*p){return d0RefFunc(x[0],p[0]=10.,0); },0.0,4.0,1);
64 name="z0ref_eta"+m_baseName;
65 z0ref_eta=new TF1(name.c_str(),[&](double*x,double*p){return z0RefFunc(x[0],p[0]=10.,0); },0.0,4.0,1);
66
67
68 name="d0res_pt"+m_baseName; //eta=1
69 d0res_pt=new TF1(name.c_str(),[&](double*x,double*p){return d0ResFunc(p[0]=1.,x[0],0); },1.0,200.0,1);
70 name="z0res_pt"+m_baseName;
71 z0res_pt=new TF1(name.c_str(),[&](double*x,double*p){return z0ResFunc(p[0]=1.,x[0],0); },1.0,200.0,1);
72 name="curvres_pt"+m_baseName;
73 curvres_pt=new TF1(name.c_str(),[&](double*x,double*p){return curvResFunc(p[0]=1.,x[0],0); },1.0,200.0,1);
74
75 name="d0ref_pt"+m_baseName;
76 d0ref_pt=new TF1(name.c_str(),[&](double*x,double*p){return d0RefFunc(p[0]=1.,x[0],0); },1.0,200.0,1);
77 name="z0ref_pt"+m_baseName;
78 z0ref_pt=new TF1(name.c_str(),[&](double*x,double*p){return z0RefFunc(p[0]=1.,x[0],0); },1.0,200.0,1);
79
80 name="effLRT_d0"+m_baseName;
81 m_parameterizedEfficiency_lowd0_LRT = 10.;
82 m_parameterizedEfficiency_highd0_LRT = 400.;
83 effLRT_d0=new TF1(name.c_str(),[&](double*x, double*p){p[0]=1.;return effFuncLRT(x[0],0); },0.,600.0,1);

◆ getz0ResParam_N()

double FitFunctions::getz0ResParam_N ( float abstrketa,
float trkpt,
bool debug = false )

Definition at line 7 of file FakeTrackSmearer.h.

19 {
20 #include "FitFunctions/URD/d0Fitparam_N.C"
21 #include "FitFunctions/URD/z0Fitparam_N.C"
22 #include "FitFunctions/URD/effFitparam_N.C"
23 #include "FitFunctions/URD/effFitparam_LRT.C"
24 #include "FitFunctions/URD/ptqoptFitparam_N.C"
25}
26
27
29{
30 public:
31 FakeTrackSmearer(const std::string & InstanceName, long long randomseed=0, bool verbose=false)
32 : m_baseName (InstanceName),
33 m_verbose (verbose),
34 m_myRandom (new TRandom3(randomseed))
35 {
36 Prepare();
37 Tracks.clear();
38
39 // Set these in order to define the scenario:
40 //SetSigmaScaleFactor(1.0);
41 //SetResolutionPtCutOff(5.0);
42 //UseResolutionPtCutOff(true);
43
44 }
45 //
46 FakeTrackSmearer(const FakeTrackSmearer & other) = delete;
47 FakeTrackSmearer & operator=(const FakeTrackSmearer & other) = delete;
48
49// prepare the functions to use
50 void Prepare()
51 {
52 printf("Entering Prepare\n");
53 std::string name;
54
55 name="d0res_eta"+m_baseName; //pt=10GeV
56 d0res_eta=new TF1(name.c_str(),[&](double*x,double*p){return d0ResFunc(x[0],p[0]=10.,0); },0.0,4.0,1);
57 name="z0res_eta"+m_baseName;
58 z0res_eta=new TF1(name.c_str(),[&](double*x,double*p){return z0ResFunc(x[0],p[0]=10.,0); },0.0,4.0,1);
59 name="curvres_eta"+m_baseName;
60 curvres_eta=new TF1(name.c_str(),[&](double*x,double*p){return curvResFunc(x[0],p[0]=10.,0); },0.0,4.0,1);
61
62 name="d0ref_eta"+m_baseName;
63 d0ref_eta=new TF1(name.c_str(),[&](double*x,double*p){return d0RefFunc(x[0],p[0]=10.,0); },0.0,4.0,1);
64 name="z0ref_eta"+m_baseName;
65 z0ref_eta=new TF1(name.c_str(),[&](double*x,double*p){return z0RefFunc(x[0],p[0]=10.,0); },0.0,4.0,1);
66
67
68 name="d0res_pt"+m_baseName; //eta=1
69 d0res_pt=new TF1(name.c_str(),[&](double*x,double*p){return d0ResFunc(p[0]=1.,x[0],0); },1.0,200.0,1);
70 name="z0res_pt"+m_baseName;
71 z0res_pt=new TF1(name.c_str(),[&](double*x,double*p){return z0ResFunc(p[0]=1.,x[0],0); },1.0,200.0,1);
72 name="curvres_pt"+m_baseName;
73 curvres_pt=new TF1(name.c_str(),[&](double*x,double*p){return curvResFunc(p[0]=1.,x[0],0); },1.0,200.0,1);
74
75 name="d0ref_pt"+m_baseName;
76 d0ref_pt=new TF1(name.c_str(),[&](double*x,double*p){return d0RefFunc(p[0]=1.,x[0],0); },1.0,200.0,1);
77 name="z0ref_pt"+m_baseName;
78 z0ref_pt=new TF1(name.c_str(),[&](double*x,double*p){return z0RefFunc(p[0]=1.,x[0],0); },1.0,200.0,1);
79
80 name="effLRT_d0"+m_baseName;
81 m_parameterizedEfficiency_lowd0_LRT = 10.;
82 m_parameterizedEfficiency_highd0_LRT = 400.;
83 effLRT_d0=new TF1(name.c_str(),[&](double*x, double*p){p[0]=1.;return effFuncLRT(x[0],0); },0.,600.0,1);
84
85 }
86
87