//_____________________________________________________________________________
AliRsnPairFunctions::AliRsnPairFunctions(const char *name, AliRsnPairDef *def) :
- AliRsnPair(name, def),
- fFunctions("AliRsnFunction", 0)
+ AliRsnPair(name, def),
+ fFunctions("AliRsnFunction", 0)
{
//
// Default constructor
//
-
- AliDebug(AliLog::kDebug+2,"<-");
- AliDebug(AliLog::kDebug+2,"->");
}
//_____________________________________________________________________________
AliRsnPairFunctions::AliRsnPairFunctions(const AliRsnPairFunctions& copy) :
- AliRsnPair(copy),
- fFunctions(copy.fFunctions)
+ AliRsnPair(copy),
+ fFunctions(copy.fFunctions)
{
//
// Default constructor
//
-
- AliDebug(AliLog::kDebug+2,"<-");
- AliDebug(AliLog::kDebug+2,"->");
}
//_____________________________________________________________________________
AliRsnPairFunctions& AliRsnPairFunctions::operator=(const AliRsnPairFunctions& copy)
{
- AliRsnPair::operator=(copy);
+ AliRsnPair::operator=(copy);
- Int_t i, n = copy.fFunctions.GetEntries();
- for (i = 0; i < n; i++)
- {
- AliRsnFunction *fcn = (AliRsnFunction*)copy.fFunctions[i];
- if (fcn) AddFunction(fcn);
- }
+ Int_t i, n = copy.fFunctions.GetEntries();
+ for (i = 0; i < n; i++) {
+ AliRsnFunction *fcn = (AliRsnFunction*)copy.fFunctions[i];
+ if (fcn) AddFunction(fcn);
+ }
- return (*this);
+ return (*this);
}
//_____________________________________________________________________________
//
// Destructor
//
-
- AliDebug(AliLog::kDebug+2,"<-");
- AliDebug(AliLog::kDebug+2,"->");
}
//_____________________________________________________________________________
// Checks all cuts and then computes the corresponding pair object
// and then fill the list of required values using it.
//
-
- AliDebug(AliLog::kDebug+2,"<-");
-
- TObjArrayIter nextFcn(&fFunctions);
- AliRsnFunction *fcn = 0x0;
-
- while ((fcn = (AliRsnFunction*)nextFcn()))
- {
- fcn->SetPairDef(fPairDef);
- fcn->SetPair(&fMother);
- fcn->SetEvent(fEvent);
- fcn->Fill();
- }
-
- AliDebug(AliLog::kDebug+2,"->");
+
+ TObjArrayIter nextFcn(&fFunctions);
+ AliRsnFunction *fcn = 0x0;
+
+ while ((fcn = (AliRsnFunction*)nextFcn())) {
+ fcn->SetPairDef(fPairDef);
+ fcn->SetPair(&fMother);
+ fcn->Fill();
+ }
}
//_____________________________________________________________________________
// All generated histograms are stored into the output TList.
//
- AliDebug(AliLog::kDebug+2,"<-");
-
- Int_t i;
- TString hName("");
- AliRsnFunction *fcn = 0;
- for (i = 0; i < fFunctions.GetEntries(); i++)
- {
- fcn = (AliRsnFunction*)fFunctions.At(i);
- hName += prefix;
- hName += '_';
- hName += GetName();
- hName += '_';
- hName += fcn->GetName();
- if (fcn->IsUsingTH1()) list->Add(fcn->CreateHistogram(hName.Data(), ""));
- else list->Add(fcn->CreateHistogramSparse(hName.Data(), ""));
- }
-
- AliDebug(AliLog::kDebug+2,"->");
+ Int_t i;
+ TString hName("");
+ AliRsnFunction *fcn = 0;
+ for (i = 0; i < fFunctions.GetEntries(); i++) {
+ fcn = (AliRsnFunction*)fFunctions.At(i);
+ hName = prefix;
+ hName += '_';
+ hName += GetName();
+ hName += '_';
+ hName += fcn->GetName();
+ if (fcn->IsUsingTH1()) list->Add(fcn->CreateHistogram(hName.Data(), ""));
+ else list->Add(fcn->CreateHistogramSparse(hName.Data(), ""));
+ }
}
//_____________________________________________________________________________
// Adds a new computing function
//
- AliDebug(AliLog::kDebug+2,"<-");
-
- fFunctions.Print();
- Int_t size = fFunctions.GetEntries();
- new(fFunctions[size]) AliRsnFunction(*fcn);
-
- AliDebug(AliLog::kDebug+2,"->");
+ Int_t size = fFunctions.GetEntries();
+ new (fFunctions[size]) AliRsnFunction(*fcn);
+ fFunctions.Print();
}