]>
Commit | Line | Data |
---|---|---|
6ad0bfa0 | 1 | /************************************************************************** |
2 | * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
3 | * * | |
4 | * Author: The ALICE Off-line Project. * | |
5 | * Contributors are mentioned in the code where appropriate. * | |
6 | * * | |
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 | **************************************************************************/ | |
15 | ||
16 | //_________________________________________________________________________ | |
17 | // Algorithm class to guess the type of particle from the PHOS TrackSegment alone | |
18 | //*-- Author : Y. Schutz SUBATECH | |
19 | ////////////////////////////////////////////////////////////////////////////// | |
20 | ||
21 | // --- ROOT system --- | |
22 | ||
23 | // --- Standard library --- | |
24 | ||
25 | #include <iostream> | |
26 | ||
27 | // --- AliRoot header files --- | |
28 | ||
29 | #include "AliPHOSParticleGuesserv1.h" | |
30 | #include "AliPHOSTrackSegment.h" | |
31 | #include "AliPHOSRecParticle.h" | |
32 | ||
33 | ClassImp( AliPHOSParticleGuesserv1) | |
34 | ||
35 | ||
36 | //____________________________________________________________________________ | |
37 | AliPHOSParticleGuesserv1::AliPHOSParticleGuesserv1() | |
38 | { | |
39 | // ctor | |
40 | ||
41 | } | |
42 | ||
43 | //____________________________________________________________________________ | |
44 | AliPHOSParticleGuesserv1::~AliPHOSParticleGuesserv1() | |
45 | { | |
46 | // dtor | |
47 | } | |
48 | ||
49 | ||
50 | //____________________________________________________________________________ | |
51 | void AliPHOSParticleGuesserv1::GuessParticleType(TrackSegmentsList * trsl, RecParticlesList * rpl) | |
52 | { | |
53 | // main function, does the job | |
54 | ||
55 | TIter next(trsl) ; | |
56 | AliPHOSTrackSegment * tracksegment ; | |
57 | Int_t index = 0 ; | |
58 | ||
59 | while ( (tracksegment = (AliPHOSTrackSegment *)next()) ) { | |
60 | new( (*rpl)[index] ) AliPHOSRecParticle(tracksegment) ; | |
61 | index++ ; | |
62 | } | |
63 | ||
64 | } | |
65 |