#include "Riostream.h"
#include "TCollection.h"
+#include "AliVEvent.h"
+
ClassImp(AliAnalysisStatistics)
//______________________________________________________________________________
fNinput(other.fNinput),
fNprocessed(other.fNprocessed),
fNfailed(other.fNfailed),
- fNaccepted(other.fNaccepted)
+ fNaccepted(other.fNaccepted),
+ fOfflineMask(other.fOfflineMask)
{
// Copy constructor.
}
fNprocessed = other.fNprocessed;
fNfailed = other.fNfailed;
fNaccepted = other.fNaccepted;
+ fOfflineMask = other.fOfflineMask;
return *this;
}
cout << "### Input events : " << fNinput << endl;
cout << "### Processed events w/o errors : " << fNprocessed << endl;
cout << "### Failed events : " << fNfailed << endl;
- cout << "### Accepted events : " << fNaccepted << endl;
+ cout << "### Accepted events for mask: " << GetMaskAsString(fOfflineMask) << ": " << fNaccepted << endl;
+}
+
+//______________________________________________________________________________
+const char *AliAnalysisStatistics::GetMaskAsString(UInt_t mask)
+{
+// Returns a string corresponding to the offline mask.
+ static TString smask;
+ smask = "ALL EVT.";
+ if (!mask) return smask.Data();
+ smask.Clear();
+ if (mask & AliVEvent::kMB) smask = "MB";
+ if (mask & AliVEvent::kMUON) {
+ if (!smask.IsNull()) smask += " | ";
+ smask += "MUON";
+ }
+ if (mask & AliVEvent::kHighMult) {
+ if (!smask.IsNull()) smask += " | ";
+ smask += "HighMult";
+ }
+ if (mask & AliVEvent::kUserDefined) {
+ if (!smask.IsNull()) smask += " | ";
+ smask += "UserDefined";
+ }
+ if (mask == AliVEvent::kAny) smask = "ANY";
+ return smask.Data();
}
+