]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONTrackLight.h
fix array access out of bound + add histo for #chamber hit
[u/mrichter/AliRoot.git] / MUON / AliMUONTrackLight.h
index fe7a49b2288142780d4b7f9bacd9f8ed8275815a..dc976cac55477ba772dcb555d9103ff13930694f 100644 (file)
@@ -36,6 +36,7 @@ class AliMUONTrackLight : public TObject {
   AliMUONTrackLight(); 
   AliMUONTrackLight(AliESDMuonTrack* muonTrack); 
   AliMUONTrackLight(const AliMUONTrackLight &muonCopy);
+  AliMUONTrackLight& operator=(const AliMUONTrackLight&);
   virtual ~AliMUONTrackLight(); 
   
   /// Set 4-momentum of the generated particle
@@ -49,21 +50,21 @@ class AliMUONTrackLight : public TObject {
   /// Set primary vertex position from the ITS
   void SetVertex(Double_t *xyz) {for (Int_t i=0; i<3; i++) fXYZ[i]=xyz[i];}
   /// Return primary vertex x position from the ITS 
-  Double_t GetX() { return fXYZ[0]; } 
+  Double_t GetX() const { return fXYZ[0]; } 
   /// Return primary vertex y position from the ITS 
-  Double_t GetY() { return fXYZ[1]; } 
+  Double_t GetY() const { return fXYZ[1]; } 
   /// Return primary vertex z position from the ITS 
-  Double_t GetZ() { return fXYZ[2]; } 
+  Double_t GetZ() const { return fXYZ[2]; } 
   /// Return  primary vertex position from the ITS
   Double_t* GetVertex() { return fXYZ; } 
   /// Set chi2 / ndf in the MUON track fit
   void SetChi2(Double_t chi2) {fChi2=chi2;}
   /// Return chi2 / ndf in the MUON track fit 
-  Double_t GetChi2() { return fChi2; } 
+  Double_t GetChi2() const { return fChi2; } 
   /// Set weight assigned to the muon
   void SetWeight(Double_t w) {fWeight=w;}
   /// Return weight assigned to the muon 
-  Double_t GetWeight() { return fWeight; } 
+  Double_t GetWeight() const { return fWeight; } 
   
   /// Set muon charge 
   void SetCharge(Int_t charge) {fCharge = charge;}
@@ -95,8 +96,6 @@ class AliMUONTrackLight : public TObject {
   void SetTriggered(Bool_t isTriggered) { fIsTriggered = isTriggered; } 
   /// Return flag for trigger  
   Bool_t IsTriggered() const { return fIsTriggered; } 
-  TParticle* FindRefTrack(AliMUONTrack* trackReco, AliMUONVTrackStore* trackRefArray, AliStack* stack);
-  Int_t TrackCheck(Bool_t *compTrack);
   /// Return acually filled no. of *fragmented* parents 
   Int_t GetNParents() const {return fNParents;}
   void FillMuonHistory(AliStack *stack, TParticle *part);
@@ -104,11 +103,11 @@ class AliMUONTrackLight : public TObject {
   Bool_t IsMotherAResonance(Int_t index=0) const;
   /// Return flag for oscillation 
   Bool_t GetOscillation() const {return fOscillation;}
-  virtual void PrintInfo(Option_t* opt); //"H" muon's decay history
+  virtual void PrintInfo(const Option_t* opt); //"H" muon's decay history
   //"K" muon kinematics
   //"A" all variables
   Int_t GetParentFlavour(Int_t idParent=0) const;
-  Bool_t IsDiquark(Int_t pdg);
+  Bool_t IsDiquark(Int_t pdg) const;
 protected:
   static const Int_t fgkNParentsMax = 5;   ///< maximum number of parents
   TLorentzVector fPrec; ///< reconstructed 4-momentum