]> git.uio.no Git - u/mrichter/AliRoot.git/blob - RICH/AliRICHReconstructor.cxx
Added functionalities in display the RICH event and pattern recognition. Minor bugs...
[u/mrichter/AliRoot.git] / RICH / AliRICHReconstructor.cxx
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 ///////////////////////////////////////////////////////////////////////////////
18 //                                                                           //
19 // class for RICH reconstruction                                             //
20 //                                                                           //
21 ///////////////////////////////////////////////////////////////////////////////
22
23
24 #include "AliRICHReconstructor.h"
25 #include "AliRICHClusterFinder.h"
26 #include "AliRICHHelix.h"
27 #include <AliRunLoader.h>
28 #include <AliRun.h>
29 #include <AliESD.h>
30
31 ClassImp(AliRICHReconstructor)
32
33 //__________________________________________________________________________________________________
34 void AliRICHReconstructor::Reconstruct(AliRunLoader* pAL) const
35 {
36 //Finds clusters out of digits
37   AliDebug(1,"Start cluster finder.");AliRICHClusterFinder clus(GetRICH(pAL));  clus.Exec();
38 }
39 //__________________________________________________________________________________________________
40 void AliRICHReconstructor::FillESD(AliRunLoader* /*pAL*/, AliESD* /*pESD*/) const
41 {
42 //All is done in AliRICHTracker. Nothing to do here.
43 }//FillESD
44 //__________________________________________________________________________________________________
45 AliRICH* AliRICHReconstructor::GetRICH(AliRunLoader* pAL) const
46 {
47 // get the RICH detector
48
49   if (!pAL->GetAliRun()) pAL->LoadgAlice();
50   if (!pAL->GetAliRun()) {AliError("couldn't get AliRun object"); return NULL;  }
51   AliRICH* pRich = (AliRICH*) pAL->GetAliRun()->GetDetector("RICH");
52   if (!pRich) {AliError("couldn't get RICH detector");    return NULL;  }
53   return pRich;
54 }
55 //__________________________________________________________________________________________________