AliRoot Core  edcc906 (edcc906)
AliTOFHeader.h
Go to the documentation of this file.
1 #ifndef ALITOFHEADER_H
2 #define ALITOFHEADER_H
3 /* Copyright(c) 1998-2003, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice */
5 
6 /* $Id$ */
7 
8 //-------------------------------------------------------
9 // Class for TOF event times, time resolution and T0spread
10 // for the Event Data Summary Class
11 // Origin: A.De Caro, Salerno, decaro@sa.infn.it
12 //-------------------------------------------------------
13 
14 /**************************************************************
15  * *
16  * This class deals with: *
17  * event time estimated by TOF combinatorial algorithm; *
18  * event time resolution; *
19  * TOF time resolution as written in TOF OCDB; *
20  * T0spread as written in GRP. *
21  * *
22  **************************************************************/
23 
24 #include "TObject.h"
25 //#include "TArrayF.h"
26 //#include "TArrayI.h"
27 #include "AliTOFTriggerMask.h"
28 
29 class TArrayI;
30 class TArrayF;
31 
32 class AliTOFHeader : public TObject {
33 
34  public:
35 
36  AliTOFHeader();
37  AliTOFHeader(Float_t defEvTime, Float_t defResEvTime,
38  Int_t nDifPbins, Float_t *times, Float_t *res,
39  Int_t *nPbin, Float_t tofTimeRes, Float_t t0spread);
40  AliTOFHeader(const AliTOFHeader &source);
41  AliTOFHeader &operator=(const AliTOFHeader &source);
42  virtual void Copy(TObject &obj) const;
43 
44  virtual ~AliTOFHeader();
45 
47  Float_t GetTOFResolution() const {return fTOFtimeResolution;}
48 
49  void SetT0spread(Float_t res) {fT0spread=res;}
50  Float_t GetT0spread() const {return fT0spread;}
51 
53  Float_t GetDefaultEventTimeRes() const {return fDefaultEventTimeRes;}
54  TArrayF *GetEventTimeValues() const {return fEventTimeValues;}
55  TArrayF *GetEventTimeRes() const {return fEventTimeRes;}
56  TArrayI *GetNvalues() const {return fNvalues;}
57  Int_t GetNbins() const {return fNvalues ? fNvalues->GetSize() : 0;}
60  Int_t GetNumberOfTOFmaxipad() const {if(fTrigMask) return fTrigMask->GetNumberMaxiPadOn(); else return 0;}
62 
65  void SetEventTimeValues(TArrayF *arr);
66  void SetEventTimeRes(TArrayF *arr);
67  void SetNvalues(TArrayI *arr);
68  void SetNbins(Int_t nbins);
71  void SetTriggerMask(AliTOFTriggerMask *trigmask) {if(fTrigMask) *fTrigMask=*trigmask; else fTrigMask=new AliTOFTriggerMask(*trigmask);}
72 
73  protected:
74 
75  Float_t fDefaultEventTimeValue; // TOF event time value more frequent
76  Float_t fDefaultEventTimeRes; // TOF event time res more frequent
77  Int_t fNbins; // number of bins with TOF event
78  // time values different from
79  // default one
80  TArrayF *fEventTimeValues; // array for TOF event time values
81  // different from default one
82  TArrayF *fEventTimeRes; // array for TOF event time resolutions
83  TArrayI *fNvalues; // array for order numbers of momentum bin
84  Float_t fTOFtimeResolution; // TOF time resolution as written in TOF OCDB
85  Float_t fT0spread; // t0spread as written in TOF OCDB
86  Int_t fNumberOfTOFclusters; //[0,170000,18] number of reconstructed TOF clusters
87  Int_t fNumberOfTOFtrgPads; //[0,170000,18] number of reconstructed TOF trigger pads
88  AliTOFTriggerMask *fTrigMask; // Trigger mask
89 
90  private:
91 
92  ClassDef(AliTOFHeader,3) // Class for TOF event times and so on
93 };
94 
95 #endif
AliTOFHeader & operator=(const AliTOFHeader &source)
Float_t GetDefaultEventTimeRes() const
Definition: AliTOFHeader.h:53
void SetTriggerMask(AliTOFTriggerMask *trigmask)
Definition: AliTOFHeader.h:71
TArrayF * GetEventTimeRes() const
Definition: AliTOFHeader.h:55
TArrayF * fEventTimeValues
Definition: AliTOFHeader.h:80
TArrayF * GetEventTimeValues() const
Definition: AliTOFHeader.h:54
Float_t fDefaultEventTimeValue
Definition: AliTOFHeader.h:75
TArrayI * fNvalues
Definition: AliTOFHeader.h:83
Int_t GetNbins() const
Definition: AliTOFHeader.h:57
Float_t fTOFtimeResolution
Definition: AliTOFHeader.h:84
Float_t fDefaultEventTimeRes
Definition: AliTOFHeader.h:76
void SetNbins(Int_t nbins)
void SetNumberOfTOFtrgPads(Int_t a)
Definition: AliTOFHeader.h:70
void SetNvalues(TArrayI *arr)
Float_t GetDefaultEventTimeVal() const
Definition: AliTOFHeader.h:52
void SetTOFResolution(Float_t res)
Definition: AliTOFHeader.h:46
virtual void Copy(TObject &obj) const
AliTOFTriggerMask * fTrigMask
Definition: AliTOFHeader.h:88
Float_t GetT0spread() const
Definition: AliTOFHeader.h:50
void SetEventTimeRes(TArrayF *arr)
AliTOFTriggerMask * GetTriggerMask() const
Definition: AliTOFHeader.h:61
Int_t fNumberOfTOFclusters
Definition: AliTOFHeader.h:86
Int_t GetNumberOfTOFclusters() const
Definition: AliTOFHeader.h:58
void SetDefaultEventTimeVal(Float_t val)
Definition: AliTOFHeader.h:63
Float_t fT0spread
Definition: AliTOFHeader.h:85
TArrayF * fEventTimeRes
Definition: AliTOFHeader.h:82
void SetNumberOfTOFclusters(Int_t a)
Definition: AliTOFHeader.h:69
Int_t GetNumberOfTOFmaxipad() const
Definition: AliTOFHeader.h:60
void SetT0spread(Float_t res)
Definition: AliTOFHeader.h:49
void SetEventTimeValues(TArrayF *arr)
void SetDefaultEventTimeRes(Float_t res)
Definition: AliTOFHeader.h:64
TArrayI * GetNvalues() const
Definition: AliTOFHeader.h:56
Int_t GetNumberOfTOFtrgPads() const
Definition: AliTOFHeader.h:59
Float_t GetTOFResolution() const
Definition: AliTOFHeader.h:47
void res(Char_t i)
Definition: Resolution.C:2
Int_t fNumberOfTOFtrgPads
Definition: AliTOFHeader.h:87
virtual ~AliTOFHeader()