+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;
+}
+