1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
7 * Permission to use, copy, modify and distribute this software and its *
8 * documentation strictly for non-commercial purposes is hereby granted *
9 * without fee, provided that the above copyright notice appears in all *
10 * copies and that both the copyright notice and this permission notice *
11 * appear in the supporting documentation. The authors make no claims *
12 * about the suitability of this software for any purpose. It is *
13 * provided "as is" without express or implied warranty. *
14 **************************************************************************/
16 //_________________________________________________________________________
17 // Algorithm class to identify the type of particle from the PHOS TrackSegment alone
18 //*-- Author : Y. Schutz SUBATECH
19 //////////////////////////////////////////////////////////////////////////////
21 // --- ROOT system ---
23 // --- Standard library ---
27 // --- AliRoot header files ---
29 #include "AliPHOSPIDv1.h"
30 #include "AliPHOSTrackSegment.h"
31 #include "AliPHOSRecParticle.h"
33 ClassImp( AliPHOSPIDv1)
36 //____________________________________________________________________________
37 AliPHOSPIDv1::AliPHOSPIDv1()
43 //____________________________________________________________________________
44 AliPHOSPIDv1::~AliPHOSPIDv1()
50 //____________________________________________________________________________
51 void AliPHOSPIDv1::GetParticleType(TrackSegmentsList * trsl, RecParticlesList * rpl)
53 // main function, does the job
56 AliPHOSTrackSegment * tracksegment ;
59 while ( (tracksegment = (AliPHOSTrackSegment *)next()) ) {
60 new( (*rpl)[index] ) AliPHOSRecParticle(tracksegment) ;