]> git.uio.no Git - u/mrichter/AliRoot.git/blame - CORRFW/test/muons/AliCFMuonResTask1.h
TH2 histograms (Energy vs Time): Number of energy bins reduced.
[u/mrichter/AliRoot.git] / CORRFW / test / muons / AliCFMuonResTask1.h
CommitLineData
9a0fd15b 1/**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
3 * *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
6 * *
7 * Permission to use, copy, modify and distribute this software and its *
8 * documentation strictly for non-commercial purposes is hereby granted *
9 * without fee, provided that the above copyright notice appears in all *
10 * copies and that both the copyright notice and this permission notice *
11 * appear in the supporting documentation. The authors make no claims *
12 * about the suitability of this software for any purpose. It is *
13 * provided "as is" without express or implied warranty. *
14 **************************************************************************/
15
16//-----------------------------------------------------------------------
17// Author : R. Vernet, Consorzio Cometa - Catania (it)
18//-----------------------------------------------------------------------
19// Modification done by X. Lopez - LPC Clermont (fr)
20//-----------------------------------------------------------------------
21
22#ifndef ALICFMUONRESTASK1_H
23#define ALICFMUONRESTASK1_H
24
25#include "AliAnalysisTaskSE.h"
26
27class TH1I;
28class TParticle ;
29class TFile ;
30class AliStack ;
31class AliCFManager;
32class AliESDtrack;
33class AliVParticle;
34
35class AliCFMuonResTask1 : public AliAnalysisTaskSE {
36 public:
37
38 AliCFMuonResTask1();
39 AliCFMuonResTask1(const Char_t* name);
40 AliCFMuonResTask1& operator= (const AliCFMuonResTask1& c);
41 AliCFMuonResTask1(const AliCFMuonResTask1& c);
42 virtual ~AliCFMuonResTask1();
43
44 // ANALYSIS FRAMEWORK STUFF to loop on data and fill output objects
45 void UserExec(Option_t *option);
46 void Terminate(Option_t *);
47
48 // CORRECTION FRAMEWORK RELATED FUNCTIONS
49 void SetCFManager(AliCFManager* const io) {fCFManager = io;} // global correction manager
50 AliCFManager * GetCFManager() const {return fCFManager;} // get corr manager
51 void SetQAList(TList* const list) {fQAHistList = list;}
52
53 // Data types
54 Bool_t IsReadAODData() const {return fReadAODData;}
55 void SetReadAODData (Bool_t flag=kTRUE) {fReadAODData=flag;}
56
57 protected:
58
59 Bool_t fReadAODData ; // flag for AOD/ESD input files
60 AliCFManager *fCFManager ; // pointer to the CF manager
61 TList *fQAHistList ; // list of QA histograms
62 TH1I *fHistEventsProcessed; // simple histo for monitoring the number of events processed
63 Int_t fNevt ; // event countor
64
65 const Float_t Imass(Float_t e1, Float_t px1, Float_t py1, Float_t pz1,
66 Float_t e2, Float_t px2, Float_t py2, Float_t p2);
67 const Float_t Rap(Float_t e, Float_t pz);
68 const Float_t Phideg(Float_t phi);
69
70 ClassDef(AliCFMuonResTask1,1);
71};
72
73#endif