Moving the classes that belong to the following libraries: STEERBase, ESD, CDB, AOD...
[u/mrichter/AliRoot.git] / STEER / AOD / AliAODMCHeader.h
CommitLineData
dce1b636 1// -*- mode: C++ -*-
2#ifndef ALIAODMCHEADER_H
3#define ALIAODMCHEADER_H
4
5/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
6 * See cxx source for full Copyright notice */
7
8//-------------------------------------------------------------------------
9// Class AliAODMCHeader
10// Some MC specific inforamtion for filtering KINE infomration to the AOD
11// Origin: Christian Klein-Boesing, CERN, Christian.Klein-Boesing@cern.ch
12//-------------------------------------------------------------------------
13
14#include "AliVHeader.h"
15
16class AliAODMCHeader: public AliVHeader {
17public:
18 AliAODMCHeader();
19 virtual ~AliAODMCHeader();
20 AliAODMCHeader(const AliAODMCHeader& header);
21 AliAODMCHeader& operator=(const AliAODMCHeader& header);
22 virtual void Copy(TObject &obj) const;
23
24 virtual void SetGeneratorName(const char* c){fGenerator = c;}
25 virtual void AddGeneratorName(const char* c){fGenerator += c;}
26 virtual const char* GetGeneratorName() const {return fGenerator.Data();}
27
28 virtual void SetVertex(Double_t *vtx){
29 fVertex[0] = vtx[0]; fVertex[1] = vtx[1]; fVertex[2] = vtx[2];
30 }
31 virtual void SetVertex(Double_t x,Double_t y,Double_t z){
32 fVertex[0] = x; fVertex[1] = y; fVertex[2] = z;
33 }
34 virtual void GetVertex(Double_t *vtx) const {
35 vtx[0] = fVertex[0]; vtx[1] = fVertex[1]; vtx[2] = fVertex[2];
36 }
37
38 virtual Double_t GetVtxX() const { return fVertex[0]; }
39 virtual Double_t GetVtxY() const { return fVertex[1]; }
40 virtual Double_t GetVtxZ() const { return fVertex[2]; }
41
42
43 virtual void SetImpactParameter(Double_t b){fImpactPar = b;}
44 virtual Double_t GetImpactParameter() const {return fImpactPar;}
45
0fd37a1f 46 virtual void SetPtHard(Double_t f){fPtHard = f;}
47 virtual Double_t GetPtHard() const {return fPtHard;}
48
210dd0f3 49 virtual void SetCrossSection(Double_t f){fXsection = f;}
50 virtual Double_t GetCrossSection() const {return fXsection;}
51
69786dcc 52 virtual void AddTrial(Int_t i) {fTrials+=i;}
53 virtual void SetTrials(Int_t f){fTrials = f;}
54 virtual Int_t GetTrials() const {return fTrials;}
210dd0f3 55
34477296 56 virtual void SetReactionPlaneAngle(Double_t b){fReactionPlaneAngle = b;}
57 virtual Double_t GetReactionPlaneAngle() const {return fReactionPlaneAngle;}
58
dce1b636 59 virtual void SetEventType(UInt_t eventType){fEventType = eventType;}
60 virtual UInt_t GetEventType() const {return fEventType;}
61
62 virtual void Reset();
63 virtual void Print(const Option_t *opt=0) const;
64
65 // needed to make class non virtual
66 virtual UShort_t GetBunchCrossNumber() const {return 0;}
67 virtual UInt_t GetOrbitNumber() const {return 0;}
68 virtual UInt_t GetPeriodNumber() const {return 0;}
69 virtual ULong64_t GetTriggerMask() const {return 0;}
70 virtual UChar_t GetTriggerCluster() const {return 0;}
71 //
72
73 static const char* StdBranchName(){return fgkStdBranchName.Data();}
74
75private:
76
77 static TString fgkStdBranchName; // Standard branch name
78
79 TString fGenerator; // Name of the generator, combination of names in case of gen cocktail
80 Double32_t fVertex[3]; // MC vertex
81 Double32_t fImpactPar; // Impact parameter in case of Pb+Pb
0fd37a1f 82 Double32_t fPtHard; // [0,0,12] Pt hard for jet events
210dd0f3 83 Double32_t fXsection; // Cross section for particlar process
69786dcc 84 UInt_t fTrials; // Number of trials
dce1b636 85 UInt_t fEventType; // MC Process Type of Event
34477296 86 Double32_t fReactionPlaneAngle;// MC Reaction Plane Angle
dce1b636 87
69786dcc 88 ClassDef(AliAODMCHeader,5)
dce1b636 89
90};
91
92#endif