]>
Commit | Line | Data |
---|---|---|
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 | ||
16 | /* $Id$ */ | |
17 | ||
18 | /////////////////////////////////////////////////////////////////////////////// | |
19 | // // | |
20 | // class for RICH reconstruction // | |
21 | // // | |
22 | /////////////////////////////////////////////////////////////////////////////// | |
23 | ||
24 | ||
25 | #include "AliRICHReconstructor.h" | |
26 | #include "AliRunLoader.h" | |
27 | #include "AliRun.h" | |
28 | #include "AliRICHClusterFinder.h" | |
29 | ||
30 | ||
31 | ClassImp(AliRICHReconstructor) | |
32 | ||
33 | ||
34 | //_____________________________________________________________________________ | |
35 | void AliRICHReconstructor::Reconstruct(AliRunLoader* runLoader) const | |
36 | { | |
37 | // reconstruct clusters | |
38 | ||
39 | AliRICH* rich = GetRICH(runLoader); | |
40 | if (!rich) return; | |
41 | AliRICHClusterFinder clusterer(rich); | |
42 | clusterer.Exec(); | |
43 | } | |
44 | ||
45 | //_____________________________________________________________________________ | |
46 | void AliRICHReconstructor::FillESD(AliRunLoader* /*runLoader*/, | |
47 | AliESD* /*esd*/) const | |
48 | { | |
49 | // nothing to be done | |
50 | ||
51 | } | |
52 | ||
53 | ||
54 | //_____________________________________________________________________________ | |
55 | AliRICH* AliRICHReconstructor::GetRICH(AliRunLoader* runLoader) const | |
56 | { | |
57 | // get the RICH detector | |
58 | ||
59 | if (!runLoader->GetAliRun()) runLoader->LoadgAlice(); | |
60 | if (!runLoader->GetAliRun()) { | |
61 | Error("GetRICH", "couldn't get AliRun object"); | |
62 | return NULL; | |
63 | } | |
64 | AliRICH* rich = (AliRICH*) runLoader->GetAliRun()->GetDetector("RICH"); | |
65 | if (!rich) { | |
66 | Error("GetRICH", "couldn't get RICH detector"); | |
67 | return NULL; | |
68 | } | |
69 | return rich; | |
70 | } |