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 **************************************************************************/
18 //_________________________________________________________________________
19 // Implementation version v1 of the PHOS particle identifier
20 // Particle identification based on the
22 // - Preshower information (in MIXT or GPS2 geometries)
25 // CPV or Preshower clusters should be closer in PHOS plane than fCpvEmcDistance (in cm).
26 // This parameter can be set by method SetCpvtoEmcDistanceCut(Float_t cut)
28 // One can set desirable ID method by the function SetIdentificationMethod(option).
29 // Presently the following options can be used together or separately :
30 // - "disp": use dispersion cut on shower width
31 // (width can be set by method SetDispersionCut(Float_t cut)
32 // - "ell" : use cut on the axis of the ellipse, drawn around shower
33 // (this cut can be changed by SetShowerProfileCut(char* formula),
34 // where formula - any function of two variables f(lambda[0],lambda[1]).
35 // Shower is considered as EM if f() > 0 )
36 // One can visualize current cuts calling method PlotDispersionCuts().
39 // root [0] AliPHOSPIDv1 * p1 = new AliPHOSPIDv1("galice.root")
40 // Warning in <TDatabasePDG::TDatabasePDG>: object already instantiated
41 // root [1] p1->SetIdentificationMethod("disp ellipse")
42 // root [2] p1->ExecuteTask()
43 // root [3] AliPHOSPIDv1 * p2 = new AliPHOSPIDv1("galice1.root","ts1")
44 // Warning in <TDatabasePDG::TDatabasePDG>: object already instantiated
45 // // reading headers from file galice1.root and TrackSegments
46 // // with title "ts1"
47 // root [4] p2->SetRecParticlesBranch("rp1")
48 // // set file name for the branch RecParticles
49 // root [5] p2->ExecuteTask("deb all time")
50 // // available options
51 // // "deb" - prints # of reconstructed particles
52 // // "deb all" - prints # and list of RecParticles
53 // // "time" - prints benchmarking results
55 //*-- Author: Yves Schutz (SUBATECH) & Gines Martinez (SUBATECH) &
56 // Dmitri Peressounko (SUBATECH & Kurchatov Institute)
57 // Complitely redesined by Dmitri Peressounko, March 2001
59 // --- ROOT system ---
68 #include "TBenchmark.h"
69 // --- Standard library ---
74 // --- AliRoot header files ---
77 #include "AliGenerator.h"
79 #include "AliPHOSPIDv1.h"
80 #include "AliPHOSClusterizerv1.h"
81 #include "AliPHOSTrackSegment.h"
82 #include "AliPHOSTrackSegmentMakerv1.h"
83 #include "AliPHOSRecParticle.h"
84 #include "AliPHOSGeometry.h"
85 #include "AliPHOSGetter.h"
87 ClassImp( AliPHOSPIDv1)
89 //____________________________________________________________________________
90 AliPHOSPIDv1::AliPHOSPIDv1():AliPHOSPID()
96 fHeaderFileName = "" ;
97 fTrackSegmentsTitle= "" ;
98 fRecPointsTitle = "" ;
99 fRecParticlesTitle = "" ;
101 fRecParticlesInRun = 0 ;
104 //____________________________________________________________________________
105 AliPHOSPIDv1::AliPHOSPIDv1(const char * headerFile,const char * name) : AliPHOSPID(headerFile, name)
107 //ctor with the indication on where to look for the track segments
109 fFormula = new TFormula("LambdaCuts","(x>1)*(x<2.5)*(y>0)*(y<x)") ;
111 fCpvEmcDistance = 3.0 ;
113 fHeaderFileName = GetTitle() ;
114 fTrackSegmentsTitle = GetName() ;
115 fRecPointsTitle = GetName() ;
116 fRecParticlesTitle = GetName() ;
119 TString tempo(GetName()) ;
121 tempo.Append(Version()) ;
123 fRecParticlesInRun = 0 ;
129 //____________________________________________________________________________
130 AliPHOSPIDv1::~AliPHOSPIDv1()
135 //____________________________________________________________________________
136 Bool_t AliPHOSPIDv1::ReadTrackSegments(Int_t event)
138 // Reads TrackSegments an extracts the title of the RecPoints
139 // branch from which TS were made of.
140 // Then reads both TrackSegments and RecPoints.
142 //Fist read Track Segment Branch and extract RecPointsBranch from fTSMaker
144 // Get TreeR header from file
145 if(gAlice->TreeR()==0){
146 cerr << "ERROR: AliPHOSPIDv1::ReadTrackSegments -> There is no Reconstruction Tree" << endl;
150 // Find TrackSegments
151 TBranch * tsbranch = 0;
152 TBranch * tsmakerbranch = 0;
153 TObjArray * lob = (TObjArray*)gAlice->TreeR()->GetListOfBranches() ;
155 TBranch * branch = 0 ;
156 Bool_t phostsfound = kFALSE, tsmakerfound = kFALSE ;
158 TString taskName(GetName()) ;
159 taskName.ReplaceAll(Version(), "") ;
161 while ( (branch = (TBranch*)next()) && (!phostsfound || !tsmakerfound) ) {
162 if ( (strcmp(branch->GetName(), "PHOSTS")==0) && (strcmp(branch->GetTitle(), taskName.Data())==0) ) {
163 phostsfound = kTRUE ;
166 } else if ( (strcmp(branch->GetName(), "AliPHOSTrackSegmentMaker")==0) && (strcmp(branch->GetTitle(), taskName.Data())==0) ) {
167 tsmakerfound = kTRUE ;
168 tsmakerbranch = branch ;
171 if ( !phostsfound || !tsmakerfound ) {
172 cerr << "WARNING: AliPHOSPIDv1::ReadTrackSegments -> TrackSegments and/or TrackSegmentMaker branch with name " << taskName.Data()
173 << " not found" << endl ;
177 AliPHOSGetter * gime = AliPHOSGetter::GetInstance() ;
179 TClonesArray * trackSegments = gime->TrackSegments() ;
180 trackSegments->Clear() ;
181 tsbranch->SetAddress(&trackSegments) ;
183 AliPHOSTrackSegmentMaker * tsmaker = 0 ;
184 tsmakerbranch->SetAddress(&tsmaker) ;
185 tsmakerbranch->GetEntry(0) ;
186 TString tsmakerName( fRecParticlesTitle ) ;
187 tsmakerName.Append(tsmaker->Version()) ;
188 tsmaker = gime->TrackSegmentMaker(tsmakerName) ;
190 tsbranch->GetEntry(0) ;
191 tsmakerbranch->GetEntry(0) ;
193 fRecPointsTitle = tsmaker->GetRecPointsBranch() ;
196 TBranch * emcbranch = 0;
197 TBranch * cpvbranch = 0;
198 TBranch * clusterizerbranch = 0;
199 lob = (TObjArray*)gAlice->TreeR()->GetListOfBranches() ;
202 Bool_t phosemcfound = kFALSE, phoscpvfound = kFALSE, clusterizerfound = kFALSE ;
204 while ( (branch = (TBranch*)next2()) && (!phosemcfound || !phoscpvfound || !clusterizerfound) ) {
205 if ( (strcmp(branch->GetName(), "PHOSEmcRP")==0) && (strcmp(branch->GetTitle(), taskName.Data())==0) ) {
206 phosemcfound = kTRUE ;
210 else if ( (strcmp(branch->GetName(), "PHOSCpvRP")==0) && (strcmp(branch->GetTitle(), taskName.Data())==0) ) {
211 phoscpvfound = kTRUE ;
214 } else if ( (strcmp(branch->GetName(), "AliPHOSClusterizer")==0) && (strcmp(branch->GetTitle(), taskName.Data())==0) ) {
215 clusterizerfound = kTRUE ;
216 clusterizerbranch = branch ;
219 if ( !phosemcfound || !phoscpvfound || !clusterizerfound ) {
220 cerr << "WARNING: AliPHOSTrackPIDv1::ReadTrackSegments -> emc(cpv)RecPoints and/or Clusterizer branch with name " << taskName.Data()
221 << " not found" << endl ;
225 TObjArray * emcRecPoints = gime->EmcRecPoints() ;
226 emcRecPoints->Clear() ;
227 emcbranch->SetAddress(&emcRecPoints) ;
229 TObjArray * cpvRecPoints = gime->CpvRecPoints() ;
230 cpvRecPoints->Clear() ;
231 cpvbranch->SetAddress(&cpvRecPoints) ;
234 AliPHOSClusterizer * clusterizer = 0 ;
235 clusterizerbranch->SetAddress(&clusterizer) ;
236 clusterizerbranch->GetEntry(0) ;
237 TString clusterizerName( fTrackSegmentsTitle ) ;
238 clusterizerName.Append(clusterizer->Version()) ;
239 clusterizer = gime->Clusterizer(clusterizerName) ;
241 emcbranch->GetEntry(0) ;
242 cpvbranch->GetEntry(0) ;
243 clusterizerbranch->GetEntry(0) ;
249 //____________________________________________________________________________
250 Float_t AliPHOSPIDv1::GetDistance(AliPHOSEmcRecPoint * emc,AliPHOSRecPoint * cpv, Option_t * Axis)const
252 // Calculates the distance between the EMC RecPoint and the PPSD RecPoint
254 const AliPHOSGeometry * geom = AliPHOSGetter::GetInstance()->PHOSGeometry() ;
258 emc->GetLocalPosition(vecEmc) ;
259 cpv->GetLocalPosition(vecCpv) ;
260 if(emc->GetPHOSMod() == cpv->GetPHOSMod()){
262 // Correct to difference in CPV and EMC position due to different distance to center.
263 // we assume, that particle moves from center
264 Float_t dCPV = geom->GetIPtoOuterCoverDistance();
265 Float_t dEMC = geom->GetIPtoCrystalSurface() ;
267 vecCpv = dEMC * vecCpv - vecEmc ;
268 if (Axis == "X") return vecCpv.X();
269 if (Axis == "Y") return vecCpv.Y();
270 if (Axis == "Z") return vecCpv.Z();
271 if (Axis == "R") return vecCpv.Mag();
277 //____________________________________________________________________________
278 void AliPHOSPIDv1::Exec(Option_t * option)
282 if( strcmp(GetName(), "")== 0 )
285 if(strstr(option,"tim"))
286 gBenchmark->Start("PHOSPID");
288 if(strstr(option,"print")) {
293 gAlice->GetEvent(0) ;
294 //check, if the branch with name of this" already exits?
295 TObjArray * lob = (TObjArray*)gAlice->TreeR()->GetListOfBranches() ;
297 TBranch * branch = 0 ;
298 Bool_t phospidfound = kFALSE, pidfound = kFALSE ;
300 TString taskName(GetName()) ;
301 taskName.Remove(taskName.Index(Version())-1) ;
303 while ( (branch = (TBranch*)next()) && (!phospidfound || !pidfound) ) {
304 if ( (strcmp(branch->GetName(), "PHOSPID")==0) && (strcmp(branch->GetTitle(), taskName.Data())==0) )
305 phospidfound = kTRUE ;
307 else if ( (strcmp(branch->GetName(), "AliPHOSPID")==0) && (strcmp(branch->GetTitle(), taskName.Data())==0) )
311 if ( phospidfound || pidfound ) {
312 cerr << "WARNING: AliPHOSPIDv1::Exec -> RecParticles and/or PIDtMaker branch with name "
313 << taskName.Data() << " already exits" << endl ;
317 Int_t nevents = (Int_t) gAlice->TreeE()->GetEntries() ;
319 AliPHOSGetter * gime = AliPHOSGetter::GetInstance() ;
321 for(ievent = 0; ievent < nevents; ievent++){
323 gime->Event(ievent,"R") ;
325 // if(!ReadTrackSegments(ievent)) //reads TrackSegments for event ievent
330 WriteRecParticles(ievent);
332 if(strstr(option,"deb"))
333 PrintRecParticles(option) ;
336 if(strstr(option,"tim")){
337 gBenchmark->Stop("PHOSPID");
338 cout << "AliPHOSPID:" << endl ;
339 cout << " took " << gBenchmark->GetCpuTime("PHOSPID") << " seconds for PID "
340 << gBenchmark->GetCpuTime("PHOSPID")/nevents << " seconds per event " << endl ;
345 //____________________________________________________________________________
346 void AliPHOSPIDv1::Init()
348 // Make all memory allocations that are not possible in default constructor
349 // Add the PID task to the list of PHOS tasks
351 if ( strcmp(GetTitle(), "") == 0 )
352 SetTitle("galice.root") ;
354 TString taskName(GetName()) ;
355 taskName.Remove(taskName.Index(Version())-1) ;
357 AliPHOSGetter * gime = AliPHOSGetter::GetInstance(GetTitle(), taskName.Data()) ;
359 cerr << "ERROR: AliPHOSPIDv1::Init -> Could not obtain the Getter object !" << endl ;
363 //add Task to //YSAlice/tasks/Reconstructioner/PHOS
364 // TTask * aliceRe = (TTask*)gROOT->FindObjectAny("YSAlice/tasks/Reconstructioner") ;
365 // TTask * phosRe = (TTask*)aliceRe->GetListOfTasks()->FindObject("PHOS") ;
366 // phosRe->Add(this) ;
367 gime->PostPID(this) ;
368 // create a folder on the white board //YSAlice/WhiteBoard/RecParticles/PHOS/recparticlesName
369 gime->PostRecParticles(taskName.Data() ) ;
373 //____________________________________________________________________________
374 void AliPHOSPIDv1::MakeRecParticles(){
376 // Makes a RecParticle out of a TrackSegment
377 TString taskName(GetName()) ;
378 taskName.Remove(taskName.Index(Version())-1) ;
380 AliPHOSGetter * gime = AliPHOSGetter::GetInstance() ;
381 TObjArray * emcRecPoints = gime->EmcRecPoints(taskName) ;
382 TObjArray * cpvRecPoints = gime->CpvRecPoints(taskName) ;
383 TClonesArray * trackSegments = gime->TrackSegments(taskName) ;
384 TClonesArray * recParticles = gime->RecParticles(taskName) ;
385 recParticles->Clear();
387 TIter next(trackSegments) ;
388 AliPHOSTrackSegment * ts ;
390 AliPHOSRecParticle * rp ;
392 Bool_t ellips = fIDOptions.Contains("ell",TString::kIgnoreCase ) ;
393 Bool_t disp = fIDOptions.Contains("dis",TString::kIgnoreCase ) ;
395 while ( (ts = (AliPHOSTrackSegment *)next()) ) {
397 new( (*recParticles)[index] ) AliPHOSRecParticle() ;
398 rp = (AliPHOSRecParticle *)recParticles->At(index) ;
399 rp->SetTraskSegment(index) ;
401 AliPHOSEmcRecPoint * emc = 0 ;
402 if(ts->GetEmcIndex()>=0)
403 emc = (AliPHOSEmcRecPoint *) emcRecPoints->At(ts->GetEmcIndex()) ;
405 AliPHOSRecPoint * cpv = 0 ;
406 if(ts->GetCpvIndex()>=0)
407 cpv = (AliPHOSRecPoint *) cpvRecPoints->At(ts->GetCpvIndex()) ;
409 AliPHOSRecPoint * ppsd = 0 ;
410 if(ts->GetPpsdIndex()>=0)
411 ppsd= (AliPHOSRecPoint *) cpvRecPoints->At(ts->GetPpsdIndex()) ;
413 //set momentum and energy first
414 Float_t e = emc->GetEnergy() ;
415 TVector3 dir = GetMomentumDirection(emc,cpv,ppsd) ;
418 rp->SetMomentum(dir.X(),dir.Y(),dir.Z(),e) ;
421 //now set type (reconstructed) of the particle
422 Int_t showerprofile = 0; // 0 narrow and 1 wide
426 emc->GetElipsAxis(lambda) ;
427 if(fFormula->Eval(lambda[0],lambda[1]) <= 0 )
428 showerprofile = 1 ; // not narrow
432 if(emc->GetDispersion() > fDispersion )
433 showerprofile = 1 ; // not narrow
436 // Looking at the photon conversion detector
437 Int_t pcdetector= 0 ; //1 hit and 0 no hit
439 if(GetDistance(emc, ppsd, "R") < fCpvEmcDistance)
442 // Looking at the CPV detector
443 Int_t cpvdetector= 0 ; //1 hit and 0 no hit
445 if(GetDistance(emc, cpv, "R") < fCpvEmcDistance)
448 Int_t type = showerprofile + 2 * pcdetector + 4 * cpvdetector ;
450 rp->SetIndexInList(index) ;
456 //____________________________________________________________________________
457 void AliPHOSPIDv1:: Print(Option_t * option) const
459 // Print the parameters used for the particle type identification
460 cout << "=============== AliPHOSPID1 ================" << endl ;
461 cout << "Making PID "<< endl ;
462 cout << " Headers file: " << fHeaderFileName.Data() << endl ;
463 cout << " RecPoints branch title: " << fRecPointsTitle.Data() << endl ;
464 cout << " TrackSegments Branch title: " << fTrackSegmentsTitle.Data() << endl ;
465 cout << " RecParticles Branch title " << fRecParticlesTitle.Data() << endl;
466 cout << "with parameters: " << endl ;
467 cout << " Maximal EMC - CPV (PPSD) distance (cm) " << fCpvEmcDistance << endl ;
468 if(fIDOptions.Contains("dis",TString::kIgnoreCase ))
469 cout << " dispersion cut " << fDispersion << endl ;
470 if(fIDOptions.Contains("ell",TString::kIgnoreCase )){
471 cout << "Eliptic cuts function: " << endl ;
472 cout << fFormula->GetTitle() << endl ;
474 cout << "============================================" << endl ;
477 //____________________________________________________________________________
478 void AliPHOSPIDv1::SetShowerProfileCut(char * formula)
480 //set shape of the cut on the axis of ellipce, drown around shouer
481 //shower considered "narrow" if Formula(lambda[0],lambda[1]) > 0.
484 fFormula = new TFormula("Lambda Cut",formula) ;
486 //____________________________________________________________________________
487 void AliPHOSPIDv1::WriteRecParticles(Int_t event)
490 AliPHOSGetter *gime = AliPHOSGetter::GetInstance() ;
491 TString taskName(GetName()) ;
492 taskName.Remove(taskName.Index(Version())-1) ;
493 TClonesArray * recParticles = gime->RecParticles(taskName) ;
494 recParticles->Expand(recParticles->GetEntriesFast() ) ;
496 //Make branch in TreeR for RecParticles
498 if(gSystem->Getenv("CONFIG_SPLIT_FILE")!=0){ //generating file name
499 filename = new char[strlen(gAlice->GetBaseFile())+20] ;
500 sprintf(filename,"%s/PHOS.Reco.root",gAlice->GetBaseFile()) ;
503 TDirectory *cwd = gDirectory;
506 Int_t bufferSize = 32000 ;
507 TBranch * rpBranch = gAlice->TreeR()->Branch("PHOSRP",&recParticles,bufferSize);
508 rpBranch->SetTitle(fRecParticlesTitle);
510 rpBranch->SetFile(filename);
511 TIter next( rpBranch->GetListOfBranches());
513 while ((sb=(TBranch*)next())) {
514 sb->SetFile(filename);
520 Int_t splitlevel = 0 ;
521 AliPHOSPIDv1 * pid = this ;
522 TBranch * pidBranch = gAlice->TreeR()->Branch("AliPHOSPID","AliPHOSPIDv1",&pid,bufferSize,splitlevel);
523 pidBranch->SetTitle(fRecParticlesTitle);
525 pidBranch->SetFile(filename);
526 TIter next( pidBranch->GetListOfBranches());
528 while ((sb=(TBranch*)next())) {
529 sb->SetFile(filename);
537 gAlice->TreeR()->Write(0,kOverwrite) ;
541 //____________________________________________________________________________
542 void AliPHOSPIDv1::PlotDispersionCuts()const
544 // produces a plot of the dispersion cut
545 TCanvas* lambdas = new TCanvas("lambdas","Cuts on the ellipse axis",200,10,700,500);
547 if(fIDOptions.Contains("ell",TString::kIgnoreCase ) ){
548 TF2 * ell = new TF2("Elliptic Cuts",fFormula->GetName(),0,3,0,3) ;
549 ell->SetMinimum(0.0000001) ;
550 ell->SetMaximum(0.001) ;
551 ell->SetLineStyle(1) ;
552 ell->SetLineWidth(2) ;
556 if( fIDOptions.Contains("dis",TString::kIgnoreCase ) ){
557 TF2 * dsp = new TF2("dispersion","(y<x)*(x*x+y*y < [0]*[0])",0,3,0,3) ;
558 dsp->SetParameter(0,fDispersion) ;
559 dsp->SetMinimum(0.0000001) ;
560 dsp->SetMaximum(0.001) ;
561 dsp->SetLineStyle(1) ;
562 dsp->SetLineColor(2) ;
563 dsp->SetLineWidth(2) ;
566 if(fIDOptions.Contains("ell",TString::kIgnoreCase ) )
574 //____________________________________________________________________________
575 TVector3 AliPHOSPIDv1::GetMomentumDirection(AliPHOSEmcRecPoint * emc, AliPHOSRecPoint * cpv,AliPHOSRecPoint * ppsd)const
577 // Calculates the momentum direction:
578 // 1. if only a EMC RecPoint, direction is given by IP and this RecPoint
579 // 2. if a EMC RecPoint and one PPSD RecPoint, direction is given by the line through the 2 recpoints
580 // 3. if a EMC RecPoint and two PPSD RecPoints, dirrection is given by the average line through
581 // the 2 pairs of recpoints
582 // However because of the poor position resolution of PPSD the direction is always taken as if we were
585 TVector3 dir(0,0,0) ;
587 TVector3 emcglobalpos ;
590 emc->GetGlobalPosition(emcglobalpos, dummy) ;
593 // The following commented code becomes valid once the PPSD provides
594 // a reasonable position resolution, at least as good as EMC !
595 // TVector3 ppsdlglobalpos ;
596 // TVector3 ppsduglobalpos ;
597 // if( fPpsdLowRecPoint ){ // certainly a photon that has concerted
598 // fPpsdLowRecPoint->GetGlobalPosition(ppsdlglobalpos, mdummy) ;
599 // dir = emcglobalpos - ppsdlglobalpos ;
600 // if( fPpsdUpRecPoint ){ // not looks like a charged
601 // fPpsdUpRecPoint->GetGlobalPosition(ppsduglobalpos, mdummy) ;
602 // dir = ( dir + emcglobalpos - ppsduglobalpos ) * 0.5 ;
605 // else { // looks like a neutral
606 // dir = emcglobalpos ;
610 dir.SetZ( -dir.Z() ) ; // why ?
613 //account correction to the position of IP
614 Float_t xo,yo,zo ; //Coordinates of the origin
615 gAlice->Generator()->GetOrigin(xo,yo,zo) ;
616 TVector3 origin(xo,yo,zo);
621 //____________________________________________________________________________
622 void AliPHOSPIDv1::PrintRecParticles(Option_t * option)
624 // Print table of reconstructed particles
626 AliPHOSGetter *gime = AliPHOSGetter::GetInstance() ;
628 TString taskName(GetName()) ;
629 taskName.Remove(taskName.Index(Version())-1) ;
630 TClonesArray * recParticles = gime->RecParticles(taskName) ;
633 cout << "AliPHOSPIDv1: event "<<gAlice->GetEvNumber() << endl ;
634 cout << " found " << recParticles->GetEntriesFast() << " RecParticles " << endl ;
636 fRecParticlesInRun += recParticles->GetEntriesFast() ;
638 if(strstr(option,"all")) { // printing found TS
641 << " Index " << endl ;
645 // << " # of primaries "
646 // << " Primaries list " << endl;
649 for (index = 0 ; index < recParticles->GetEntries() ; index++) {
650 AliPHOSRecParticle * rp = (AliPHOSRecParticle * ) recParticles->At(index) ;
653 switch(rp->GetType()) {
654 case AliPHOSFastRecParticle::kNEUTRALEM:
655 strcpy( particle, "NEUTRAL_EM");
657 case AliPHOSFastRecParticle::kNEUTRALHA:
658 strcpy(particle, "NEUTRAL_HA");
660 case AliPHOSFastRecParticle::kGAMMA:
661 strcpy(particle, "GAMMA");
663 case AliPHOSFastRecParticle::kGAMMAHA:
664 strcpy(particle, "GAMMA_H");
666 case AliPHOSFastRecParticle::kABSURDEM:
667 strcpy(particle, "ABSURD_EM") ;
669 case AliPHOSFastRecParticle::kABSURDHA:
670 strcpy(particle, "ABSURD_HA") ;
672 case AliPHOSFastRecParticle::kELECTRON:
673 strcpy(particle, "ELECTRON") ;
675 case AliPHOSFastRecParticle::kCHARGEDHA:
676 strcpy(particle, "CHARGED_HA") ;
680 // Int_t * primaries;
682 // primaries = rp->GetPrimaries(nprimaries);
684 cout << setw(15) << particle << " "
685 << setw(3) << rp->GetIndexInList() << " " ;
686 // << setw(4) << nprimaries << " ";
687 // for (Int_t iprimary=0; iprimary<nprimaries; iprimary++)
688 // cout << setw(4) << primaries[iprimary] << " ";
691 cout << "-------------------------------------------" << endl ;