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 TOF reconstruction //
22 ///////////////////////////////////////////////////////////////////////////////
25 #include "AliTOFReconstructor.h"
26 #include "AliRunLoader.h"
28 #include "AliTOFtracker.h"
33 ClassImp(AliTOFReconstructor)
36 //_____________________________________________________________________________
37 void AliTOFReconstructor::Reconstruct(AliRunLoader* /*runLoader*/) const
43 //_____________________________________________________________________________
44 AliTracker* AliTOFReconstructor::CreateTracker(AliRunLoader* runLoader) const
46 // create a TOF tracker
48 AliTOFGeometry* geom = GetTOFGeometry(runLoader);
49 if (!geom) return NULL;
50 Double_t parPID[] = {130., 5.};
51 return new AliTOFtracker(geom, parPID);
54 //_____________________________________________________________________________
55 void AliTOFReconstructor::FillESD(AliRunLoader* /*runLoader*/,
56 AliESD* /*esd*/) const
63 //_____________________________________________________________________________
64 AliTOFGeometry* AliTOFReconstructor::GetTOFGeometry(AliRunLoader* runLoader) const
66 // get the TOF parameters
68 runLoader->CdGAFile();
69 AliTOFGeometry* tofGeom = (AliTOFGeometry*) gFile->Get("TOFGeometry");
71 AliError("no TOF geometry available");