#include "AliAODVertex.h"
#include <TString.h>
#include "AliCentrality.h"
+#include "AliEventplane.h"
class TGeoHMatrix;
class TString;
Double_t magField,
Double_t muonMagFieldScale,
Double_t cent,
+ Double_t eventplane,
Double_t n1Energy,
Double_t p1Energy,
Double_t n2Energy,
Double_t GetMuonMagFieldScale() const { return fMuonMagFieldScale; }
Double_t GetCentrality() const { return fCentrality; }
+ Double_t GetEventplane() const { return fEventplane; }
Double_t GetZDCN1Energy() const { return fZDCN1Energy; }
Double_t GetZDCP1Energy() const { return fZDCP1Energy; }
Double_t GetZDCN2Energy() const { return fZDCN2Energy; }
UInt_t GetL1TriggerInputs() const {return fL1TriggerInputs;}
UShort_t GetL2TriggerInputs() const {return fL2TriggerInputs;}
AliCentrality* GetCentralityP() const { return fCentralityP; }
+ AliEventplane* GetEventplaneP() const { return fEventplaneP; }
void SetRunNumber(Int_t nRun) { fRunNumber = nRun; }
void SetEventType(UInt_t evttype) { fEventType = evttype; }
void SetMagneticField(Double_t magFld) { fMagneticField = magFld; }
void SetMuonMagFieldScale(Double_t magFldScl){ fMuonMagFieldScale = magFldScl; }
-
- void SetCentrality(AliCentrality* cent) {
- if(cent){
- if(fCentralityP)*fCentralityP = *cent;
- else fCentralityP = new AliCentrality(*cent);
- fCentrality = cent->GetCentralityPercentile("V0M");
- }
- else{
- fCentrality = -999;
- }
- }
+ void SetCentrality(AliCentrality* cent);
+ void SetEventplane(AliEventplane* eventplane);
void SetZDCN1Energy(Double_t n1Energy) { fZDCN1Energy = n1Energy; }
void SetZDCP1Energy(Double_t p1Energy) { fZDCP1Energy = p1Energy; }
void SetZDCN2Energy(Double_t n2Energy) { fZDCN2Energy = n2Energy; }
}
UInt_t GetOfflineTrigger() { return fOfflineTrigger; }
- void SetOfflineTrigger(UInt_t trigger) { fOfflineTrigger = trigger; }
- TString GetESDFileName() {return fESDFileName;}
+ void SetOfflineTrigger(UInt_t trigger) { fOfflineTrigger = trigger; }
+ UInt_t GetNumberOfITSClusters(Int_t ilay) const {return fITSClusters[ilay];}
+ void SetITSClusters(Int_t ilay, UInt_t nclus);
+ Int_t GetTPConlyRefMultiplicity() const {return fTPConlyRefMult;}
+ void SetTPConlyRefMultiplicity(Int_t mult) {fTPConlyRefMult = mult;}
+
+ TString GetESDFileName() const {return fESDFileName;}
void Clear(Option_t* = "");
enum {kNPHOSMatrix = 5};
enum {kNEMCALMatrix = 12};
Double32_t fMagneticField; // Solenoid Magnetic Field in kG
Double32_t fMuonMagFieldScale; // magnetic field scale of muon arm magnet
Double32_t fCentrality; // Centrality
+ Double32_t fEventplane; // Event plane angle
Double32_t fZDCN1Energy; // reconstructed energy in the neutron1 ZDC
Double32_t fZDCP1Energy; // reconstructed energy in the proton1 ZDC
Double32_t fZDCN2Energy; // reconstructed energy in the neutron2 ZDC
UInt_t fL0TriggerInputs; // L0 Trigger Inputs (mask)
UInt_t fL1TriggerInputs; // L1 Trigger Inputs (mask)
UShort_t fL2TriggerInputs; // L2 Trigger Inputs (mask)
+ UInt_t fITSClusters[6]; // Number of ITS cluster per layer
+ Int_t fTPConlyRefMult; // Reference multiplicty for standard TPC only tracks
AliCentrality* fCentralityP; // Pointer to full centrality information
- ClassDef(AliAODHeader, 14);
+ AliEventplane* fEventplaneP; // Pointer to full event plane information
+ ClassDef(AliAODHeader, 16);
};
+inline
+void AliAODHeader::SetCentrality(AliCentrality* cent) {
+ if(cent){
+ if(fCentralityP)*fCentralityP = *cent;
+ else fCentralityP = new AliCentrality(*cent);
+ fCentrality = cent->GetCentralityPercentile("V0M");
+ }
+ else{
+ fCentrality = -999;
+ }
+}
+inline
+void AliAODHeader::SetEventplane(AliEventplane* eventplane) {
+ if(eventplane){
+ if(fEventplaneP)*fEventplaneP = *eventplane;
+ else fEventplaneP = new AliEventplane(*eventplane);
+ fEventplane = eventplane->GetEventplane("Q");
+ }
+ else{
+ fEventplane = -999;
+ }
+}
+
+inline
+void AliAODHeader::SetITSClusters(Int_t ilay, UInt_t nclus)
+{
+ if (ilay >= 0 && ilay < 6) fITSClusters[ilay] = nclus;
+}
+
#endif