]>
Commit | Line | Data |
---|---|---|
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 | // base class for reconstruction algorithms // | |
21 | // // | |
22 | // Derived classes should implement a default constructor and // | |
23 | // the virtual methods // | |
24 | // - Reconstruct : to perform the local reconstruction for all events // | |
25 | // - FillESD : to fill the ESD for the current event // | |
26 | // // | |
27 | // The reconstructor classes for the barrel detectors should in addition // | |
28 | // implement the method // | |
29 | // - CreateTracker : to create a tracker object for the barrel detector // | |
30 | // // | |
31 | // The ITS reconstructor should in addition implement the method // | |
32 | // - CreateVertexer : to create an object for the vertex finding // | |
33 | // // | |
34 | /////////////////////////////////////////////////////////////////////////////// | |
35 | ||
36 | ||
37 | #include "AliReconstructor.h" | |
38 | #include <TString.h> | |
39 | ||
40 | ||
41 | ClassImp(AliReconstructor) | |
42 | ||
43 | ||
44 | //_____________________________________________________________________________ | |
45 | void AliReconstructor::Reconstruct(AliRunLoader* /*runLoader*/, | |
46 | AliRawReader* /*rawReader*/) const | |
47 | { | |
48 | // run the local reconstruction with raw data input | |
49 | ||
50 | Error("Reconstruct", | |
51 | "local reconstruction not implemented for raw data input"); | |
52 | } | |
53 | ||
54 | //_____________________________________________________________________________ | |
55 | void AliReconstructor::FillESD(AliRunLoader* runLoader, | |
56 | AliRawReader* /*rawReader*/, AliESD* esd) const | |
57 | { | |
58 | // fill the ESD in case of raw data input. | |
59 | // by default the FillESD method for MC is called | |
60 | ||
61 | FillESD(runLoader, esd); | |
62 | } | |
63 | ||
64 | ||
65 | //_____________________________________________________________________________ | |
66 | const char* AliReconstructor::GetDetectorName() const | |
67 | { | |
68 | // get the name of the detector | |
69 | ||
70 | static TString detName; | |
71 | detName = GetName(); | |
72 | detName.Remove(0, 3); | |
73 | detName.Remove(detName.Index("Reconstructor")); | |
74 | return detName.Data(); | |
75 | } |