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 ///////////////////////////////////////////////////////////////////////////////
18 // class for PMD reconstruction //
20 ///////////////////////////////////////////////////////////////////////////////
22 #include "Riostream.h"
23 #include "AliPMDReconstructor.h"
25 #include "AliPMDClusterFinder.h"
26 #include "AliPMDtracker.h"
27 #include "AliRawReader.h"
28 #include "AliESDPmdTrack.h"
29 #include "AliESDEvent.h"
31 #include "AliRunInfo.h"
33 ClassImp(AliPMDReconstructor)
35 // ------------------------------------------------------------------------ //
37 void AliPMDReconstructor::Reconstruct(AliRawReader *rawReader,
38 TTree *clustersTree) const
40 // reconstruct clusters from Raw Data
41 // Event Species Added By satyajit
43 TString beamType = GetRunInfo()->GetBeamType();
45 if (((beamType.CompareTo("pp"))==0) ||
46 ((beamType.CompareTo("p-p"))==0)||
47 ((beamType.CompareTo("PP"))==0) ||
48 ((beamType.CompareTo("P-P"))==0)) {
52 else if ((beamType.CompareTo("A-A")) == 0 ||
53 (beamType.CompareTo("AA")) == 0) {
57 static AliPMDClusterFinder pmdClus;
58 pmdClus.Digits2RecPoints(rawReader, clustersTree, gRecoMode);
61 // ------------------------------------------------------------------------ //
62 void AliPMDReconstructor::Reconstruct(TTree *digitsTree,
63 TTree *clustersTree) const
65 // reconstruct clusters from Digits
66 // Setting reconstruction mode
68 // Added to Have Sepatrate Event Spcies
70 TString beamType = GetRunInfo()->GetBeamType();
72 if (((beamType.CompareTo("pp"))==0) ||
73 ((beamType.CompareTo("p-p"))==0)||
74 ((beamType.CompareTo("PP"))==0) ||
75 ((beamType.CompareTo("P-P"))==0)) {
79 else if ((beamType.CompareTo("A-A")) == 0 ||
80 (beamType.CompareTo("AA")) == 0) {
84 static AliPMDClusterFinder pmdClus;
85 pmdClus.Digits2RecPoints(digitsTree, clustersTree,gRecoMode);
89 // ------------------------------------------------------------------------ //
90 void AliPMDReconstructor::FillESD(AliRawReader* /*rawReader*/,
91 TTree* clustersTree, AliESDEvent* esd) const
93 static AliPMDtracker pmdtracker;
94 pmdtracker.LoadClusters(clustersTree);
95 pmdtracker.Clusters2Tracks(esd);
97 // ------------------------------------------------------------------------ //
98 void AliPMDReconstructor::FillESD(TTree * /*digitsTree*/,
99 TTree* clustersTree, AliESDEvent* esd) const
101 static AliPMDtracker pmdtracker;
102 pmdtracker.LoadClusters(clustersTree);
103 pmdtracker.Clusters2Tracks(esd);