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 ///////////////////////////////////////////////////////////////////////////////
20 // class for RICH reconstruction //
22 ///////////////////////////////////////////////////////////////////////////////
25 #include "AliRICHReconstructor.h"
26 #include "AliRunLoader.h"
28 #include "AliRICHClusterFinder.h"
31 ClassImp(AliRICHReconstructor)
34 //_____________________________________________________________________________
35 void AliRICHReconstructor::Reconstruct(AliRunLoader* runLoader) const
37 // reconstruct clusters
39 AliRICH* rich = GetRICH(runLoader);
41 AliRICHClusterFinder clusterer(rich);
45 //_____________________________________________________________________________
46 void AliRICHReconstructor::FillESD(AliRunLoader* /*runLoader*/,
47 AliESD* /*esd*/) const
54 //_____________________________________________________________________________
55 AliRICH* AliRICHReconstructor::GetRICH(AliRunLoader* runLoader) const
57 // get the RICH detector
59 if (!runLoader->GetAliRun()) runLoader->LoadgAlice();
60 if (!runLoader->GetAliRun()) {
61 Error("GetRICH", "couldn't get AliRun object");
64 AliRICH* rich = (AliRICH*) runLoader->GetAliRun()->GetDetector("RICH");
66 Error("GetRICH", "couldn't get RICH detector");