BOSS
7.1.2
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.2
►
Analysis
►
BesCxxPolicy
►
BesExamples
►
BesPolicy
►
Calibration
►
Control
►
Database
►
DetectorDescription
►
DistBoss
►
DQA
►
Emc
►
Event
►
EventDisplay
►
EventFilter
►
EvtPreSelect
►
External
▼
Generator
►
Babayaga
►
BabayagaNLO
►
BesBdkRc
▼
BesEvtGen
▼
BesEvtGen-00-04-30
►
EvtGen_i
▼
src
▼
EvtGen
▼
EvtGenBase
►
Evt3Rank3C.cc
►
Evt3Rank3C.hh
►
EvtAbsBinning.hh
EvtAbsLineShape.cc
►
EvtAbsLineShape.hh
►
EvtAbsRadCorr.hh
EvtAmp.cc
►
EvtAmp.hh
►
EvtAmpAmpPdf.hh
►
EvtAmpFactory.hh
EvtAmpIndex.cc
►
EvtAmpIndex.hh
►
EvtAmplitude.hh
►
EvtAmplitudeSum.hh
►
EvtAmpPdf.hh
EvtAmpSubIndex.cc
►
EvtAmpSubIndex.hh
EvtBlattWeisskopf.cc
►
EvtBlattWeisskopf.hh
EvtBreitWignerPdf.cc
►
EvtBreitWignerPdf.hh
EvtCGCoefSingle.cc
►
EvtCGCoefSingle.hh
►
EvtComplex.cc
►
EvtComplex.hh
EvtConst.cc
►
EvtConst.hh
EvtCPUtil.cc
►
EvtCPUtil.hh
EvtCubicSpline.cc
►
EvtCubicSpline.hh
►
EvtCyclic3.cc
►
EvtCyclic3.hh
►
EvtDalitzCoord.cc
►
EvtDalitzCoord.hh
EvtDalitzFlatPdf.cc
►
EvtDalitzFlatPdf.hh
EvtDalitzPlot.cc
►
EvtDalitzPlot.hh
EvtDalitzPoint.cc
►
EvtDalitzPoint.hh
►
EvtDalitzReso.cc
►
EvtDalitzReso.hh
EvtDalitzResPdf.cc
►
EvtDalitzResPdf.hh
EvtDecayAmp.cc
►
EvtDecayAmp.hh
EvtDecayBase.cc
►
EvtDecayBase.hh
EvtDecayIncoherent.cc
►
EvtDecayIncoherent.hh
►
EvtDecayMode.cc
►
EvtDecayMode.hh
EvtDecayParm.cc
►
EvtDecayParm.hh
EvtDecayProb.cc
►
EvtDecayProb.hh
►
EvtDecayTable.cc
►
EvtDecayTable.hh
EvtDecayTag.cc
►
EvtDecayTag.hh
EvtdFunction.cc
►
EvtdFunction.hh
EvtdFunctionSingle.cc
►
EvtdFunctionSingle.hh
EvtDiracParticle.cc
►
EvtDiracParticle.hh
►
EvtDiracSpinor.cc
►
EvtDiracSpinor.hh
EvtEulerAngles.cc
►
EvtEulerAngles.hh
EvtEvalHelAmp.cc
►
EvtEvalHelAmp.hh
►
EvtFlatAmp.hh
EvtFlatLineShape.cc
►
EvtFlatLineShape.hh
EvtFlatte.cc
►
EvtFlatte.hh
EvtFSPick.cc
►
EvtFSPick.hh
►
EvtGammaMatrix.cc
►
EvtGammaMatrix.hh
►
EvtGenKine.cc
►
EvtGenKine.hh
►
EvtHelSys.cc
►
EvtHelSys.hh
EvtHighSpinParticle.cc
►
EvtHighSpinParticle.hh
EvtHis2F.cc
►
EvtHis2F.hh
►
EvtId.cc
►
EvtId.hh
EvtIdSet.cc
►
EvtIdSet.hh
EvtIntegPdf1D.cc
►
EvtIntegPdf1D.hh
EvtIntervalFlatPdf.cc
►
EvtIntervalFlatPdf.hh
►
EvtKine.cc
►
EvtKine.hh
►
EvtMacros.hh
EvtManyDeltaFuncLineShape.cc
►
EvtManyDeltaFuncLineShape.hh
EvtMassAmp.cc
►
EvtMassAmp.hh
►
EvtMatrix.hh
EvtMBreitWigner.cc
►
EvtMBreitWigner.hh
EvtMHelAmp.cc
►
EvtMHelAmp.hh
EvtMNode.cc
►
EvtMNode.hh
EvtModel.cc
►
EvtModel.hh
EvtModelAlias.cc
►
EvtModelAlias.hh
EvtMParticle.cc
►
EvtMParticle.hh
►
EvtMRes.hh
EvtMTree.cc
►
EvtMTree.hh
EvtMTrivialLS.cc
►
EvtMTrivialLS.hh
EvtMultiChannelParser.cc
►
EvtMultiChannelParser.hh
EvtmyEulerAngles.cc
►
EvtmyEulerAngles.hh
EvtNeutrinoParticle.cc
►
EvtNeutrinoParticle.hh
EvtNT3.cc
►
EvtNT3.hh
EvtOrthogVector.cc
►
EvtOrthogVector.hh
EvtParityC.cc
►
EvtParityC.hh
►
EvtParser.cc
►
EvtParser.hh
►
EvtParticle.cc
►
EvtParticle.hh
EvtParticleDecay.cc
►
EvtParticleDecay.hh
EvtParticleDecayList.cc
►
EvtParticleDecayList.hh
EvtParticleFactory.cc
►
EvtParticleFactory.hh
EvtPartProp.cc
►
EvtPartProp.hh
EvtPatches.hh
►
EvtPdf.hh
►
EvtPdfMax.hh
►
EvtPdfSum.hh
EvtPDL.cc
►
EvtPDL.hh
EvtPhotonParticle.cc
►
EvtPhotonParticle.hh
EvtPoint1D.cc
►
EvtPoint1D.hh
►
EvtPointPred.hh
EvtPolInt.cc
►
EvtPolInt.hh
►
EvtPredGen.hh
►
EvtPropagator.hh
EvtPropBreitWigner.cc
►
EvtPropBreitWigner.hh
EvtPropBreitWignerRel.cc
►
EvtPropBreitWignerRel.hh
EvtPto3PAmp.cc
►
EvtPto3PAmp.hh
EvtPto3PAmpFactory.cc
►
EvtPto3PAmpFactory.hh
EvtRadCorr.cc
►
EvtRadCorr.hh
EvtRandom.cc
►
EvtRandom.hh
EvtRandomEngine.cc
►
EvtRandomEngine.hh
►
EvtRanFor.cc
►
EvtRaritaSchwinger.cc
►
EvtRaritaSchwinger.hh
EvtRaritaSchwingerParticle.cc
►
EvtRaritaSchwingerParticle.hh
EvtRelBreitWignerBarrierFact.cc
►
EvtRelBreitWignerBarrierFact.hh
►
EvtReport.cc
►
EvtReport.hh
EvtResonance.cc
►
EvtResonance.hh
EvtResonance2.cc
►
EvtResonance2.hh
EvtScalarParticle.cc
►
EvtScalarParticle.hh
►
EvtSecondary.cc
►
EvtSecondary.hh
EvtSemiLeptonicAmp.cc
►
EvtSemiLeptonicAmp.hh
EvtSemiLeptonicBaryonAmp.cc
►
EvtSemiLeptonicBaryonAmp.hh
►
EvtSemiLeptonicFF.hh
EvtSemiLeptonicScalarAmp.cc
►
EvtSemiLeptonicScalarAmp.hh
EvtSemiLeptonicTensorAmp.cc
►
EvtSemiLeptonicTensorAmp.hh
EvtSemiLeptonicVectorAmp.cc
►
EvtSemiLeptonicVectorAmp.hh
►
EvtSpinAmp.cc
►
EvtSpinAmp.hh
►
EvtSpinDensity.cc
►
EvtSpinDensity.hh
►
EvtSpinType.hh
►
EvtStatus.hh
►
EvtStdHep.cc
►
EvtStdHep.hh
►
EvtStdlibRandomEngine.hh
►
EvtStreamAdapter.hh
►
EvtStreamInputIterator.hh
►
EvtStringHash.hh
EvtStringParticle.cc
►
EvtStringParticle.hh
EvtSymTable.cc
►
EvtSymTable.hh
►
EvtTensor3C.cc
►
EvtTensor3C.hh
►
EvtTensor4C.cc
►
EvtTensor4C.hh
EvtTensorParticle.cc
►
EvtTensorParticle.hh
►
EvtTwoBodyKine.cc
►
EvtTwoBodyKine.hh
►
EvtTwoBodyVertex.cc
►
EvtTwoBodyVertex.hh
►
EvtValError.cc
►
EvtValError.hh
►
EvtVector3C.cc
►
EvtVector3C.hh
►
EvtVector3R.cc
►
EvtVector3R.hh
►
EvtVector4C.cc
►
EvtVector4C.hh
►
EvtVector4R.cc
►
EvtVector4R.hh
EvtVectorParticle.cc
►
EvtVectorParticle.hh
►
EvtGenModels
►
EvtGen.cc
►
EvtGen.hh
►
phokhara
►
EvtDecay.cxx
ReadME.cxx
►
user
►
BesGenInterface
►
BesGenModule
►
BesTwogam
►
Bhlumi
►
Bhwide
►
CosmicGenerator
►
Eepipi
►
EeTo4e
►
EeToeeV
►
Ekhara
►
GenAnalysisTools
►
GeneratorModule
►
GeneratorObject
►
GeneratorUtil
►
KKMC
►
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
EvtFSPick.cc
Go to the documentation of this file.
1
//--------------------------------------------------------------------------
2
//
3
// Environment:
4
// This software is part of models developed at BES collaboration
5
// based on the EvtGen framework. If you use all or part
6
// of it, please give an appropriate acknowledgement.
7
//
8
// Copyright Information: See EvtGen/BesCopyright
9
// Copyright (A) 2006 Ping Rong-Gang @IHEP
10
//
11
// Module: EvtDecayTag.hh
12
//
13
// Description: Class to pick out the final state
14
//
15
// Modification history:
16
//
17
// Ping R.-G. December, 2011-Mar. Module created
18
//
19
//------------------------------------------------------------------------
20
//
21
22
#include "
EvtFSPick.hh
"
23
24
25
void
EvtFSPick::FSPick
(
EvtParticle
* par){
26
27
int
ndaug = par->
getNDaug
();
28
EvtId
eid=par->
getId
();
29
if
(ndaug < 2 &&
EvtPDL::getStdHep
(eid) != -22){
30
_EvtFS.push_back(par);
31
_fsid.push_back(eid);
32
// std::cout<<"I get FS "<<EvtPDL::getStdHep(eid)<<std::endl;
33
}
else
{
34
35
int
ND=0;
36
EvtParticle
*theD;
37
for
(
int
i=0;i<ndaug;i++){
38
EvtParticle
*theDaug = par->
getDaug
(i);
39
FSPick
(theDaug);
40
}
41
}
42
}
25
void
EvtFSPick::FSPick
(
EvtParticle
* par) {
…
}
43
44
45
void
EvtFSPick::setFinalStatePar
(std::vector <std::string> vnames){
46
if
(vnames.size()!= _EvtFS.size())
47
{std::cout<<
"EvtFSPick::The number in final state is inconsistent"
<<std::endl;abort();}
48
for
(
int
i=0;i<vnames.size();i++){
49
50
_vnames.push_back(vnames[i]);
51
EvtId
eid =
EvtPDL::getId
(std::string(vnames[i]));
52
_vId.push_back(eid);
53
54
// std::cout<<"FS= "<<EvtPDL::getStdHep(_vId[i])<<std::endl;
55
}
56
57
}
45
void
EvtFSPick::setFinalStatePar
(std::vector <std::string> vnames) {
…
}
58
59
60
61
std::vector <EvtVector4R>
EvtFSPick::getP4
(){
62
EvtVector4R
ptep;
63
int
nfs = _vnames.size();
64
std::vector <EvtVector4R> vp4;
65
for
(
int
i=0;i<nfs;i++) {
66
int
xid =
getIndex
(_vId[i]);
67
ptep= _EvtFS[xid]->getP4();
68
vp4.push_back(ptep);
69
}
70
return
vp4;
71
}
61
std::vector <EvtVector4R>
EvtFSPick::getP4
() {
…
}
72
73
std::vector <EvtVector4R>
EvtFSPick::getP4Lab
(){
74
EvtVector4R
ptep;
75
int
nfs = _vnames.size();
76
std::vector <EvtVector4R> vp4;
77
for
(
int
i=0;i<nfs;i++) {
78
int
xid =
getIndex
(_vId[i]);
79
ptep= _EvtFS[xid]->getP4Lab();
80
vp4.push_back(ptep);
81
}
82
return
vp4;
83
}
73
std::vector <EvtVector4R>
EvtFSPick::getP4Lab
() {
…
}
84
85
int
EvtFSPick::getIndex
(
EvtId
eid){
86
for
(
int
i=0;i<_vId.size();i++){
87
EvtId
pid = _fsid[i];
88
if
( eid == pid ){
89
EvtId
did =
EvtPDL::getId
(
"d"
);
90
_fsid[i] = did;
91
return
i;
92
}
93
}
94
std::cout<<
"EvtFSPick::Cannot find the particle "
95
<<
EvtPDL::getStdHep
(eid)
96
<<
" in the generated final state"
<<std::endl;
97
abort();
98
}
85
int
EvtFSPick::getIndex
(
EvtId
eid) {
…
}
EvtFSPick.hh
EvtFSPick::getP4Lab
std::vector< EvtVector4R > getP4Lab()
Definition
EvtFSPick.cc:73
EvtFSPick::getIndex
int getIndex(EvtId eid)
Definition
EvtFSPick.cc:85
EvtFSPick::setFinalStatePar
void setFinalStatePar(std::vector< std::string > vnames)
Definition
EvtFSPick.cc:45
EvtFSPick::getP4
std::vector< EvtVector4R > getP4()
Definition
EvtFSPick.cc:61
EvtFSPick::FSPick
void FSPick(EvtParticle *par)
Definition
EvtFSPick.cc:25
EvtId
Definition
EvtId.hh:27
EvtPDL::getStdHep
static int getStdHep(EvtId id)
Definition
EvtPDL.hh:56
EvtPDL::getId
static EvtId getId(const std::string &name)
Definition
EvtPDL.cc:287
EvtParticle
Definition
EvtParticle.hh:42
EvtParticle::getId
EvtId getId() const
Definition
EvtParticle.cc:112
EvtParticle::getNDaug
int getNDaug() const
Definition
EvtParticle.cc:124
EvtParticle::getDaug
EvtParticle * getDaug(int i)
Definition
EvtParticle.cc:84
EvtVector4R
Definition
EvtVector4R.hh:29
7.1.2
Generator
BesEvtGen
BesEvtGen-00-04-30
src
EvtGen
EvtGenBase
EvtFSPick.cc
Generated by
1.12.0