change of default cuts (michele)
[u/mrichter/AliRoot.git] / PWG0 / AliPhysicsSelection.h
CommitLineData
61899827 1/* $Id: AliPhysicsSelection.h 35782 2009-10-22 11:54:31Z jgrosseo $ */
2
3#ifndef ALIPHYSICSSELECTION_H
4#define ALIPHYSICSSELECTION_H
5
6/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
7 * See cxx source for full Copyright notice */
8
9//-------------------------------------------------------------------------
10// Implementation of Class AliPhysicsSelection
11//
12// This class selects collision candidates from data runs, applying selection cuts on triggers
13// and background rejection based on the content of the ESD
14//
15// Origin: Jan Fiete Grosse-Oetringhaus, CERN
16//-------------------------------------------------------------------------
17
296dd262 18#include <AliAnalysisCuts.h>
61899827 19#include <TList.h>
20
21class AliESDEvent;
22class TH1;
23class TH2;
24class TCollection;
25class AliTriggerAnalysis;
26
296dd262 27class AliPhysicsSelection : public AliAnalysisCuts
61899827 28{
29 public:
30 AliPhysicsSelection();
31 virtual ~AliPhysicsSelection();
32
296dd262 33 // AliAnalysisCuts interface
34 virtual Bool_t IsSelected(TObject* obj) { return IsCollisionCandidate((const AliESDEvent*) obj); }
35 virtual Bool_t IsSelected(TList*) { return kFALSE; }
36
61899827 37 Bool_t IsCollisionCandidate(const AliESDEvent* aEsd);
38 Bool_t Initialize(UInt_t runNumber);
39
296dd262 40 void AddBackgroundIdentification(AliAnalysisCuts* background) { fBackgroundIdentification = background; }
41
61899827 42 virtual void Print(Option_t* option = "") const;
43 virtual Long64_t Merge(TCollection* list);
44 void SaveHistograms(const char* folder = 0) const;
45
296dd262 46 TList* GetCollisionTriggerClasses() { return &fCollTrigClasses; }
47 TList* GetBGTriggerClasses() { return &fBGTrigClasses; }
52d4048c 48 AliTriggerAnalysis* GetTriggerAnalysis() { (fTriggerAnalysis.GetEntries() > 0) ? (AliTriggerAnalysis*) fTriggerAnalysis.At(0) ? 0; }
61899827 49
50 protected:
296dd262 51 Bool_t CheckTriggerClass(const AliESDEvent* aEsd, const char* trigger) const;
52
53 Int_t fCurrentRun; // run number for which the object is initialized
54 TList fCollTrigClasses; // trigger class identifying collision candidates
55 TList fBGTrigClasses; // trigger classes identifying background events
56
57 TList fTriggerAnalysis; // list of offline trigger objects (several are needed to keep the control histograms separate per trigger class)
61899827 58
296dd262 59 AliAnalysisCuts* fBackgroundIdentification; // class that performs additional background identification
61899827 60
296dd262 61 TH2* fHistStatistics; // how many events are cut away why
62 TH2* fHistBunchCrossing; // histograms of accepted bunch crossing numbers
61899827 63
64 ClassDef(AliPhysicsSelection, 1)
65
66 private:
67 AliPhysicsSelection(const AliPhysicsSelection&);
68 AliPhysicsSelection& operator=(const AliPhysicsSelection&);
69};
70
71#endif