// -- EMCAL and PHOS Cluster
TClonesArray *GetCaloClusters() const { return fCaloClusters; }
- Int_t GetNumberOfCaloClusters() const { return fCaloClusters->GetEntriesFast(); }
- AliAODCaloCluster *GetCaloCluster(Int_t nCluster) const { return (AliAODCaloCluster*)fCaloClusters->UncheckedAt(nCluster); }
+ Int_t GetNumberOfCaloClusters() const { return fCaloClusters?fCaloClusters->GetEntriesFast():0; }
+ AliAODCaloCluster *GetCaloCluster(Int_t nCluster) const { return fCaloClusters?(AliAODCaloCluster*)fCaloClusters->UncheckedAt(nCluster):0x0; }
Int_t AddCaloCluster(const AliAODCaloCluster* clus)
{new((*fCaloClusters)[fCaloClusters->GetEntriesFast()]) AliAODCaloCluster(*clus); return fCaloClusters->GetEntriesFast()-1;}
AliAODCaloTrigger *GetCaloTrigger(TString calo) const
fMuonMagFieldScale(-999.),
fCentrality(-999.),
fEventplane(-999.),
+ fEventplaneMag(-999.),
fZDCN1Energy(-999.),
fZDCP1Energy(-999.),
fZDCN2Energy(-999.),
fMuonMagFieldScale(-999.),
fCentrality(-999.),
fEventplane(-999.),
+ fEventplaneMag(-999.),
fZDCN1Energy(-999.),
fZDCP1Energy(-999.),
fZDCN2Energy(-999.),
fMuonMagFieldScale(hdr.fMuonMagFieldScale),
fCentrality(hdr.fCentrality),
fEventplane(hdr.fEventplane),
+ fEventplaneMag(hdr.fEventplaneMag),
fZDCN1Energy(hdr.fZDCN1Energy),
fZDCP1Energy(hdr.fZDCP1Energy),
fZDCN2Energy(hdr.fZDCN2Energy),
fMuonMagFieldScale= hdr.fMuonMagFieldScale;
fCentrality = hdr.fCentrality;
fEventplane = hdr.fEventplane;
+ fEventplaneMag = hdr.fEventplaneMag;
fZDCN1Energy = hdr.fZDCN1Energy;
fZDCP1Energy = hdr.fZDCP1Energy;
fZDCN2Energy = hdr.fZDCN2Energy;
delete fEventplaneP;
fEventplaneP = 0;
fEventplane = -999;
+ fEventplaneMag = -999.;
}
return;
}
printf("Centrality : %f\n", fCentrality);
printf("Event plane : %f\n", fEventplane);
+ printf("Event plane : %f\n", fEventplaneMag);
printf("ZDC N1 Energy : %f\n", fZDCN1Energy);
printf("ZDC P1 Energy : %f\n", fZDCP1Energy);
printf("ZDC N2 Energy : %f\n", fZDCN2Energy);
// Author: Markus Oldenburg, CERN
//-------------------------------------------------------------------------
+#include <TVector2.h>
+
#include "AliVHeader.h"
#include "AliAODVertex.h"
#include <TString.h>
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] ;}
Double32_t fMuonMagFieldScale; // magnetic field scale of muon arm magnet
Double32_t fCentrality; // Centrality
Double32_t fEventplane; // Event plane angle
+ Double32_t fEventplaneMag; // Length of Q vector from TPC event plance
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
AliEventplane* fEventplaneP; // Pointer to full event plane information
Float_t fVZEROEqFactors[64]; // V0 channel equalization factors for event-plane reconstruction
Float_t fT0spread[kT0SpreadSize]; // spread of time distributions: (TOA+T0C/2), T0A, T0C, (T0A-T0C)/2
- ClassDef(AliAODHeader, 18);
+ ClassDef(AliAODHeader, 19);
};
inline
void AliAODHeader::SetCentrality(const AliCentrality* cent) {
if(fEventplaneP)*fEventplaneP = *eventplane;
else fEventplaneP = new AliEventplane(*eventplane);
fEventplane = eventplane->GetEventplane("Q");
+ const TVector2* qvect=eventplane->GetQVector();
+ fEventplaneMag = -999;
+ if (qvect) fEventplaneMag=qvect->Mod();
}
else{
fEventplane = -999;
+ fEventplaneMag = -999;
}
}
+inline
+void AliAODHeader::ResetEventplanePointer() {
+ delete fEventplaneP;
+ fEventplaneP = 0x0;
+}
inline
void AliAODHeader::SetITSClusters(Int_t ilay, UInt_t nclus)