X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=STEER%2FAOD%2FAliAODHeader.h;h=dd9fea4226ac9a3224db51a139c12b3b29dfa499;hb=9a82a9001483f88b892e7da8f251c0e802615b1c;hp=edb82832fa378466c3e4418d9c8c459cd3e6561f;hpb=949be34133198c9c60c9da04e6f1d2ca66486d11;p=u%2Fmrichter%2FAliRoot.git diff --git a/STEER/AOD/AliAODHeader.h b/STEER/AOD/AliAODHeader.h index edb82832fa3..dd9fea4226a 100644 --- a/STEER/AOD/AliAODHeader.h +++ b/STEER/AOD/AliAODHeader.h @@ -10,9 +10,13 @@ // Author: Markus Oldenburg, CERN //------------------------------------------------------------------------- +#include + #include "AliVHeader.h" +#include "AliVAODHeader.h" #include "AliAODVertex.h" #include +#include #include "AliCentrality.h" #include "AliEventplane.h" @@ -20,7 +24,7 @@ class TGeoHMatrix; class TString; -class AliAODHeader : public AliVHeader { +class AliAODHeader : public AliVAODHeader { public : AliAODHeader(); @@ -33,6 +37,8 @@ class AliAODHeader : public AliVHeader { Int_t refMult, Int_t refMultPos, Int_t refMultNeg, + Int_t refMultComb05, + Int_t refMultComb08, Double_t magField, Double_t muonMagFieldScale, Double_t cent, @@ -48,14 +54,18 @@ class AliAODHeader : public AliVHeader { const Float_t *vzeroEqFactors, const Char_t *title="", Int_t nMuons=0, - Int_t nDimuons=0); + Int_t nDimuons=0, + Int_t nGlobalMuons=0, // AU + Int_t nGlobalDimuons=0); // AU virtual ~AliAODHeader(); AliAODHeader(const AliAODHeader& evt); AliAODHeader& operator=(const AliAODHeader& evt); + Bool_t InitMagneticField() const; Int_t GetRunNumber() const { return fRunNumber;} Int_t GetEventNumberESDFile() const { return fEventNumberESDFile;} + Int_t GetNumberOfESDTracks() const { return fNumberESDTracks;} UShort_t GetBunchCrossNumber() const { return fBunchCrossNumber; } UInt_t GetOrbitNumber() const { return fOrbitNumber; } UInt_t GetPeriodNumber() const { return fPeriodNumber; } @@ -68,6 +78,9 @@ class AliAODHeader : public AliVHeader { Double_t GetCentrality() const { return fCentrality; } Double_t GetEventplane() const { return fEventplane; } + Double_t GetEventplaneMag() const { return fEventplaneMag; } + Double_t GetEventplaneQx() const { return fEventplaneQx; } + Double_t GetEventplaneQy() const { return fEventplaneQy; } Double_t GetZDCN1Energy() const { return fZDCN1Energy; } Double_t GetZDCP1Energy() const { return fZDCP1Energy; } Double_t GetZDCN2Energy() const { return fZDCN2Energy; } @@ -78,6 +91,10 @@ class AliAODHeader : public AliVHeader { Int_t GetRefMultiplicityNeg() const { return fRefMultNeg; } Int_t GetNumberOfMuons() const { return fNMuons; } Int_t GetNumberOfDimuons() const { return fNDimuons; } + Int_t GetNumberOfGlobalMuons() const { return fNGlobalMuons; } // AU + Int_t GetNumberOfGlobalDimuons() const { return fNGlobalDimuons; } // AU + Int_t GetRefMultiplicityComb05() const { return fRefMultComb05; } + Int_t GetRefMultiplicityComb08() const { return fRefMultComb08; } Double_t GetQTheta(UInt_t i) const; UInt_t GetNQTheta() const { return (UInt_t)fNQTheta; } @@ -100,6 +117,7 @@ class AliAODHeader : public AliVHeader { void SetRunNumber(Int_t nRun) { fRunNumber = nRun; } void SetEventNumberESDFile(Int_t n) { fEventNumberESDFile=n; } + void SetNumberOfESDTracks(Int_t n) { fNumberESDTracks=n; } void SetBunchCrossNumber(UShort_t nBx) { fBunchCrossNumber = nBx; } void SetOrbitNumber(UInt_t nOr) { fOrbitNumber = nOr; } void SetPeriodNumber(UInt_t nPer) { fPeriodNumber = nPer; } @@ -122,10 +140,16 @@ class AliAODHeader : public AliVHeader { void SetRefMultiplicityNeg(Int_t refMultNeg) { fRefMultNeg = refMultNeg; } void SetNumberOfMuons(Int_t nMuons) { fNMuons = nMuons; } void SetNumberOfDimuons(Int_t nDimuons) { fNDimuons = nDimuons; } - + void SetNumberOfGlobalMuons(Int_t nGlobalMuons) { fNGlobalMuons = nGlobalMuons; } // AU + void SetNumberOfGlobalDimuons(Int_t nGlobalDimuons) { fNGlobalDimuons = nGlobalDimuons; } // AU + void SetRefMultiplicityComb05(Int_t refMult) { fRefMultComb05 = refMult; } + void SetRefMultiplicityComb08(Int_t refMult) { fRefMultComb08 = refMult; } + void SetQTheta(Double_t *QTheta, UInt_t size = 5); void RemoveQTheta(); + void ResetEventplanePointer(); + void SetDiamond(Float_t xy[2],Float_t cov[3]) { for(Int_t i=0;i<3;i++) {fDiamondCovXY[i] = cov[i];} for(Int_t i=0;i<2;i++) {fDiamondXY[i] = xy[i] ;} @@ -163,7 +187,7 @@ class AliAODHeader : public AliVHeader { TString GetESDFileName() const {return fESDFileName;} void Clear(Option_t* = ""); enum {kNPHOSMatrix = 5}; - enum {kNEMCALMatrix = 12}; + enum {kNEMCALMatrix = 22}; enum {kT0SpreadSize = 4}; void SetVZEROEqFactors(const Float_t* factors) { @@ -176,6 +200,14 @@ class AliAODHeader : public AliVHeader { void SetT0spread(Int_t i, Float_t t) { if ((i>=0)&&(iGetEventplane("Q"); + const TVector2* qvect=eventplane->GetQVector(); + fEventplaneMag = -999; + fEventplaneQx = -999; + fEventplaneQy = -999; + if (qvect) { + fEventplaneMag=qvect->Mod(); + fEventplaneQx=qvect->X(); + fEventplaneQy=qvect->Y(); + } } else{ fEventplane = -999; + fEventplaneMag = -999; + fEventplaneQx = -999; + fEventplaneQy = -999; } } +inline +void AliAODHeader::ResetEventplanePointer() { + delete fEventplaneP; + fEventplaneP = 0x0; +} inline void AliAODHeader::SetITSClusters(Int_t ilay, UInt_t nclus)