]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWGPP/ITS/AliAlignmentDataFilterITS.h
Adding macro to plot <Ncoll>
[u/mrichter/AliRoot.git] / PWGPP / ITS / AliAlignmentDataFilterITS.h
CommitLineData
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
14class TTree;
15class TNtuple;
16class TList;
17class TH1F;
18class TH2F;
eef875ec 19class TObjString;
20
21class AliTrackPointArray;
f27a7e81 22
367c6d1f 23#include <TString.h>
24#include "AliITSReconstructor.h"
25#include "AliITSRecoParam.h"
b900a060 26#include "AliAnalysisTaskSE.h"
f27a7e81 27
b900a060 28class AliAlignmentDataFilterITS : public AliAnalysisTaskSE
f27a7e81 29{
30 public:
31
b900a060 32 AliAlignmentDataFilterITS();
33 AliAlignmentDataFilterITS(const char *name);
f27a7e81 34 virtual ~AliAlignmentDataFilterITS();
35
36
37 // Implementation of interface methods
b900a060 38 virtual void UserCreateOutputObjects();
39 virtual void UserExec(Option_t *option);
f27a7e81 40 virtual void Terminate(Option_t *option);
367c6d1f 41 void SetOnlySPDFO(Bool_t set=kTRUE) {fOnlySPDFO=set;}
28647bf6 42 void SetDownsamplelowpt(Bool_t set=kTRUE) {fDownsamplelowpt=set;}
367c6d1f 43 void SetGeometryFileName(TString name="geometry.root") {fGeometryFileName=name;}
44 void SetITSRecoParam(AliITSRecoParam *rp) {fITSRecoParam=rp;}
feda9561 45 static Int_t WriteTrackPointsInIdealGeom(const Char_t *fin="AliTrackPoints.root",
46 const Char_t *fout="AliTrackPoints_IdGeom.root",
47 const Char_t *fmis="Run0_999999999_v3_s0.root",
48 const Char_t *fgeo="geometry.root",
eef875ec 49 Bool_t prn=0);
367c6d1f 50
f27a7e81 51 private:
52
53 void FilterCosmic(const AliESDEvent *esd);
54 void FilterCollision(const AliESDEvent *esd);
eef875ec 55 const AliITSRecoParam *GetRecoParam() const;
367c6d1f 56
76bd0732 57 AliAlignmentDataFilterITS(const AliAlignmentDataFilterITS &);
58 AliAlignmentDataFilterITS& operator=(const AliAlignmentDataFilterITS&);
f27a7e81 59
f27a7e81 60
367c6d1f 61 Bool_t fOnlySPDFO; // only SPDtriggered events
28647bf6 62 Bool_t fDownsamplelowpt; // skip part of low pt tracks (only for pp B-on)
367c6d1f 63 TString fGeometryFileName; // where to find the geometry.root
64 AliITSRecoParam *fITSRecoParam; // keeps the settings for the filter
f27a7e81 65 AliESDEvent *fESD; // ESD object
f27a7e81 66 TList *fListOfHistos; //! list of histos: output slot 1
67 TTree *fspTree; //! output tree with space points: output slot 0
480207c6 68 TH1F *fHistNevents; //! output histogram
f27a7e81 69 TH1F *fHistNpoints; //! output histogram
70 TH1F *fHistPt; //! output histogram
71 TH2F *fHistLayer0; //! output histogram
72 TH2F *fHistLayer1; //! output histogram
73 TH2F *fHistLayer2; //! output histogram
74 TH2F *fHistLayer3; //! output histogram
75 TH2F *fHistLayer4; //! output histogram
76 TH2F *fHistLayer5; //! output histogram
77 TNtuple *fntExtra; //! output QA ntuple
78 TNtuple *fntCosmicMatching;//! output QA ntuple
79
28647bf6 80 ClassDef(AliAlignmentDataFilterITS,4); // AliAnalysisTask to extract ITS points for alignment
f27a7e81 81};
82
83#endif
84