//_______________________________________________________________________
TPolyLine3D* AliTPCLaserTracks::GetLine()
{
+ //
+ // Make a polilyne object oout of the points
+ //
if ( fNpoints ) return new TPolyLine3D(fNpoints,fXarr,fYarr,fZarr);
return 0x0;
//_______________________________________________________________________
TObjArray* AliTPCLaserTracks::GetLines(Char_t* file, Char_t *cuts)
{
-
+ //
+ // Read the input files with the laser track
+ // Make a array of polylines for visualization
+
TObjArray *array = new TObjArray;
TFile *f = TFile::Open(file,"read");
//
// if ( fP ) delete fP;
- if ( fXarr ) delete fXarr;
- if ( fYarr ) delete fYarr;
- if ( fZarr ) delete fZarr;
+ if ( fXarr ) delete [] fXarr;
+ if ( fYarr ) delete [] fYarr;
+ if ( fZarr ) delete [] fZarr;
}
////////////////////////////////////////////////////////////////////////////
class TString;
-//class TPolyLine3D;
+class TPolyLine3D;
class TObjArray;
class TGraph;
class TVector3;
-#include <TPolyLine3D.h>
////////////////////////////////////////////////////////////////////////
// Class AliTPCLaserTracks
AliTPCLaserTracks(const AliTPCLaserTracks ¶m); // copy constructor
AliTPCLaserTracks &operator = (const AliTPCLaserTracks & param);
- Int_t GetId() {return fId; }
- Int_t GetSide() {return fSide; }
- Int_t GetRod() {return fRod; }
- Int_t GetBundle(){return fBundle; }
- Int_t GetBeam() {return fBeam; }
-
- Double_t GetX() {return fX; }
- Double_t GetY() {return fY; }
- Double_t GetZ() {return fZ; }
- Double_t GetPhi() {return fPhi; }
- Double_t GetTheta(){return fTheta;}
+ Int_t GetId() const {return fId; }
+ Int_t GetSide() const {return fSide; }
+ Int_t GetRod() const {return fRod; }
+ Int_t GetBundle() const {return fBundle; }
+ Int_t GetBeam() const {return fBeam; }
+
+ Double_t GetX() const {return fX; }
+ Double_t GetY() const {return fY; }
+ Double_t GetZ() const {return fZ; }
+ Double_t GetPhi() const {return fPhi; }
+ Double_t GetTheta() const{return fTheta;}
TPolyLine3D *GetLine();
Int_t SetPoint(Int_t point, Double_t x, Double_t y, Double_t z);