]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/QA/tasks/AliAnalysisTaskHLTCentralBarrel.h
- added new QA task for HLT and offline tree comparison based on THnSparse objects...
[u/mrichter/AliRoot.git] / HLT / QA / tasks / AliAnalysisTaskHLTCentralBarrel.h
1 // $Id$
2 //-*- Mode: C++ -*-
3 //* This file is property of and copyright by the ALICE HLT Project *
4 //* ALICE Experiment at CERN, All rights reserved.                  *
5 //* See cxx source for full Copyright notice                        *
6
7 #ifndef ALIANALYSISTASKHLTCENTRALBARREL_H
8 #define ALIANALYSISTASKHLTCENTRALBARREL_H
9
10 /** @file AliAnalysisTaskHLTCentralBarrel.h
11     @author Per Ivar Lønne, Hege Erdal, Kalliopi Kanaki
12     @date   
13     @brief An analysis task to compare the offline and HLT esd trees
14 */
15
16 // forward declarations
17 class TList;
18 class TText;
19 class TString;
20 class AliESDEvent;
21
22 #include "THnSparse.h"
23 #include "AliAnalysisTaskSE.h"
24
25 class AliAnalysisTaskHLTCentralBarrel : public AliAnalysisTaskSE {
26  
27   public: 
28
29     AliAnalysisTaskHLTCentralBarrel();
30     AliAnalysisTaskHLTCentralBarrel(const char *name);
31     virtual ~AliAnalysisTaskHLTCentralBarrel();
32     
33     virtual void  UserCreateOutputObjects();
34     virtual void  UserExec(Option_t *option);
35     virtual void  Terminate(Option_t *);
36     virtual void  NotifyRun();
37
38     // function to select only HLT triggered events
39     void SetUseHLTTriggerDecision(Bool_t useHLT = kFALSE) { fUseHLTTrigger = useHLT;        }
40     // function to select centrality
41     void SetUseCentrality(Bool_t useCentrality = kFALSE)  { fUseCentrality = useCentrality; }
42     // function to create the THnSparse and name the axis
43     THnSparseF* CreateEventTHnSparse(const char* name, Int_t size, const int* bins, double* min, double* max);
44     // function to create the THnSparse and name the axis
45     THnSparseF* CreateTrackTHnSparse(const char* name, Int_t size, const int* bins, double* min, double* max);
46     //function to fill the THnSparse
47     //void Fill(AliESDevent *esd, THnSparseF* thn);
48     
49  private:
50
51     /** copy constructor */
52     AliAnalysisTaskHLTCentralBarrel(const AliAnalysisTaskHLTCentralBarrel&); 
53     /** assignment operator */
54     AliAnalysisTaskHLTCentralBarrel& operator=(const AliAnalysisTaskHLTCentralBarrel&); 
55              
56     Int_t CalculateCentrality(AliESDEvent* esd);
57
58     Bool_t fUseHLTTrigger;  // Use HLT Trigger Decision
59     Bool_t fUseCentrality;  // Include centrality
60
61     TList *fOutputList;  // list of output THnSparse objects
62     
63     THnSparse *fEventOFF; //! offline event properties
64     THnSparse *fEventHLT; //! HLT event properties
65
66     THnSparse *fTrackOFF; //! offline track properties
67     THnSparse *fTrackHLT; //! HLT track properties
68
69     TText *fTextBox; //! TText box
70     
71     ClassDef(AliAnalysisTaskHLTCentralBarrel, 0);
72 };
73 #endif