BOSS 7.1.1
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 1050 of file EvtParticle.cc.

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

◆ init_neutrino()

void init_neutrino ( EvtParticle ** part)

Definition at line 1062 of file EvtParticle.cc.

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

◆ init_photon()

void init_photon ( EvtParticle ** part)

Definition at line 1054 of file EvtParticle.cc.

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

◆ init_raritaschinger()

void init_raritaschinger ( EvtParticle ** part)

Definition at line 1058 of file EvtParticle.cc.

◆ init_scalar()

void init_scalar ( EvtParticle ** part)

Definition at line 1042 of file EvtParticle.cc.

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

◆ init_string()

void init_string ( EvtParticle ** part)

Definition at line 1066 of file EvtParticle.cc.

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

◆ init_tensor()

void init_tensor ( EvtParticle ** part)

Definition at line 1046 of file EvtParticle.cc.

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

◆ init_vector()

void init_vector ( EvtParticle ** part)

Definition at line 1037 of file EvtParticle.cc.

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

◆ IntToStr()

std::string IntToStr ( int a)

Definition at line 1210 of file EvtParticle.cc.

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

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