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 *
7 #ifndef ALIANALYSISTASKHLTCENTRALBARREL_H
8 #define ALIANALYSISTASKHLTCENTRALBARREL_H
10 /** @file AliAnalysisTaskHLTCentralBarrel.h
11 @author Per Ivar Lønne, Hege Erdal, Kalliopi Kanaki
13 @brief An analysis task to compare the offline and HLT esd trees
16 // forward declarations
22 #include "THnSparse.h"
23 #include "AliAnalysisTaskSE.h"
25 class AliAnalysisTaskHLTCentralBarrel : public AliAnalysisTaskSE {
29 AliAnalysisTaskHLTCentralBarrel();
30 AliAnalysisTaskHLTCentralBarrel(const char *name);
31 virtual ~AliAnalysisTaskHLTCentralBarrel();
33 virtual void UserCreateOutputObjects();
34 virtual void UserExec(Option_t *option);
35 virtual void Terminate(Option_t *);
36 virtual void NotifyRun();
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);
51 /** copy constructor */
52 AliAnalysisTaskHLTCentralBarrel(const AliAnalysisTaskHLTCentralBarrel&);
53 /** assignment operator */
54 AliAnalysisTaskHLTCentralBarrel& operator=(const AliAnalysisTaskHLTCentralBarrel&);
56 Int_t CalculateCentrality(AliESDEvent* esd);
58 Bool_t fUseHLTTrigger; // Use HLT Trigger Decision
59 Bool_t fUseCentrality; // Include centrality
61 TList *fOutputList; // list of output THnSparse objects
63 THnSparse *fEventOFF; //! offline event properties
64 THnSparse *fEventHLT; //! HLT event properties
66 THnSparse *fTrackOFF; //! offline track properties
67 THnSparse *fTrackHLT; //! HLT track properties
69 TText *fTextBox; //! TText box
71 ClassDef(AliAnalysisTaskHLTCentralBarrel, 0);