BOSS 7.0.4
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtParticle.hh File Reference
#include <assert.h>
#include "EvtGenBase/EvtVector4R.hh"
#include "EvtGenBase/EvtSpinDensity.hh"
#include "EvtGenBase/EvtId.hh"
#include "EvtGenBase/EvtSpinType.hh"
#include <string>
#include "EvtGenModels/EvtGlobalSet.hh"

Go to the source code of this file.

Classes

class  EvtParticle
 

Functions

std::string IntToStr (int a)
 

Variables

const int MAX_DAUG =100
 
const int MAX_LEVEL =10
 
const int MAX_TRIES =10000
 

Function Documentation

◆ IntToStr()

std::string IntToStr ( int  a)

Definition at line 1211 of file EvtParticle.cc.

1212 {
1213 std::string ans;
1214 std::string ans1;
1215 int k = 10 ;
1216 while (a > 0 )
1217 {
1218 ans += char (a % 10 + 48 );
1219 a /= 10 ;
1220 }
1221 for ( int i = ans.size() - 1 ; i >= 0 ; i -- )
1222 {
1223 ans1 += ans[i];
1224 }
1225 return ans1;
1226}

Referenced by EvtParticle::dumpTreeRec(), and EvtParticle::writeTreeRec().

Variable Documentation

◆ MAX_DAUG

◆ MAX_LEVEL

const int MAX_LEVEL =10

Definition at line 39 of file EvtParticle.hh.

◆ MAX_TRIES

const int MAX_TRIES =10000

Definition at line 40 of file EvtParticle.hh.