1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
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 **************************************************************************/
16 //-----------------------------------------------------------------------
17 // Author : X. Lopez - LPC Clermont (fr)
18 //-----------------------------------------------------------------------
20 #ifndef ALICFMUONSINGLETASK1_H
21 #define ALICFMUONSINGLETASK1_H
23 #include "AliAnalysisTaskSE.h"
34 class AliCFMuonSingleTask1 : public AliAnalysisTaskSE {
37 AliCFMuonSingleTask1();
38 AliCFMuonSingleTask1(const Char_t* name);
39 AliCFMuonSingleTask1& operator= (const AliCFMuonSingleTask1& c);
40 AliCFMuonSingleTask1(const AliCFMuonSingleTask1& c);
41 virtual ~AliCFMuonSingleTask1();
43 // ANALYSIS FRAMEWORK STUFF to loop on data and fill output objects
44 void UserExec(Option_t *option);
45 void Terminate(Option_t *);
47 // CORRECTION FRAMEWORK RELATED FUNCTIONS
48 void SetCFManager(AliCFManager* const io) {fCFManager = io;} // global correction manager
49 AliCFManager * GetCFManager() const {return fCFManager;} // get corr manager
50 void SetQAList(TList* const list) {fQAHistList = list;}
53 Bool_t IsReadAODData() const {return fReadAODData;}
54 void SetReadAODData (Bool_t flag=kTRUE) {fReadAODData=flag;}
55 void SetUseMC(Bool_t isMC) { fIsMC = isMC;}
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
65 Float_t Rap(Float_t e, Float_t pz);
66 Float_t Phideg(Float_t phi);
67 Bool_t fIsMC; // flag of whether the input is MC
69 ClassDef(AliCFMuonSingleTask1,1);