3 /**************************************************************************
4 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
6 * Author: The ALICE Off-line Project. *
7 * Contributors are mentioned in the code where appropriate. *
9 * Permission to use, copy, modify and distribute this software and its *
10 * documentation strictly for non-commercial purposes is hereby granted *
11 * without fee, provided that the above copyright notice appears in all *
12 * copies and that both the copyright notice and this permission notice *
13 * appear in the supporting documentation. The authors make no claims *
14 * about the suitability of this software for any purpose. It is *
15 * provided "as is" without express or implied warranty. *
16 **************************************************************************/
17 // Prototype class helping the user to handle event & particle-level
18 // selections/correction containers inside the Analysis job
19 // Author:S.Arcelli. Silvia.Arcelli@cern.ch
26 class AliCFContainer ;
27 class AliMCEventHandler ;
28 class AliGenEventHeader ;
29 //____________________________________________________________________________
30 class AliCFManager : public TNamed
34 AliCFManager(Char_t* name, Char_t* title) ;
35 AliCFManager(const AliCFManager& c) ;
36 AliCFManager& operator=(const AliCFManager& c) ;
37 virtual ~AliCFManager();
40 //Currently foreseen selection steps for event-level cuts:
41 //generator, trigger, reconstruction
51 //Currently foreseen selection steps for particle-level cuts:
52 //generator, acceptance, reconstruction, user selection
66 //pass the pointer to the correction container
67 virtual void SetEventContainer(AliCFContainer* c) {fEvtContainer=c;} ;
69 //pass the pointer to the correction container
70 virtual void SetParticleContainer(AliCFContainer* c) {fPartContainer=c;} ;
72 //Setter for event-level selection cut list at selection step isel
73 virtual void SetEventCutsList(Int_t isel, TObjArray* array) {fEvtCutList[isel]=array;} ;
75 //Setter for particle-level selection cut list at selection step isel
76 virtual void SetParticleCutsList(Int_t isel, TObjArray* array) {fPartCutList[isel]=array;} ;
82 // pointer to the Event-level correction container
83 virtual AliCFContainer* GetEventContainer() const {return fEvtContainer;} ;
85 // pointer to the Particle-level correction container
86 virtual AliCFContainer* GetParticleContainer() const {return fPartContainer;} ;
88 //pointer to the event-level cut list for event selection step isel
89 virtual TObjArray* GetEventCutsList(Int_t isel) const {return fEvtCutList[isel];};
91 //pointer to the particle-level cut list for particle selection step isel
92 virtual TObjArray* GetParticleCutsList(Int_t isel) const {return fPartCutList[isel];};
95 //Pass the pointer to obj to the selections (used to access MC/rec global
96 //event info when requested
97 virtual void SetEventInfo(TObject *obj) const;
99 //Cut Checkers: by default *all* the cuts of a given input list is checked
100 //(.and. of all cuts), but the user can select a subsample of cuts in the
101 //list via the string argument selcuts
103 virtual Bool_t CheckEventCuts(Int_t isel, TObject *obj, const TString &selcuts="all") const;
104 virtual Bool_t CheckParticleCuts(Int_t isel, TObject *obj, const TString &selcuts="all") const;
106 virtual void FillQABeforeEventCuts(Int_t isel, TObject *obj) const;
107 virtual void FillQAAfterEventCuts(Int_t isel, TObject *obj) const;
108 virtual void FillQABeforeParticleCuts(Int_t isel, TObject *obj) const;
109 virtual void FillQAAfterParticleCuts(Int_t isel, TObject *obj) const;
111 virtual void InitQAHistos() const;//init QA histograms
112 virtual TBits* GetQAParticleSelBits(Int_t isel, TObject *obj);//get cut mask
113 virtual void AddQAHistosToList(TList *list) const; //put the QA histos in TList
118 //the correction grid
119 AliCFContainer *fEvtContainer; //ptr to Evt-Level correction container
120 //the correction grid
121 AliCFContainer *fPartContainer; //ptr to Particle-level correction container
122 //Evt-Level Selections
123 TObjArray *fEvtCutList[kNEvtSel]; //arrays of cuts: gen,trig,rec-level
124 //Particle-level selections
125 TObjArray *fPartCutList[kNPartSel]; //arrays of cuts: gen,acceptance,rec,sel-level
126 TBits *fhQABits; // Global list of Cuts' QA BitMaps
128 Bool_t CompareStrings(const TString &cutname,const TString &selcuts) const;
130 ClassDef(AliCFManager,1);