BOSS
7.1.1
BESIII Offline Software System
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
7.1.1
Mdc
DedxCalibAlg
DedxCalibAlg-00-02-01
share
template
HadronCalib
Widget
Widget
ElectronWidget
ElectronGenerator.h
Generated by
1.12.0