fSelectMinEquipmentId(-1),
fSelectMaxEquipmentId(-1),
fSkipInvalid(kFALSE),
+ fSelectEventType(-1),
fErrorCode(0)
{
// default constructor: initialize data members
fSelectMinEquipmentId(rawReader.fSelectMinEquipmentId),
fSelectMaxEquipmentId(rawReader.fSelectMaxEquipmentId),
fSkipInvalid(rawReader.fSkipInvalid),
+ fSelectEventType(rawReader.fSelectEventType),
fErrorCode(0)
{
// copy constructor
fSelectMinEquipmentId = rawReader.fSelectMinEquipmentId;
fSelectMaxEquipmentId = rawReader.fSelectMaxEquipmentId;
fSkipInvalid = rawReader.fSkipInvalid;
+ fSelectEventType = rawReader.fSelectEventType;
fErrorCode = rawReader.fErrorCode;
fSelectMaxEquipmentId = maxEquipmentId;
}
+void AliRawReader::SelectEvents(Int_t type)
+{
+// read only events with the given type.
+// no selection is applied if a value < 0 is used.
+
+ fSelectEventType = type;
+}
+
Bool_t AliRawReader::IsSelected() const
{
// apply the selection (if any)
return kTRUE;
}
+Bool_t AliRawReader::IsEventSelected() const
+{
+// apply the event selection (if any)
+
+ if (fSelectEventType >= 0) {
+ if (GetType() != (UInt_t) fSelectEventType) return kFALSE;
+ }
+
+ return kTRUE;
+}
+
Bool_t AliRawReader::ReadNextInt(UInt_t& data)
{