new( (*recParticles)[index] ) AliPHOSRecParticle() ;
rp = (AliPHOSRecParticle *)recParticles->At(index) ;
- rp->SetTraskSegment(index) ;
+ rp->SetTrackSegment(index) ;
rp->SetIndexInList(index) ;
AliPHOSEmcRecPoint * emc = 0 ;
// --- AliRoot header files ---
-
+#include "AliHeader.h"
#include "AliPHOSRecParticle.h"
#include "AliPHOSGetter.h"
#include "TParticle.h"
//____________________________________________________________________________
const Int_t AliPHOSRecParticle::GetNPrimaries() const
+{
+ AliHeader *h = gAlice->GetHeader();
+ return h->GetNprimary();
+ // return gAlice->GetNtrack();
+}
+
+//____________________________________________________________________________
+const Int_t AliPHOSRecParticle::GetNPrimariesToRecParticles() const
{
Int_t rv = 0 ;
//____________________________________________________________________________
const TParticle * AliPHOSRecParticle::GetPrimary(Int_t index) const
{
- if ( index > GetNPrimaries() ) {
+ if ( index > GetNPrimariesToRecParticles() ) {
if (fDebug)
cout << "WARNING : AliPHOSRecParticle::GetPrimary -> " << index << " is larger that the number of primaries "
<< GetNPrimaries() << endl ;
AliPHOSRecParticle(const AliPHOSRecParticle & rp) ; // ctor
virtual ~AliPHOSRecParticle(){ }
- Int_t GetPHOSTSIndex()const { return fPHOSTrackSegment ; }
- virtual const Int_t GetNPrimaries() const ;
- virtual const TParticle * GetPrimary(Int_t index) const ;
- void SetDebug() { fDebug = kTRUE ; }
- void UnsetDebug() { fDebug = kFALSE ; }
- void SetTraskSegment(Int_t index){fPHOSTrackSegment = index; }
+ Int_t GetPHOSTSIndex()const { return fPHOSTrackSegment ; }
+ virtual const Int_t GetNPrimariesToRecParticles() const ;
+ virtual const Int_t GetNPrimaries() const ;
+ virtual const TParticle * GetPrimary(Int_t index) const ;
+ void SetDebug() { fDebug = kTRUE ; }
+ void UnsetDebug() { fDebug = kFALSE ; }
+ void SetTrackSegment(Int_t index){fPHOSTrackSegment = index; }
typedef TClonesArray RecParticlesList ;