ROOT logo
#ifndef ALITOFT0_H
#define ALITOFT0_H
/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
 * See cxx source for full Copyright notice                               */

//_____________________________________________________________________________//
//                                                                             //
//  Task Class for calculating the time zero of interaction using TOF          //
//  The input file need the track length till TOF detector                     //
//  It can be done modifyng the AliTOFvj StepManager and the AliTOFHit class   //
//  as follow                                                                  //
//                                                                             //
//-- Author: F. Pierella                                                       //
//                                                                             //
//_____________________________________________________________________________//

#include "TTask.h"

class TString;

class AliTOFT0: public TTask {

public:
  AliTOFT0() ;          // ctor
  AliTOFT0(char* headerFile, Int_t nEvents=0) ; 
  AliTOFT0(const AliTOFT0 & tzero);
  virtual ~AliTOFT0() ; // dtor
  AliTOFT0 & operator = (const AliTOFT0 & tzero);
  const char*   GetTZeroFile() const {return fT0File.Data();}  
  virtual void  Exec(Option_t *option); 
  void          SetNEvents(Int_t nEvents) {fNevents = nEvents;}
  void          SetTimeResolution(Float_t timeresolution) { fTimeResolution=timeresolution;}// timeresolution in [s] e.g. for 120 ps -> 1.2e-10
  Int_t         GetNEvents() const {return fNevents;}
  void          SetTZeroFile(char* file) ;
  void          SetMomBounds(Float_t pLow, Float_t pUp) { fLowerMomBound=pLow; fUpperMomBound=pUp;} // momenta are expressed in [GeV/c]
  virtual void  Print(Option_t* option) const ;
  Bool_t   operator == (const AliTOFT0 & tzero) const ;

 protected:

 private:
  Int_t   fNevents;         // Number of events for which calculate the T0
  Float_t fTimeResolution;  // global time resolution used to calculate T0
  Float_t fLowerMomBound;   // momentum lower bound for selected primary tracks 
  Float_t fUpperMomBound;   // momentum upper bound for selected primary tracks 
  TString fT0File ;         // output file; it contains for time being only 3 histos 
  TString fHeadersFile;     // input file

  ClassDef(AliTOFT0,1)  // Calculate the time zero using TOF detector

};

#endif // AliTOFT0_H
 AliTOFT0.h:1
 AliTOFT0.h:2
 AliTOFT0.h:3
 AliTOFT0.h:4
 AliTOFT0.h:5
 AliTOFT0.h:6
 AliTOFT0.h:7
 AliTOFT0.h:8
 AliTOFT0.h:9
 AliTOFT0.h:10
 AliTOFT0.h:11
 AliTOFT0.h:12
 AliTOFT0.h:13
 AliTOFT0.h:14
 AliTOFT0.h:15
 AliTOFT0.h:16
 AliTOFT0.h:17
 AliTOFT0.h:18
 AliTOFT0.h:19
 AliTOFT0.h:20
 AliTOFT0.h:21
 AliTOFT0.h:22
 AliTOFT0.h:23
 AliTOFT0.h:24
 AliTOFT0.h:25
 AliTOFT0.h:26
 AliTOFT0.h:27
 AliTOFT0.h:28
 AliTOFT0.h:29
 AliTOFT0.h:30
 AliTOFT0.h:31
 AliTOFT0.h:32
 AliTOFT0.h:33
 AliTOFT0.h:34
 AliTOFT0.h:35
 AliTOFT0.h:36
 AliTOFT0.h:37
 AliTOFT0.h:38
 AliTOFT0.h:39
 AliTOFT0.h:40
 AliTOFT0.h:41
 AliTOFT0.h:42
 AliTOFT0.h:43
 AliTOFT0.h:44
 AliTOFT0.h:45
 AliTOFT0.h:46
 AliTOFT0.h:47
 AliTOFT0.h:48
 AliTOFT0.h:49
 AliTOFT0.h:50
 AliTOFT0.h:51
 AliTOFT0.h:52
 AliTOFT0.h:53