12 #include "TEveManager.h"
13 #include "TEveGeoNode.h"
14 #include "TGeoManager.h"
15 #include "TDatabasePDG.h"
28 :TEveEventManager(
"FairEventManager",
""),
47 TEveManager::Create();
50 TGeoNode*
N= gGeoManager->GetTopNode();
51 TEveGeoTopNode* TNod=
new TEveGeoTopNode(gGeoManager, N);
52 gEve->AddGlobalElement(TNod);
53 gEve->FullRedraw3D(kTRUE);
54 fEvent= gEve->AddEvent(
this);
220 TDatabasePDG* pdgDB = TDatabasePDG::Instance();
222 const Double_t kAu2Gev=0.9314943228;
223 const Double_t khSlash = 1.0545726663e-27;
224 const Double_t kErg2Gev = 1/1.6021773349e-3;
225 const Double_t khShGev = khSlash*kErg2Gev;
226 const Double_t kYear2Sec = 3600*24*365.25;
231 if ( !pdgDB->GetParticle(1000010020) )
232 pdgDB->AddParticle(
"Deuteron",
"Deuteron",2*kAu2Gev+8.071e-3,kTRUE,
233 0,3,
"Ion",1000010020);
235 if ( !pdgDB->GetParticle(1000010030) )
236 pdgDB->AddParticle(
"Triton",
"Triton",3*kAu2Gev+14.931e-3,kFALSE,
237 khShGev/(12.33*kYear2Sec),3,
"Ion",1000010030);
239 if ( !pdgDB->GetParticle(1000020040) )
240 pdgDB->AddParticle(
"Alpha",
"Alpha",4*kAu2Gev+2.424e-3,kTRUE,
241 khShGev/(12.33*kYear2Sec),6,
"Ion",1000020040);
243 if ( !pdgDB->GetParticle(1000020030) )
244 pdgDB->AddParticle(
"HE3",
"HE3",3*kAu2Gev+14.931e-3,kFALSE,
245 0,6,
"Ion",1000020030);
249 if ( !pdgDB->GetParticle(50000050) )
250 pdgDB->AddParticle(
"Cherenkov",
"Cherenkov",0,kFALSE,
251 0,0,
"Special",50000050);
253 if ( !pdgDB->GetParticle(50000051) )
254 pdgDB->AddParticle(
"FeedbackPhoton",
"FeedbackPhoton",0,kFALSE,
255 0,0,
"Special",50000051);