#include "MyClass.h" #if !defined(__CINT__) ClassImp(MyClass); #endif //______________________________________________________________________________ MyClass::MyClass() { //Default Constructor fNumberOfPoints = 0; } //______________________________________________________________________________ MyClass::~MyClass() { //Default Destructor if(fNumberOfPoints != 0){ delete[] fProfile1; delete[] fProfile2; delete[] fProfile3; delete[] fProfile4; delete[] fProfile5; delete[] fProfile6; delete[] fProfile7; delete[] fProfile8; delete[] fProfile9; delete[] fProfile10; delete[] fProfile11; delete[] fProfile12; delete[] fProfile13; } } //______________________________________________________________________________ void MyClass::FillProfile(Int_t numberOfPoints, Int_t **profileData) { fNumberOfPoints = numberOfPoints; fProfile1 = new Int_t[fNumberOfPoints]; fProfile2 = new Int_t[fNumberOfPoints]; fProfile3 = new Int_t[fNumberOfPoints]; fProfile4 = new Int_t[fNumberOfPoints]; fProfile5 = new Int_t[fNumberOfPoints]; fProfile6 = new Int_t[fNumberOfPoints]; fProfile7 = new Int_t[fNumberOfPoints]; fProfile8 = new Int_t[fNumberOfPoints]; fProfile9 = new Int_t[fNumberOfPoints]; fProfile10 = new Int_t[fNumberOfPoints]; fProfile11 = new Int_t[fNumberOfPoints]; fProfile12 = new Int_t[fNumberOfPoints]; fProfile13 = new Int_t[fNumberOfPoints]; for(Int_t loop = 0; loop < fNumberOfPoints; loop++){ fProfile1[loop] = profileData[0][loop]; fProfile2[loop] = profileData[1][loop]; fProfile3[loop] = profileData[2][loop]; fProfile4[loop] = profileData[3][loop]; fProfile5[loop] = profileData[4][loop]; fProfile6[loop] = profileData[5][loop]; fProfile7[loop] = profileData[6][loop]; fProfile8[loop] = profileData[7][loop]; fProfile9[loop] = profileData[8][loop]; fProfile10[loop] = profileData[9][loop]; fProfile11[loop] = profileData[10][loop]; fProfile12[loop] = profileData[11][loop]; fProfile13[loop] = profileData[12][loop]; } }