BOSS
7.1.1
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
c
d
e
f
g
i
l
m
n
o
p
r
s
t
u
v
w
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
v
w
x
z
Typedefs
c
d
e
g
h
i
l
m
n
o
p
r
s
t
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 Symbols
:
a
b
c
d
e
f
g
i
k
l
m
n
o
p
r
s
t
v
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
h
i
j
k
l
m
n
p
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
▼
BOSS
Used Packages
Requirements
►
How to use the ERS package
Todo List
►
Namespaces
►
Classes
▼
Files
▼
File List
▼
7.1.1
►
Analysis
►
BesCxxPolicy
►
BesExamples
►
BesPolicy
►
Calibration
►
Control
►
Database
►
DetectorDescription
►
DistBoss
►
DQA
►
Emc
►
Event
►
EventDisplay
►
EventFilter
►
EvtPreSelect
►
External
▼
Generator
►
Babayaga
►
BabayagaNLO
►
BesBdkRc
►
BesEvtGen
►
BesGenInterface
►
BesGenModule
►
BesTwogam
►
Bhlumi
►
Bhwide
►
CosmicGenerator
►
Eepipi
►
EeTo4e
►
EeToeeV
►
Ekhara
►
GenAnalysisTools
►
GeneratorModule
►
GeneratorObject
►
GeneratorUtil
▼
KKMC
▼
KKMC-00-01-02
▼
KKMC
►
KKMC.h
►
KKMCRandom.h
►
ReadEb.h
►
ReadME.h
►
src
►
McEventSelector
►
Mcgpj
►
Phokhara
►
SingleParticleGun
►
InstallArea
►
LumTauAlg
►
MagneticField
►
Mdc
►
Muc
►
OfflineEvtFilter
►
Reconstruction
►
RootPolicy
►
Simulation
►
Tof
►
Trigger
►
Utilities
►
Validation
►
File Members
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
Loading...
Searching...
No Matches
ReadEb.h
Go to the documentation of this file.
1
/****************************************
2
* Read CMS energy from data base for
3
* psi(3770) production
4
*
5
* 2012-1-05 created pingrg
6
*
7
***************************************/
8
#ifndef DTagAlg_ReadBeamInfFromDb_H
9
#define DTagAlg_ReadBeamInfFromDb_H
10
11
#include "CLHEP/Vector/ThreeVector.h"
12
#include "
DatabaseSvc/IDatabaseSvc.h
"
13
#include <iostream>
14
#include <mysql.h>
15
16
17
class
ReadEb
{
18
19
public
:
20
21
ReadEb
(
int
run):
22
m_run(-1),
23
m_isRunValid(
false
),
24
m_beamE(0),
25
m_beta(0.011,0,0),
26
m_usecbE(
true
){
27
if
( run != previousRun) {
28
previousRun = run;
29
ReadDb(run);
30
}
31
}
21
ReadEb
(
int
run): {
…
}
32
33
virtual
~ReadEb
() {}
34
35
double
getEcms
(){
return
m_Ecms;}
36
double
getXangle
(){
return
m_xangle;}
37
inline
CLHEP::Hep3Vector
getbeta
(){
return
m_beta;}
38
inline
bool
setcalib
(
bool
calib){m_usecbE=calib;}
39
40
private
:
41
MYSQL
* OpenDb()
const
;
42
void
ReadDb(
int
run);
43
void
CloseDb(
MYSQL
* mysql)
const
;
44
45
IDatabaseSvc
* m_dbsvc;
46
int
m_run;
47
bool
m_isRunValid;
48
double
m_beamE;
49
static
double
m_Ecms;
50
static
double
m_xangle;
51
bool
m_usecbE;
52
CLHEP::Hep3Vector m_beta;
53
static
int
previousRun;
54
};
17
class
ReadEb
{
…
};
55
56
57
#endif
true
#define true
Definition
BesCxxPolicy/BesCxxPolicy-00-02-00/CxxFeatures/config.h:19
false
#define false
Definition
BesCxxPolicy/BesCxxPolicy-00-02-00/CxxFeatures/config.h:22
IDatabaseSvc.h
MYSQL
struct st_mysql MYSQL
Definition
MysqlConnection.h:11
IDatabaseSvc
Definition
IDatabaseSvc.h:15
ReadEb
Definition
ReadEb.h:17
ReadEb::setcalib
bool setcalib(bool calib)
Definition
ReadEb.h:38
ReadEb::~ReadEb
virtual ~ReadEb()
Definition
ReadEb.h:33
ReadEb::getXangle
double getXangle()
Definition
ReadEb.h:36
ReadEb::getEcms
double getEcms()
Definition
ReadEb.h:35
ReadEb::getbeta
CLHEP::Hep3Vector getbeta()
Definition
ReadEb.h:37
ReadEb::ReadEb
ReadEb(int run)
Definition
ReadEb.h:21
7.1.1
Generator
KKMC
KKMC-00-01-02
KKMC
ReadEb.h
Generated by
1.12.0