BOSS
7.0.7
BESIII Offline Software System
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
x
z
Functions
a
b
c
d
e
f
g
i
l
m
n
o
p
r
s
t
u
v
w
z
Variables
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
v
w
x
z
Typedefs
b
c
d
e
g
h
i
l
m
n
o
p
r
s
t
v
Enumerations
Enumerator
a
b
c
d
e
f
i
k
l
m
n
o
p
r
s
t
u
w
x
z
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
:
_
a
b
c
d
e
f
g
h
i
j
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
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
m
n
p
r
s
t
v
w
Enumerations
b
c
d
e
f
g
h
i
k
l
m
n
p
r
s
t
v
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
z
Related Functions
:
a
b
c
d
e
f
g
i
k
l
m
n
o
p
r
s
t
w
x
Files
File List
File Members
All
!
$
_
a
b
c
d
e
f
g
h
i
j
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
j
l
m
n
o
p
q
r
s
t
u
v
w
x
Variables
!
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
p
q
r
s
t
u
v
w
z
Enumerations
Enumerator
a
b
c
d
e
f
g
h
i
k
m
n
o
p
r
s
t
u
w
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
Loading...
Searching...
No Matches
ElectronGenerator.h
Go to the documentation of this file.
1
//********************************************************************************
2
// This file is part of the Widget, a package for performing dE/dx calibration.
3
//
4
// Author: Jake Bennett
5
// Date: July 8, 2015
6
//
7
// ElectronGenerator is a class designed to generate or modify an electron sample
8
// for use in the WidgetPrep class.
9
//
10
// For additional details, see the Widget document.
11
//
12
//********************************************************************************
13
#ifndef ELECTRONGENERATOR_H
14
#define ELECTRONGENERATOR_H
15
16
#include <string>
17
#include <iostream>
18
#include <cmath>
19
20
#include "TFile.h"
21
#include "TTree.h"
22
#include "TF1.h"
23
#include "TH1F.h"
24
#include "TH2F.h"
25
#include "TString.h"
26
#include "TRandom.h"
27
#include "TMath.h"
28
29
#include "
WidgetHelpers/WidgetConstants.h
"
30
31
class
ElectronGenerator
{
32
33
public
:
34
35
ElectronGenerator
();
36
ElectronGenerator
(
int
nevents,
double
upperbg,
double
lowerbg );
37
virtual
~ElectronGenerator
() {};
38
39
// generate a sample of fake tracks
40
void
generateEvents
( TFile* outfile );
41
42
private
:
43
44
int
m_nevents;
// the number of events stored in the vectors below
45
46
double
m_upperbg;
// upper bound on beta-gamma
47
double
m_lowerbg;
// lower bound on beta-gamma
48
49
};
50
#endif
WidgetConstants.h
ElectronGenerator
Definition:
ElectronGenerator.h:31
ElectronGenerator::ElectronGenerator
ElectronGenerator()
Definition:
ElectronGenerator.cc:3
ElectronGenerator::~ElectronGenerator
virtual ~ElectronGenerator()
Definition:
ElectronGenerator.h:37
ElectronGenerator::generateEvents
void generateEvents(TFile *outfile)
Definition:
ElectronGenerator.cc:16
source
Mdc
DedxCalibAlg
DedxCalibAlg-00-01-20
share
template
HadronCalib
Widget
Widget
ElectronWidget
ElectronGenerator.h
Generated by
1.9.6