//
// Base class to implement any computation within the RSN package.
-// It contains only an array of output objects which must derive
+// It contains only an array of output objects which must derive
// from AliRsnOutput.
-// Its core functions ar Init() and DoLoop() which must be
+// Its core functions ar Init() and DoLoop() which must be
// overloaded by any class which inherits from this.
//
}
//_____________________________________________________________________________
-AliRsnLoop::AliRsnLoop(const AliRsnLoop& copy) :
+AliRsnLoop::AliRsnLoop(const AliRsnLoop ©) :
TNamed(copy),
fIsMixed(copy.fIsMixed),
fEventCuts(copy.fEventCuts),
}
//_____________________________________________________________________________
-AliRsnLoop& AliRsnLoop::operator=(const AliRsnLoop& copy)
+AliRsnLoop &AliRsnLoop::operator=(const AliRsnLoop ©)
{
//
// Assignment operator
//
- if (this == ©)
- return *this;
- fIsMixed = copy.fIsMixed;
- fEventCuts = copy.fEventCuts;
- fOutputs = copy.fOutputs;
- return (*this);
+ if (this == ©)
+ return *this;
+ fIsMixed = copy.fIsMixed;
+ fEventCuts = copy.fEventCuts;
+ fOutputs = copy.fOutputs;
+ return (*this);
}
//_____________________________________________________________________________
//
//fOutputs.AddLast(out);
- AliRsnListOutput *out = (AliRsnListOutput*)object;
+ AliRsnListOutput *out = (AliRsnListOutput *)object;
Int_t n = fOutputs.GetEntries();
new (fOutputs[n]) AliRsnListOutput(*out);
}
//_____________________________________________________________________________
-void AliRsnLoop::Print(Option_t*) const
+void AliRsnLoop::Print(Option_t *) const
{
//
// Prints info about pair
//
-
+
TObjArrayIter next(&fOutputs);
AliRsnListOutput *out = 0x0;
-
- while ( (out = (AliRsnListOutput*)next()) ) {
+
+ while ( (out = (AliRsnListOutput *)next()) ) {
out->Print();
}
}
// If event cuts are defined, check event against them
//
- if (fEventCuts)
+ if (fEventCuts)
return fEventCuts->IsSelected(rsn);
else
return kTRUE;
TObjArrayIter next(&fOutputs);
AliRsnListOutput *out;
Bool_t globalOK = kTRUE;
-
- while ( (out = (AliRsnListOutput*)next()) ) {
+
+ while ( (out = (AliRsnListOutput *)next()) ) {
globalOK = globalOK && out->Init(prefix, list);
}
-
+
AliInfo(Form("[%s] Object initialization: %s", GetName(), (globalOK ? "successful" : "failed")));
return globalOK;
}