1 /////////////////////////////////////////////////////////////////////////////
3 // AliAnalysisTaskAcorde class
7 // Reads the information of ACORDE-ESD
8 // Also it is implemented a simple matching between tracks
9 // to look for the extrapolation of them to ACORDE modules
11 // Create some fHistograms and one tree with the information
12 // of the matching tracks
14 // Author: Mario RodrÃguez Cahuantzi
15 // <mario.rocah@gmail.com>
16 // <mrodrigu@mail.cern.ch>
18 // Created: June 30th. 2010 @ FCFM - BUAP, Puebla, MX
19 // Last update: created
21 /////////////////////////////////////////////////////////////////////////////
23 #ifndef ALIANALYSISTASKACORDE_H
24 #define ALIANALYSISTASKACORDE_H
31 #include "AliAnalysisTask.h"
33 class AliAnalysisTaskAcorde : public AliAnalysisTask {
35 AliAnalysisTaskAcorde(const char *name = "AliAnalysisTaskAcorde");
36 virtual ~AliAnalysisTaskAcorde(); //! Destructor fo task
38 virtual void ConnectInputData(Option_t *); //! Connects input data to class analysis
39 virtual void CreateOutputObjects(); //! Creates output object (fCosmicTree)
40 virtual void Exec(Option_t *option); //! Execution class
41 virtual void Terminate(Option_t *); //! Terminate class
46 AliESDEvent *fESD; //! ESD object
47 TArrayI *fPair; //! Pair track connected (up & down)
48 TTree *fCosmicTree; //! TTree with some information of matched tracks
49 Int_t fnTracks; //! # of recontructed tracks
50 Int_t fNMatchTracks; //! # of matched tracks
55 const Int_t fkMinTPCclusters; //! cut in clusters
56 const Float_t fkMinTrackDist; //! cut in distance
57 const Float_t fkMinCutDir; //! minimum cut
59 Float_t fXAco; //! x-coordinate of extrapolated track to ACORDE
60 Float_t fYAco; //! y-coordinate of extrapolated track to ACORDE
61 Float_t fZAco; //! z-coordinate of extrapolated track to ACORDE
62 Int_t fTrigger; //! fTrigger label
63 TString fActiveTriggerDetector; //! detector string
65 Int_t fNSingleTracks; //! no. of single track
66 Int_t fNMatchedTracks; //! no. of matched track
69 TList *fHisto; //! list of fHistograms
70 TH1F *fAcordeHitsAll; //! hits of acorde
71 TH1F *fAcordeMultiAll; //! multi. of acorde modules
72 TH1F *fAcordeHitsTPC; //! hits of acorde (if track)
73 TH1F *fAcordeMultiTPC; //! multi. of acorde modules (if track)
74 TH1F *fNTracksMatched; //! matched tracks
75 TH1F *fNTracks; //! no. of tracks
76 TH2F *fTracksToAcorde; //! tracks extrapolated to acorde.
78 AliAnalysisTaskAcorde(const AliAnalysisTaskAcorde&); // not implemented
79 AliAnalysisTaskAcorde& operator=(const AliAnalysisTaskAcorde&); // not implemented
81 ClassDef(AliAnalysisTaskAcorde, 1); // example of analysis