]> git.uio.no Git - u/mrichter/AliRoot.git/blob - ESDCheck/AliTOFQATask.h
Coding conventions
[u/mrichter/AliRoot.git] / ESDCheck / AliTOFQATask.h
1 #ifndef ALITOFQATASK_H
2 #define ALITOFQATASK_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice     */
5 //______________________________________________________________________________
6 // An analysis task to check the TOF performance in simulated data
7 // 
8 //*-- Silvia Arcelli 
9 //-Distributions to monitor the quality of the track matching, Time, PID
10 //////////////////////////////////////////////////////////////////////////////
11
12 #include <TTree.h> 
13 #include <TH1F.h> 
14 #include <TH2F.h> 
15 #include "AliAnalysisTask.h"  
16
17 class AliESD ; 
18
19 class AliTOFQATask : public AliAnalysisTask {
20
21 public:
22   AliTOFQATask(const char *name) ; //ctor
23   AliTOFQATask(const AliTOFQATask & qatask); // copy constructor
24   AliTOFQATask& operator=(const AliTOFQATask & qatask); // assignment operator
25   virtual ~AliTOFQATask(); //dtor
26   virtual void Exec(Option_t * opt = "") ;
27   virtual void ConnectInputData(Option_t *);
28   virtual void CreateOutputObjects();
29   virtual void Terminate(Option_t * opt = "") ;
30
31 private:
32   void BookHistos() ;
33   void DrawHistos() ;
34   void GetEfficiency() ;
35   TTree   * fChain ;            //!pointer to the analyzed TTree or TChain
36   AliESD  * fESD ;              //! Declaration of leave types
37
38   TObjArray * fOutputContainer ; //! output data container
39
40   // Histograms
41   TH1F    * fhTOFMatch ; //Fraction of Matched tracks (kTIME)
42   TH1F    * fhESDeffPhi ;   //Phi dst. of all ESD tracks (kTIME)
43   TH1F    * fhESDeffTheta ; //Theta dst. of all ESD tracks (kTIME)
44   TH1F    * fhESDeffMom ;   //Mom. dst. of all ESD tracks (kTIME)
45   TH1F    * fhTOFeffPhi ;   //Phi dst.of ESD tracks matched with TOF
46   TH1F    * fhTOFeffTheta ; //Theta dst.of ESD tracks matched with TOF
47   TH1F    * fhTOFeffMom ;   //Mom. dst.of ESD tracks matched with TOF
48   TH1F    * fhTOFeffPhiMT ; //Phi dst.of ESD tracks, good match with TOF(MC)
49   TH1F    * fhTOFeffThetaMT;//Theta dst.of ESD tracks, good match with TOF(MC)
50   TH1F    * fhTOFeffMomMT ; //Mom.dst.of ESD tracks, good match with TOF(MC)
51   TH1F    * fhTOFsector ;   //sector distr.of matched TOF pads 
52   TH1F    * fhTOFsectorMT ; //sector distr.of TOF pads, good match (MC)  
53   TH1F    * fhTOFTime ; //Time Distribution of TOF Clusters matched to tracks 
54   TH1F    * fhTOFDeltaTime; //TOF-exp.Time (pion mass hypothesis)
55   TH1F    * fhTOFDeltaTimeMT; //TOF-exp.Time (pion mass), good match(MC)
56   TH1F    * fhTOFIDSpecies; //ID-Sample Composition
57   TH2F    * fhTOFMassVsMom; //Mass vs Momentum correlation
58   TH1F    * fhTOFMass;      //reconstructed Mass from TOF
59    
60   ClassDef(AliTOFQATask, 0); //  TOF Quality Assurance analysis task 
61 };
62 #endif // ALITOFQATASK_H