]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWG2/RESONANCES/AliRsnAnalysisManager.h
Setting the magnetic field - needed by the clusterfinders
[u/mrichter/AliRoot.git] / PWG2 / RESONANCES / AliRsnAnalysisManager.h
CommitLineData
5eb970a4 1//
2// Class AliRsnAnalysisManager
3//
4// This is the uppermost level of analysis objects collection.
5// It contains a list of pair managers, which all will process
6// a pool of events passed to this object, and fill their histograms.
7//
8// The utility of this object is to define a unique implementation
9// of the whole processing, which can then be included in the different
10// designs of AnalysisTask provided for SE and ME analysis.
11//
12// The base architecture is still AliRsnVManager, but in this case
13// all the objects in the list will be AliRsnPairManager's.
14//
15// author : M. Vala [martin.vala@cern.ch]
16// revised by : A. Pulvirenti [alberto.pulvirenti@ct.infn.it]
17//
18
4fbb2459 19#ifndef ALIRSNANALYSISMANAGER_H
20#define ALIRSNANALYSISMANAGER_H
5eb970a4 21
32992791 22#include <TObjArray.h>
23
24#include "AliRsnCutSet.h"
2dab9030 25
4fbb2459 26class AliRsnEvent;
2dab9030 27class AliRsnPair;
28
29class AliRsnAnalysisManager : public TNamed
5eb970a4 30{
31 public:
32
33 AliRsnAnalysisManager(const char*name = "defaultAnalysisMgr");
32992791 34 virtual ~AliRsnAnalysisManager() { }
5eb970a4 35
2dab9030 36 virtual void Add(AliRsnPair *pair);
5eb970a4 37 virtual void PrintArray() const;
38 virtual void Print(Option_t *option = "") const;
39
2dab9030 40 void InitAllPairs(TList*list);
41 void ProcessAllPairs(AliRsnEvent *ev0, AliRsnEvent *ev1);
2e521c29 42 void ProcessAllPairsMC(AliRsnEvent *ev0, AliRsnEvent *ev1);
32992791 43 AliRsnCutSet* GetGlobalTrackCuts() {return &fGlobalTrackCuts;}
5eb970a4 44
45 private:
2dab9030 46
32992791 47 TObjArray fPairs; // collection of pair objects for the different outputs
48 AliRsnCutSet fGlobalTrackCuts; // a set of cuts which are applied to all tracks for all analysis, in order to put only once
5eb970a4 49
50 ClassDef(AliRsnAnalysisManager, 1)
51};
52
53#endif