00001
00002
00003
00004
00005
00006
00008
00009
00010 #include "AlMCtruth.h"
00011 #include "ParticleCodes.h"
00012 #include <strstream.h>
00013
00014
00015
00016
00017 char* AlMCtruth::name() const
00018 {
00019 if( qvec -> PA == GAMMA ) return "gamma";
00020 if( qvec -> PA == E_PLUS ) return "e+";
00021 if( qvec -> PA == E_MINUS ) return "e-";
00022 if( qvec -> PA == MU_PLUS ) return "mu+";
00023 if( qvec -> PA == MU_MINUS ) return "mu-";
00024 if( qvec -> PA == TAU_PLUS ) return "tau+";
00025 if( qvec -> PA == TAU_MINUS ) return "tau-";
00026 if( qvec -> PA == W_PLUS ) return "W+";
00027 if( qvec -> PA == W_MINUS ) return "W-";
00028 if( qvec -> PA == Z_ZERO ) return "Z0";
00029 if( qvec -> PA == NU_E ) return "nue";
00030 if( qvec -> PA == NU_E_BAR ) return "nue_bar";
00031 if( qvec -> PA == NU_MU ) return "numu";
00032 if( qvec -> PA == NU_MU_BAR ) return "numu_bar";
00033 if( qvec -> PA == NU_TAU ) return "nutau";
00034 if( qvec -> PA == NU_TAU_BAR ) return "nutau_bar";
00035 if( qvec -> PA == U_QUARK ) return "u";
00036 if( qvec -> PA == D_QUARK ) return "d";
00037 if( qvec -> PA == S_QUARK ) return "s";
00038 if( qvec -> PA == C_QUARK ) return "c";
00039 if( qvec -> PA == U_QUARK_BAR ) return "u_bar";
00040 if( qvec -> PA == D_QUARK_BAR ) return "d_bar";
00041 if( qvec -> PA == S_QUARK_BAR ) return "s_bar";
00042 if( qvec -> PA == C_QUARK_BAR ) return "c_bar";
00043 if( qvec -> PA == GLUON ) return "gluon";
00044 if( qvec -> PA == HIGGS ) return "Higgs";
00045 if( qvec -> PA == PIO ) return "pi0";
00046 if( qvec -> PA == PIP ) return "pi+";
00047 if( qvec -> PA == PIM ) return "pi-";
00048 return "particle not defined! ";
00049 }
00050
00051
00052 AlMCtruth::AlMCtruth(){}
00053 AlMCtruth::AlMCtruth(const AlMCtruth& oldM):QvecLink(oldM) {}
00054
00055
00056
00057 AlMCtruth::~AlMCtruth(){
00058 }
00059
00060
00061 void AlMCtruth::setMotherVector( AlephCollection< AlMCtruth* > VectorOfTracks )
00062 {
00063 Mother = VectorOfTracks;
00064 }
00065
00066
00067 void AlMCtruth::setDaughterVector( AlephCollection< AlMCtruth* > VectorOfTracks )
00068 {
00069 Daughter = VectorOfTracks;
00070 }
00071
00072
00073 AlephCollection<AlMCtruth*> AlMCtruth::getMotherVector() const
00074 {
00075 return Mother;
00076 }
00077
00078
00079 AlephCollection<AlMCtruth*> AlMCtruth::getDaughterVector() const
00080 {
00081 return Daughter;
00082 }
00083
00084
00085