X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=FMD%2FAliFMDHit.cxx;h=76ec41a85ef1358556e49127870acab2435c5303;hb=67d14a154e71a881b0f313ab0f46edeba0aefb96;hp=980cd2c9ea7cbb9f6dbe65b988d21efc973b0c33;hpb=088f8e792ce3da25a5271d1d98a4d250d376e929;p=u%2Fmrichter%2FAliRoot.git diff --git a/FMD/AliFMDHit.cxx b/FMD/AliFMDHit.cxx index 980cd2c9ea7..76ec41a85ef 100644 --- a/FMD/AliFMDHit.cxx +++ b/FMD/AliFMDHit.cxx @@ -12,9 +12,13 @@ * about the suitability of this software for any purpose. It is * * provided "as is" without express or implied warranty. * **************************************************************************/ - /* $Id$ */ - +/** @file AliFMDHit.cxx + @author Christian Holm Christensen + @date Mon Mar 27 12:41:58 2006 + @brief Hit in the FMD + @ingroup FMD_sim +*/ //____________________________________________________________________ // // Hits in the FMD @@ -28,13 +32,15 @@ // Track stopping status. // Latest changes by Christian Holm Christensen // -#include "AliFMDHit.h" // ALIFMDHIT_H -#include "AliLog.h" // ALILOG_H + #include "Riostream.h" // ROOT_Riostream #include #include #include +#include "AliFMDHit.h" // ALIFMDHIT_H +// #include "AliFMDDebug.h" // ALIFMDDEBUG_H ALILOG_H + //____________________________________________________________________ ClassImp(AliFMDHit) #if 0 @@ -119,6 +125,29 @@ AliFMDHit::AliFMDHit(Int_t shunt, fZ = z; } +//____________________________________________________________________ +const char* +AliFMDHit::GetName() const +{ + // Get the name + static TString n; + n = Form("FMD%d%c[%2d,%3d]", fDetector,fRing,fSector,fStrip); + return n.Data(); +} + +//____________________________________________________________________ +const char* +AliFMDHit::GetTitle() const +{ + // Get the title + static TString t; + TDatabasePDG* pdgDB = TDatabasePDG::Instance(); + TParticlePDG* pdg = pdgDB->GetParticle(fPdg); + t = Form("%s (%d): %f MeV / %f cm", (pdg ? pdg->GetName() : "?"), + fTrack, fEdep, fLength); + return t.Data(); +} + //____________________________________________________________________ Float_t AliFMDHit::P() const