AliAnalysisTaskME& AliAnalysisTaskME::operator=(const AliAnalysisTaskME& other)
{
// Assignment
- AliAnalysisTask::operator=(other);
- fDebug = other.fDebug;
- fEntry = other.fEntry;
- fFreshBufferOnly = other.fFreshBufferOnly;
- fInputHandler = other.fInputHandler;
- fOutputAOD = other.fOutputAOD;
- fTreeA = other.fTreeA;
- fOfflineTriggerMask = other.fOfflineTriggerMask;
+ if (this != &other) {
+ AliAnalysisTask::operator=(other);
+ fDebug = other.fDebug;
+ fEntry = other.fEntry;
+ fFreshBufferOnly = other.fFreshBufferOnly;
+ fInputHandler = other.fInputHandler;
+ fOutputAOD = other.fOutputAOD;
+ fTreeA = other.fTreeA;
+ fOfflineTriggerMask = other.fOfflineTriggerMask;
+ }
return *this;
}
//
// Was event selected ? If no event selection mechanism, the event SHOULD be selected (AG)
UInt_t isSelected = AliVEvent::kAny;
- if( fInputHandler && fInputHandler->GetEventSelection()) {
+ if(fInputHandler && fInputHandler->GetEventSelection()) {
// Get the actual offline trigger mask for the event and AND it with the
// requested mask. If no mask requested select by default the event.
if (fOfflineTriggerMask)
isSelected = fOfflineTriggerMask & fInputHandler->IsEventSelected();
}
+
if (!isSelected) {
if (fDebug > 1) AliInfo("Event rejected \n");
fInputHandler->EventSkipped();
}
// Call the user analysis
- if (fInputHandler->IsBufferReady()) {
+ if (fInputHandler && fInputHandler->IsBufferReady()) {
if ((fFreshBufferOnly && fInputHandler->IsFreshBuffer()) || !fFreshBufferOnly)
{
if (outputHandler) outputHandler->SetFillAOD(kTRUE);