BOSS 7.0.4
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 1051 of file EvtParticle.cc.

1051 {
1052 *part = (EvtParticle *) new EvtDiracParticle;
1053}

◆ init_neutrino()

void init_neutrino ( EvtParticle **  part)

Definition at line 1063 of file EvtParticle.cc.

1063 {
1064 *part = (EvtParticle *) new EvtNeutrinoParticle;
1065}

◆ init_photon()

void init_photon ( EvtParticle **  part)

Definition at line 1055 of file EvtParticle.cc.

1055 {
1056 *part = (EvtParticle *) new EvtPhotonParticle;
1057}

◆ init_raritaschinger()

void init_raritaschinger ( EvtParticle **  part)

Definition at line 1059 of file EvtParticle.cc.

◆ init_scalar()

void init_scalar ( EvtParticle **  part)

Definition at line 1043 of file EvtParticle.cc.

1043 {
1044 *part = (EvtParticle *) new EvtScalarParticle;
1045}

◆ init_string()

void init_string ( EvtParticle **  part)

Definition at line 1067 of file EvtParticle.cc.

1067 {
1068 *part = (EvtParticle *) new EvtStringParticle;
1069}

◆ init_tensor()

void init_tensor ( EvtParticle **  part)

Definition at line 1047 of file EvtParticle.cc.

1047 {
1048 *part = (EvtParticle *) new EvtTensorParticle;
1049}

◆ init_vector()

void init_vector ( EvtParticle **  part)

Definition at line 1038 of file EvtParticle.cc.

1038 {
1039 *part = (EvtParticle *) new EvtVectorParticle;
1040}

◆ 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().