<commit_before>#ifndef ALICLUSTER_H
#define ALICLUSTER_H
/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
 * See cxx source for full Copyright notice                               */

/* $Id$ */

//-------------------------------------------------------------------------
//                          Class AliCluster
//                Generic class for clusters
//       Origin: <NAME>, CERN, <EMAIL> 
//-------------------------------------------------------------------------

#include <TObject.h>

//_____________________________________________________________________________
class AliCluster : public TObject {
public:
  AliCluster();
  virtual ~AliCluster() {;}
  AliCluster(Int_t *lab, Float_t *hit);
  void SetLabel(Int_t lab, Int_t i) {fTracks[i]=lab;}
  void SetY(Float_t y)              {fY=y;}
  void SetZ(Float_t z)              {fZ=z;}
  void SetSigmaY2(Float_t sy2)      {fSigmaY2=sy2;}
  void SetSigmaZ2(Float_t sz2)      {fSigmaZ2=sz2;}

  Int_t GetLabel(Int_t i) const {return fTracks[i];}
  Float_t GetY()          const {return fY;}
  Float_t GetZ()          const {return fZ;}
  Float_t GetSigmaY2()    const {return fSigmaY2;}
  Float_t GetSigmaZ2()    const {return fSigmaZ2;}

  //PH  virtual void Use() = 0;
  //PH The pure virtual function has been temporarily replaced by 
  //PH virtual function with empty body. This correction somehow helps
  //PH to write/read TClonesArray with AliITSclusterV2 objects, but obviously
  //PH hides some more tricky problems (to be investigated)
  virtual void Use(Int_t = 0) {;}

protected:
  Int_t     fTracks[3];//labels of overlapped tracks
  Float_t   fY ;       //Y of cluster
  Float_t   fZ ;       //Z of cluster
  Float_t   fSigmaY2;  //Sigma Y square of cluster
  Float_t   fSigmaZ2;  //Sigma Z square of cluster
  
  ClassDef(AliCluster,1)  // Time Projection Chamber clusters
};

#endif


<commit_msg>Possibility to overload SetY and SetZ<commit_after>#ifndef ALICLUSTER_H
#define ALICLUSTER_H
/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
 * See cxx source for full Copyright notice                               */

/* $Id$ */

//-------------------------------------------------------------------------
//                          Class AliCluster
//                Generic class for clusters
//       Origin: <NAME>, CERN, <EMAIL> 
//-------------------------------------------------------------------------

#include <TObject.h>

//_____________________________________________________________________________
class AliCluster : public TObject {
public:
  AliCluster();
  virtual ~AliCluster() {;}
  AliCluster(Int_t *lab, Float_t *hit);
  void SetLabel(Int_t lab, Int_t i) {fTracks[i]=lab;}
  virtual void SetY(Float_t y)      {fY=y;}
  virtual void SetZ(Float_t z)      {fZ=z;}
  void SetSigmaY2(Float_t sy2)      {fSigmaY2=sy2;}
  void SetSigmaZ2(Float_t sz2)      {fSigmaZ2=sz2;}

  Int_t GetLabel(Int_t i) const {return fTracks[i];}
  Float_t GetY()          const {return fY;}
  Float_t GetZ()          const {return fZ;}
  Float_t GetSigmaY2()    const {return fSigmaY2;}
  Float_t GetSigmaZ2()    const {return fSigmaZ2;}

  //PH  virtual void Use() = 0;
  //PH The pure virtual function has been temporarily replaced by 
  //PH virtual function with empty body. This correction somehow helps
  //PH to write/read TClonesArray with AliITSclusterV2 objects, but obviously
  //PH hides some more tricky problems (to be investigated)
  virtual void Use(Int_t = 0) {;}

protected:
  Int_t     fTracks[3];//labels of overlapped tracks
  Float_t   fY ;       //Y of cluster
  Float_t   fZ ;       //Z of cluster
  Float_t   fSigmaY2;  //Sigma Y square of cluster
  Float_t   fSigmaZ2;  //Sigma Z square of cluster
  
  ClassDef(AliCluster,1)  // Time Projection Chamber clusters
};

#endif



{'fraction_non_alphanumeric': 0.16753653444676408, 'fraction_numerical': 0.014091858037578288, 'mean_word_length': 2.126427406199021, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1309816', 'n_tokens_mistral': 1177, 'n_tokens_neox': 1137, 'n_words': 359}