]>
Commit | Line | Data |
---|---|---|
f27a7e81 | 1 | #ifndef ALIALIGNMENTDATAFILTERITS_H |
2 | #define ALIALIGNMENTDATAFILTERITS_H | |
3 | ||
4 | /* Copyright(c) 1998-2009, ALICE Experiment at CERN, All rights reserved. * | |
5 | * See cxx source for full Copyright notice */ | |
6 | ||
7 | //************************************************************************* | |
8 | // Class AliAlignmentDataFilterITS | |
367c6d1f | 9 | // AliAnalysisTask to extract from ESD tracks the AliTrackPointArrays |
f27a7e81 | 10 | // with ITS points for selected tracks. This are the input data for alignment |
367c6d1f | 11 | // Author: A.Dainese, andrea.dainese@pd.infn.it |
f27a7e81 | 12 | //************************************************************************* |
13 | ||
14 | class TTree; | |
15 | class TNtuple; | |
16 | class TList; | |
17 | class TH1F; | |
18 | class TH2F; | |
19 | ||
367c6d1f | 20 | #include <TString.h> |
21 | #include "AliITSReconstructor.h" | |
22 | #include "AliITSRecoParam.h" | |
f27a7e81 | 23 | #include "AliAnalysisTask.h" |
24 | ||
25 | class AliAlignmentDataFilterITS : public AliAnalysisTask | |
26 | { | |
27 | public: | |
28 | ||
76bd0732 | 29 | AliAlignmentDataFilterITS(const char *name="filterITS"); |
f27a7e81 | 30 | virtual ~AliAlignmentDataFilterITS(); |
31 | ||
32 | ||
33 | // Implementation of interface methods | |
34 | virtual void ConnectInputData(Option_t *); | |
35 | virtual void CreateOutputObjects(); | |
36 | virtual void Init(); | |
37 | virtual void LocalInit() {Init();} | |
38 | virtual void Exec(Option_t *option); | |
39 | virtual void Terminate(Option_t *option); | |
367c6d1f | 40 | void SetOnlySPDFO(Bool_t set=kTRUE) {fOnlySPDFO=set;} |
41 | void SetGeometryFileName(TString name="geometry.root") {fGeometryFileName=name;} | |
42 | void SetITSRecoParam(AliITSRecoParam *rp) {fITSRecoParam=rp;} | |
43 | ||
f27a7e81 | 44 | private: |
45 | ||
46 | void FilterCosmic(const AliESDEvent *esd); | |
47 | void FilterCollision(const AliESDEvent *esd); | |
367c6d1f | 48 | const AliITSRecoParam *GetRecoParam() const { |
76bd0732 | 49 | if(AliITSReconstructor::GetRecoParam()) { |
50 | return AliITSReconstructor::GetRecoParam(); | |
51 | } else if(fITSRecoParam) { | |
52 | return fITSRecoParam; | |
53 | } else return NULL; | |
367c6d1f | 54 | } |
55 | ||
76bd0732 | 56 | AliAlignmentDataFilterITS(const AliAlignmentDataFilterITS &); |
57 | AliAlignmentDataFilterITS& operator=(const AliAlignmentDataFilterITS&); | |
f27a7e81 | 58 | |
f27a7e81 | 59 | |
367c6d1f | 60 | Bool_t fOnlySPDFO; // only SPDtriggered events |
61 | TString fGeometryFileName; // where to find the geometry.root | |
62 | AliITSRecoParam *fITSRecoParam; // keeps the settings for the filter | |
f27a7e81 | 63 | AliESDEvent *fESD; // ESD object |
64 | AliESDfriend *fESDfriend; // ESD friend object | |
65 | TList *fListOfHistos; //! list of histos: output slot 1 | |
66 | TTree *fspTree; //! output tree with space points: output slot 0 | |
480207c6 | 67 | TH1F *fHistNevents; //! output histogram |
f27a7e81 | 68 | TH1F *fHistNpoints; //! output histogram |
69 | TH1F *fHistPt; //! output histogram | |
70 | TH2F *fHistLayer0; //! output histogram | |
71 | TH2F *fHistLayer1; //! output histogram | |
72 | TH2F *fHistLayer2; //! output histogram | |
73 | TH2F *fHistLayer3; //! output histogram | |
74 | TH2F *fHistLayer4; //! output histogram | |
75 | TH2F *fHistLayer5; //! output histogram | |
76 | TNtuple *fntExtra; //! output QA ntuple | |
77 | TNtuple *fntCosmicMatching;//! output QA ntuple | |
78 | ||
480207c6 | 79 | ClassDef(AliAlignmentDataFilterITS,2); // AliAnalysisTask to extract ITS points for alignment |
f27a7e81 | 80 | }; |
81 | ||
82 | #endif | |
83 |