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 **************************************************************************/
17 ///////////////////////////////////////////////////////////////////////////////
19 // class for RICH reconstruction //
21 ///////////////////////////////////////////////////////////////////////////////
24 #include "AliRICHReconstructor.h"
25 #include "AliRICHClusterFinder.h"
26 #include "AliRICHHelix.h"
27 #include <AliRunLoader.h>
31 ClassImp(AliRICHReconstructor)
33 //__________________________________________________________________________________________________
34 void AliRICHReconstructor::Reconstruct(AliRunLoader* pAL) const
36 //Finds clusters out of digits
37 AliDebug(1,"Start cluster finder.");AliRICHClusterFinder clus(GetRICH(pAL)); clus.Exec();
39 //__________________________________________________________________________________________________
40 void AliRICHReconstructor::FillESD(AliRunLoader* /*pAL*/, AliESD* /*pESD*/) const
42 //All is done in AliRICHTracker. Nothing to do here.
44 //__________________________________________________________________________________________________
45 AliRICH* AliRICHReconstructor::GetRICH(AliRunLoader* pAL) const
47 // get the RICH detector
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; }
55 //__________________________________________________________________________________________________