10#include "FemtoCorrFunc.h"
26 fEventCol.SetName(
"EventColID");
27 fPairCol.SetName(
"TrackColID");
28 if (h != NULL && size > 0) {
30 fArray->
Init(size, h);
34 FemtoCorrFunc::FemtoCorrFunc(
const DividedHisto1D& h, Int_t size) {
35 fEventCol.SetName(
"EventColID");
36 fPairCol.SetName(
"TrackColID");
39 fArray->
Init(size, &h);
46 Cout::PrintInfo(
"Cannot merge CorrFunc, sizes are different", EInfo::kError);
49 for (
int i = 0; i < fArray->
GetSize(); i++) {
52 this_func->
Add(other_func);
57 void FemtoCorrFunc::Browse(TBrowser* b) {
60 for (
int i = 0; i < fArray->
GetSize(); i++) {
61 b->Add(fArray->
At(i));
65 FemtoCorrFunc::FemtoCorrFunc(
const FemtoCorrFunc& other) {
66 if (other.fArray) { fArray = (ObjectMatrix_1*) other.
fArray->Clone(); }
67 fEventCol = other.fEventCol;
68 fPairCol = other.fPairCol;
71 FemtoCorrFunc& FemtoCorrFunc::operator=(
const FemtoCorrFunc& other) {
72 if (
this == &other)
return *
this;
73 if (fArray)
delete fArray;
74 if (other.fArray) { fArray = (ObjectMatrix_1*) other.
fArray->Clone(); }
75 fEventCol = other.fEventCol;
76 fPairCol = other.fPairCol;
80 FemtoCorrFunc::~FemtoCorrFunc() {
81 if (fArray)
delete fArray;
static void PrintInfo(TString text, Hal::EInfo status)
virtual void Add(const Object *h)
virtual void Add(const Object *pack)
virtual void Init(Int_t size, const TObject *temp)
TObject * At(Int_t i) const
virtual void Add(const Object *pack)