added error messages when task does not post data in UserCreateOutputObjects for...
[u/mrichter/AliRoot.git] / ANALYSIS / AliCollisionNormalizationTask.h
CommitLineData
9b0cb3c3 1/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
2 * See cxx source for full Copyright notice */
3
4
5/* $Id$ */
6
7#ifndef ALICOLLISIONNORMALIZATIONTASK_H
8#define ALICOLLISIONNORMALIZATIONTASK_H
9
10#include "AliAnalysisTaskSE.h"
11
12class AliCollisionNormalization;
13
14class AliCollisionNormalizationTask : public AliAnalysisTaskSE {
15 public:
16 AliCollisionNormalizationTask();
17 AliCollisionNormalizationTask(const char* name);
18
19 virtual ~AliCollisionNormalizationTask();
20
21 virtual void UserCreateOutputObjects();
22 virtual void UserExec(Option_t*);
23 virtual void Terminate(Option_t*);
24
25 Bool_t IsEventInBinZero(); // returns true if the event has to be put in the bin0.
26 void SetMC(Bool_t flag = kTRUE) { fIsMC = flag; }
27
28 // void SetOption(const char* opt) { fOption = opt; }
29
30 // void SetCollisionNormalization(AliCollisionNormalization* physicsSelection) { fCollisionNormalization = physicsSelection; }
31 AliCollisionNormalization* GetCollisionNormalization() const { return fCollisionNormalization; }
32
33 protected:
34 TList* fOutput; //! list send on output slot 1
35 // TString fOption; // option string
36 Bool_t fIsMC;
37
38 AliCollisionNormalization* fCollisionNormalization; // collision normalization class
39
40 private:
41 AliCollisionNormalizationTask(const AliCollisionNormalizationTask&);
42 AliCollisionNormalizationTask& operator=(const AliCollisionNormalizationTask&);
43
44 ClassDef(AliCollisionNormalizationTask, 1);
45};
46
47#endif