}
+void AliFlowCommonHist::Print(Option_t *option) const
+{
+ // -*-*-*-*-*Print some global quantities for this histogram collection class *-*-*-*-*-*-*-*
+ // ===============================================
+ //
+ // If option "base" is given, number of bins and ranges are also printed
+ // If option "range" is given, bin contents and errors are also printed
+ // for all bins in the current range (default 1-->nbins)
+ // If option "all" is given, bin contents and errors are also printed
+ // for all bins including under and overflows.
+ //
+ // printf( "TH1.Print Name = %s, Entries= %d, Total sum= %g\n",GetName(),Int_t(fEntries),GetSumOfWeights());
+ printf( "Class.Print Name = AliFlowCommonHist, Histogram list:");
+
+ fHistList->Print(option);
+
+}
+
+
+
TList* GetHistList() {return fHistList;} ;
virtual Double_t Merge(TCollection *aList); //merge function
+ //method to print stats
+ void Print(Option_t* option = "") const;
+
private:
}
//-----------------------------------------------------------------------
- AliFlowVector AliFlowEventSimple::GetQ()
+ AliFlowVector AliFlowEventSimple::GetQ(Int_t n)
{
//calculate Q.
Double_t dQY = 0.;
AliFlowVector vQ;
vQ.Set(0.,0.);
- Double_t dOrder = 2.;
+
+ Int_t iOrder = n;
Int_t iUsedTracks = 0;
for (Int_t i=0;i<fNumberOfTracks;i++)
if (pTrack){
if (pTrack->UseForIntegratedFlow()) {
Double_t dPhi = pTrack->Phi();
- dQX += TMath::Cos(dOrder*dPhi);
- dQY += TMath::Sin(dOrder*dPhi);
+ dQX += TMath::Cos(iOrder*dPhi);
+ dQY += TMath::Sin(iOrder*dPhi);
iUsedTracks++;
}
} //if particle
return vQ;
-}
+}
\ No newline at end of file
void SetEventNSelTracksIntFlow(Int_t nr) { this->fEventNSelTracksIntFlow = nr; }
AliFlowTrackSimple* GetTrack(Int_t i);
TObjArray* TrackCollection() const { return this->fTrackCollection; }
- AliFlowVector GetQ() ;
+ AliFlowVector GetQ(Int_t n=2);//default harmonic n=2
private:
TObjArray* fTrackCollection; // collection of tracks
};
#endif
-