gMC->Gstpar(idtmed[715], "DRAY",0.) ;
gMC->Gstpar(idtmed[715], "STRA",2.) ;
+}
+
+//____________________________________________________________________________
+RecPointsList * AliPHOS::EmcRecPoints(Int_t evt)
+{
+ // returns the pointer to the EMCA RecPoints list
+ // if the list is empty, get it from TreeR on the disk file
+
+ RecPointsList * rv = 0 ;
+
+ if ( fEmcRecPoints )
+ rv = fEmcRecPoints ;
+
+ else {
+ fEmcRecPoints = new TClonesArray("AliPHOSEmcRecPoint", 100) ;
+ gAlice->GetEvent(evt) ;
+ TTree * fReconstruct = gAlice->TreeR() ;
+ fReconstruct->SetBranchAddress( "PHOSEmcRP", &fEmcRecPoints) ;
+ fReconstruct->GetEvent(0) ;
+ fEmcRecPoints->Expand( fEmcRecPoints->GetEntries() ) ;
+ rv = fEmcRecPoints ;
+ }
+
+ return rv ;
+
+}
+
+//____________________________________________________________________________
+RecParticlesList * AliPHOS::RecParticles(Int_t evt)
+{
+ // returns the pointer to the RecParticles list
+ // if the list is empty, get it from TreeR on the disk file
+
+ RecParticlesList * rv = 0 ;
+ if ( fRecParticles )
+ rv = fRecParticles ;
+
+ else {
+ fRecParticles = new TClonesArray("AliPHOSRecParticle", 100) ;
+ gAlice->GetEvent(evt) ;
+ TTree * fReconstruct = gAlice->TreeR() ;
+ fReconstruct->SetBranchAddress( "PHOSRP", &fRecParticles) ;
+ fReconstruct->GetEvent(0) ;
+ fRecParticles->Expand( fRecParticles->GetEntries() ) ;
+ rv = fRecParticles ;
+ }
+ return rv ;
+
+}
+
+//____________________________________________________________________________
+RecParticlesList * AliPHOS::TrackSegments(Int_t evt)
+{
+ // returns the pointer to the TrackSegments list
+ // if the list is empty, get it from TreeR on the disk file
+ TrackSegmentsList * rv = 0 ;
+
+ if ( fTrackSegments )
+ rv = fTrackSegments ;
+
+ else {
+ fTrackSegments = new TClonesArray("AliPHOSTrackSegment", 100) ;
+ gAlice->GetEvent(evt) ;
+ TTree * fReconstruct = gAlice->TreeR() ;
+ fReconstruct->SetBranchAddress( "PHOSTS", &fTrackSegments) ;
+ fReconstruct->GetEvent(0) ;
+ fTrackSegments->Expand( fTrackSegments->GetEntries() ) ;
+ rv = fTrackSegments ;
+ }
+
+ return rv ;
+
}
//*-- Author: Laurent Aphecetche & Yves Schutz (SUBATECH)
// --- ROOT system ---
+#include "TString.h"
// --- AliRoot header files ---
AliPHOS() : AliDetector() {}
virtual ~AliPHOS() ;
- virtual void CreateMaterials() ; // defines the material of the detector
+ virtual void CreateMaterials() ; // defines the material of the detector
virtual AliPHOSGeometry * GetGeometry() = 0 ;
- RecPointsList* EmcRecPoints() {return fEmcClusters;} // gets Array of cluster in the crystals
- RecParticlesList * RecParticles() { return fRecParticles ; } // gets Array of reconstructed particles
- TrackSegmentsList * TrackSegments(){return fTrackSegments ;} // gets Array of track segments
- virtual RecPointsList* PpsdRecPoints() = 0 ; // gets Array of clusters in the PPSD
+ RecPointsList* EmcRecPoints(Int_t evt=0) ; // gets Array of cluster in the crystals
+ RecParticlesList * RecParticles(Int_t evt = 0) ; // gets Array of reconstructed particles
+ TrackSegmentsList * TrackSegments(Int_t evt=0) ; // gets Array of track segments
+ virtual RecPointsList* PpsdRecPoints(Int_t evt=0)=0; // gets Array of clusters in the PPSD
+ virtual TString Version() {return TString(" ") ; }
protected:
- RecPointsList * fEmcClusters ; // The RecPoints (clusters) list in EMC
+ RecPointsList * fEmcRecPoints ; // The RecPoints (clusters) list in EMC
TrackSegmentsList * fTrackSegments ; // The TrackSegment list in PHOS
RecParticlesList * fRecParticles ; // The reconstructed particles list in PHOS