CGEM BOSS 6.6.5.f
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtParticle.cc File Reference
#include "EvtGenBase/EvtPatches.hh"
#include <iostream>
#include <math.h>
#include <fstream>
#include <stdio.h>
#include <stdlib.h>
#include <sys/stat.h>
#include <strstream>
#include "EvtGenBase/EvtParticle.hh"
#include "EvtGenBase/EvtId.hh"
#include "EvtGenBase/EvtRandom.hh"
#include "EvtGenBase/EvtRadCorr.hh"
#include "EvtGenBase/EvtPDL.hh"
#include "EvtGenBase/EvtDecayTable.hh"
#include "EvtGenBase/EvtDiracParticle.hh"
#include "EvtGenBase/EvtScalarParticle.hh"
#include "EvtGenBase/EvtVectorParticle.hh"
#include "EvtGenBase/EvtTensorParticle.hh"
#include "EvtGenBase/EvtPhotonParticle.hh"
#include "EvtGenBase/EvtRaritaSchwingerParticle.hh"
#include "EvtGenBase/EvtNeutrinoParticle.hh"
#include "EvtGenBase/EvtStringParticle.hh"
#include "EvtGenBase/EvtStdHep.hh"
#include "EvtGenBase/EvtSecondary.hh"
#include "EvtGenBase/EvtReport.hh"
#include "EvtGenBase/EvtGenKine.hh"
#include "EvtGenBase/EvtCPUtil.hh"
#include "EvtGenBase/EvtParticleFactory.hh"
#include "EvtGenBase/EvtSpinDensity.hh"

Go to the source code of this file.

Functions

void init_vector (EvtParticle **part)
 
void init_scalar (EvtParticle **part)
 
void init_tensor (EvtParticle **part)
 
void init_dirac (EvtParticle **part)
 
void init_photon (EvtParticle **part)
 
void init_raritaschinger (EvtParticle **part)
 
void init_neutrino (EvtParticle **part)
 
void init_string (EvtParticle **part)
 
std::string IntToStr (int a)
 

Function Documentation

◆ init_dirac()

void init_dirac ( EvtParticle **  part)

Definition at line 1049 of file EvtParticle.cc.

1049 {
1050 *part = (EvtParticle *) new EvtDiracParticle;
1051}

◆ init_neutrino()

void init_neutrino ( EvtParticle **  part)

Definition at line 1061 of file EvtParticle.cc.

1061 {
1062 *part = (EvtParticle *) new EvtNeutrinoParticle;
1063}

◆ init_photon()

void init_photon ( EvtParticle **  part)

Definition at line 1053 of file EvtParticle.cc.

1053 {
1054 *part = (EvtParticle *) new EvtPhotonParticle;
1055}

◆ init_raritaschinger()

void init_raritaschinger ( EvtParticle **  part)

Definition at line 1057 of file EvtParticle.cc.

◆ init_scalar()

void init_scalar ( EvtParticle **  part)

Definition at line 1041 of file EvtParticle.cc.

1041 {
1042 *part = (EvtParticle *) new EvtScalarParticle;
1043}

◆ init_string()

void init_string ( EvtParticle **  part)

Definition at line 1065 of file EvtParticle.cc.

1065 {
1066 *part = (EvtParticle *) new EvtStringParticle;
1067}

◆ init_tensor()

void init_tensor ( EvtParticle **  part)

Definition at line 1045 of file EvtParticle.cc.

1045 {
1046 *part = (EvtParticle *) new EvtTensorParticle;
1047}

◆ init_vector()

void init_vector ( EvtParticle **  part)

Definition at line 1036 of file EvtParticle.cc.

1036 {
1037 *part = (EvtParticle *) new EvtVectorParticle;
1038}

◆ IntToStr()

std::string IntToStr ( int  a)

Definition at line 1209 of file EvtParticle.cc.

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

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