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

//////////////////////////////////////////////////////////
// Class used to setup the mapping of hardware adresses //
// in ALTRO to pad-rows and pad indeces.                //
// The mapping is defined in an external mapping files  //
// separately for TPC,PHOS and FMD.                     //
//////////////////////////////////////////////////////////

#include <TObject.h>

class AliAltroMapping: public TObject {
 public:
  AliAltroMapping();
  AliAltroMapping(const char *mappingFile);
  virtual ~AliAltroMapping();

  AliAltroMapping(const AliAltroMapping& mapping);
  AliAltroMapping& operator = (const AliAltroMapping& mapping);

  virtual Int_t GetHWAddress(Int_t padrow, Int_t pad, Int_t sector) const = 0;
  virtual Int_t GetPadRow(Int_t hwAddress) const = 0;
  virtual Int_t GetPad(Int_t hwAddress) const = 0;
  virtual Int_t GetSector(Int_t hwAddress) const = 0;

 protected:
  Bool_t OpenMappingFile(const char *mappingFile);
  Bool_t CloseMappingFile();
  virtual Bool_t ReadMapping() = 0;
  virtual void   DeleteMappingArrays() = 0;

  ifstream *fIn;               // External mapping file
  Int_t     fNumberOfChannels; // Number of ALTRO channels
  Int_t     fMaxHWAddress;     // Maximum HW adress

  ClassDef(AliAltroMapping,1)  // Altro mapping handler class
};

#endif<commit_msg>ifstream member should not be persistent. Thanks to Christian for spotting it<commit_after>#ifndef AliALTROMAPPING_H
#define AliALTROMAPPING_H
/* Copyright(c) 1998-2003, ALICE Experiment at CERN, All rights reserved. *
 * See cxx source for full Copyright notice                               */

//////////////////////////////////////////////////////////
// Class used to setup the mapping of hardware adresses //
// in ALTRO to pad-rows and pad indeces.                //
// The mapping is defined in an external mapping files  //
// separately for TPC,PHOS and FMD.                     //
//////////////////////////////////////////////////////////

#include <TObject.h>

class AliAltroMapping: public TObject {
 public:
  AliAltroMapping();
  AliAltroMapping(const char *mappingFile);
  virtual ~AliAltroMapping();

  AliAltroMapping(const AliAltroMapping& mapping);
  AliAltroMapping& operator = (const AliAltroMapping& mapping);

  virtual Int_t GetHWAddress(Int_t padrow, Int_t pad, Int_t sector) const = 0;
  virtual Int_t GetPadRow(Int_t hwAddress) const = 0;
  virtual Int_t GetPad(Int_t hwAddress) const = 0;
  virtual Int_t GetSector(Int_t hwAddress) const = 0;

 protected:
  Bool_t OpenMappingFile(const char *mappingFile);
  Bool_t CloseMappingFile();
  virtual Bool_t ReadMapping() = 0;
  virtual void   DeleteMappingArrays() = 0;

  ifstream *fIn;               //! External mapping file
  Int_t     fNumberOfChannels; // Number of ALTRO channels
  Int_t     fMaxHWAddress;     // Maximum HW adress

  ClassDef(AliAltroMapping,2)  // Altro mapping handler class
};

#endif
{'fraction_non_alphanumeric': 0.15043394406943106, 'fraction_numerical': 0.009643201542912247, 'mean_word_length': 2.4010928961748634, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '2057915', 'n_tokens_mistral': 931, 'n_tokens_neox': 872, 'n_words': 282}