1 #ifndef ALICFMUONSINGLETASK1_H
2 #define ALICFMUONSINGLETASK1_H
4 /**************************************************************************
5 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
7 * Author: The ALICE Off-line Project. *
8 * Contributors are mentioned in the code where appropriate. *
10 * Permission to use, copy, modify and distribute this software and its *
11 * documentation strictly for non-commercial purposes is hereby granted *
12 * without fee, provided that the above copyright notice appears in all *
13 * copies and that both the copyright notice and this permission notice *
14 * appear in the supporting documentation. The authors make no claims *
15 * about the suitability of this software for any purpose. It is *
16 * provided "as is" without express or implied warranty. *
17 **************************************************************************/
21 //-----------------------------------------------------------------------
22 // Author : X. Lopez - LPC Clermont (fr)
23 //-----------------------------------------------------------------------
25 #include "AliAnalysisTaskSE.h"
36 class AliCFMuonSingleTask1 : public AliAnalysisTaskSE {
39 AliCFMuonSingleTask1();
40 AliCFMuonSingleTask1(const Char_t* name);
41 AliCFMuonSingleTask1& operator= (const AliCFMuonSingleTask1& c);
42 AliCFMuonSingleTask1(const AliCFMuonSingleTask1& c);
43 virtual ~AliCFMuonSingleTask1();
45 // ANALYSIS FRAMEWORK STUFF to loop on data and fill output objects
46 void UserExec(Option_t *option);
47 void Terminate(Option_t *);
49 // CORRECTION FRAMEWORK RELATED FUNCTIONS
50 void SetCFManager(AliCFManager* const io) {fCFManager = io;} // global correction manager
51 AliCFManager * GetCFManager() const {return fCFManager;} // get corr manager
52 void SetQAList(TList* const list) {fQAHistList = list;}
55 Bool_t IsReadAODData() const {return fReadAODData;}
56 void SetReadAODData (Bool_t flag=kTRUE) {fReadAODData=flag;}
57 void SetUseMC(Bool_t isMC) { fIsMC = isMC;}
61 Bool_t fReadAODData ; // flag for AOD/ESD input files
62 AliCFManager *fCFManager ; // pointer to the CF manager
63 TList *fQAHistList ; // list of QA histograms
64 TH1I *fHistEventsProcessed;// simple histo for monitoring the number of events processed
65 Int_t fNevt ; // event countor
67 Float_t Rap(Float_t e, Float_t pz);
68 Float_t Phideg(Float_t phi);
69 Bool_t fIsMC; // flag of whether the input is MC
71 ClassDef(AliCFMuonSingleTask1,1);