<commit_before>#ifndef ALIITSMAPA1_H
#define ALIITSMAPA1_H


#include "AliITSMap.h"
class AliITSsegmentation;
class TObjArray;


class AliITSMapA1 :
  public AliITSMap 
{
  
public:
  AliITSMapA1() {
    // constructor
  }
  AliITSMapA1(AliITSsegmentation *seg);
  AliITSMapA1(AliITSsegmentation *seg, TObjArray *dig);
  AliITSMapA1(const AliITSMapA1 &source);
    // Assignment operator
  AliITSMapA1& operator=(const AliITSMapA1 &source);
  
  virtual ~AliITSMapA1();
    // Fill hits from list of digits into hit map
  virtual  void  FillMap();
    // Clear the hit map
  virtual  void  ClearMap();    
    // Set a single hit
  virtual  void  SetHit(Int_t iz, Int_t ix, Int_t idigit);
    // Delete a single hit
  virtual  void  DeleteHit(Int_t iz, Int_t ix);
    // Get index of hit in the list of digits
  virtual Int_t  GetHitIndex(Int_t iz, Int_t ix);
    // Get pointer to digit
  virtual TObject* GetHit(Int_t iz, Int_t ix);
    // Flag a hit as used
  virtual  void  FlagHit(Int_t iz, Int_t ix);    
    // Test hit status
  virtual FlagType TestHit(Int_t iz, Int_t ix);
    // Get signal from map
  virtual Double_t  GetSignal(Int_t iz, Int_t ix); 
    // Get max index inmap
  Int_t   MaxIndex() {return fMaxIndex;}
   // Set the array of objects
  void SetArray(TObjArray *obj);
  
protected:
    // Check index
  Int_t   CheckedIndex(Int_t iz, Int_t ix);

  AliITSsegmentation *fSegmentation;   // segmentation class
  Int_t fNpx;                          // fNpx
  Int_t fNpz;                          // fNpz
  TObjArray  *fObjects;                // object
  Int_t fNobjects;                     // number of objects
  Int_t fMaxIndex;                     // max index in map
  
private:
  Int_t *fHitMap;                      //! [fMaxIndex]

  ClassDef(AliITSMapA1,1)              // Implements Hit/Digit Map 
};<commit_msg>New functions and constructors added and some other fixes.<commit_after>#ifndef ALIITSMAPA1_H
#define ALIITSMAPA1_H


#include "AliITSMap.h"
class AliITSsegmentation;
class TObjArray;


class AliITSMapA1 :
  public AliITSMap 
{
  
public:
  AliITSMapA1();
  AliITSMapA1(AliITSsegmentation *seg);
  AliITSMapA1(AliITSsegmentation *seg, TObjArray *dig);
  AliITSMapA1(AliITSsegmentation *seg, TObjArray *dig, Int_t threshold);
  AliITSMapA1(const AliITSMapA1 &source);
    // Assignment operator
  AliITSMapA1& operator=(const AliITSMapA1 &source);
  
  virtual ~AliITSMapA1();
    // Fill hits from list of digits into hit map
  virtual  void  FillMap();
    // Clear the hit map
  virtual  void  ClearMap();    
    // Set a single hit
  virtual  void  SetHit(Int_t iz, Int_t ix, Int_t idigit);
    // Set threshold for the signal
  virtual  void  SetThreshold(Int_t thresh) {fMapThreshold=thresh;}
    // Delete a single hit
  virtual  void  DeleteHit(Int_t iz, Int_t ix);
    // Get index of hit in the list of digits
  virtual Int_t  GetHitIndex(Int_t iz, Int_t ix);
    // Get pointer to digit
  virtual TObject* GetHit(Int_t iz, Int_t ix);
    // Flag a hit as used
  virtual  void  FlagHit(Int_t iz, Int_t ix);    
    // Test hit status
  virtual FlagType TestHit(Int_t iz, Int_t ix);
    // Get signal from map
  virtual Double_t  GetSignal(Int_t iz, Int_t ix); 
    // Get max index inmap
  Int_t   MaxIndex() {return fMaxIndex;}
   // Set the array of objects
  void SetArray(TObjArray *obj);
  
protected:
    // Check index
  Int_t   CheckedIndex(Int_t iz, Int_t ix);

  AliITSsegmentation *fSegmentation;   // segmentation class
  Int_t fNpx;                          // fNpx
  Int_t fNpz;                          // fNpz
  TObjArray  *fObjects;                // object
  Int_t fNobjects;                     // number of objects
  Int_t fMaxIndex;                     // max index in map
  
private:
  Int_t *fHitMap;                      //! [fMaxIndex]
  Int_t fMapThreshold;                 // signal threshold (ADC)

  ClassDef(AliITSMapA1,1)              // Implements Hit/Digit Map 
};
{'fraction_non_alphanumeric': 0.08352315869400152, 'fraction_numerical': 0.00683371298405467, 'mean_word_length': 2.392274678111588, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2709277', 'n_tokens_mistral': 1368, 'n_tokens_neox': 1328, 'n_words': 400}