]> git.uio.no Git - u/mrichter/AliRoot.git/blame - RICH/AliRICHReconstructor.cxx
New geometry: SDD, cables and update on V11 (L. Gaudichet)
[u/mrichter/AliRoot.git] / RICH / AliRICHReconstructor.cxx
CommitLineData
121a60bd 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
121a60bd 16
17///////////////////////////////////////////////////////////////////////////////
18// //
19// class for RICH reconstruction //
20// //
21///////////////////////////////////////////////////////////////////////////////
22
23
24#include "AliRICHReconstructor.h"
121a60bd 25#include "AliRICHClusterFinder.h"
998b831f 26#include "AliRICHHelix.h"
27#include <AliRunLoader.h>
28#include <AliRun.h>
29#include <AliESD.h>
121a60bd 30
31ClassImp(AliRICHReconstructor)
32
998b831f 33//__________________________________________________________________________________________________
34void AliRICHReconstructor::Reconstruct(AliRunLoader* pAL) const
121a60bd 35{
998b831f 36//Finds clusters out of digits
37 AliDebug(1,"Start cluster finder.");AliRICHClusterFinder clus(GetRICH(pAL)); clus.Exec();
121a60bd 38}
998b831f 39//__________________________________________________________________________________________________
30c60010 40void AliRICHReconstructor::FillESD(AliRunLoader* /*pAL*/, AliESD* /*pESD*/) const
121a60bd 41{
30c60010 42//All is done in AliRICHTracker. Nothing to do here.
998b831f 43}//FillESD
44//__________________________________________________________________________________________________
45AliRICH* AliRICHReconstructor::GetRICH(AliRunLoader* pAL) const
121a60bd 46{
47// get the RICH detector
48
998b831f 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;
121a60bd 54}
998b831f 55//__________________________________________________________________________________________________