<commit_before>//-------------------------------------------------------------------------
//            Implementation of the ITS clusterer V2 class
//
//          Origin: <NAME>, CERN, <EMAIL>
//-------------------------------------------------------------------------
//uncomment the line below for running with V1 cluster finder classes 
//#define V1

#include "AliRun.h"

#include "AliITSclustererV2.h"
#include "AliITSclusterV2.h"
#include "AliRawReader.h"
#include "AliITSRawStreamSPD.h"
#include "AliITSRawStreamSDD.h"
#include "AliITSRawStreamSSD.h"

#include <TFile.h>
#include <TTree.h>
#include <TClonesArray.h>
#include "AliITSgeom.h"
#include "AliITSdigit.h"

ClassImp(AliITSclustererV2)

extern AliRun *gAlice;

AliITSclustererV2::AliITSclustererV2(const AliITSgeom *geom) {
  //------------------------------------------------------------
  // Standard constructor
  //------------------------------------------------------------
  AliITSgeom *g=(AliITSgeom*)geom;

  fEvent=0;
  fI=0;

  Int_t mmax=geom->GetIndexMax();
  if (mmax>2200) {
     Error("AliITSclustererV2","Too many ITS subdetectors !"); 
     exit(1);
  }
  Int_t m;
  for (m=0; m<mmax; m++) {
     Int_t lay,lad,det; g->GetModuleId(m,lay,lad,det);
     Float_t x,y,z;     g->GetTrans(lay,lad,det,x,y,z); 
     Double_t rot[9];   g->GetRotMatrix(lay,lad,det,rot);
     fYshift[m] = x*rot[0] + y*rot[1];
     fZshift[m] = (Double_t)z;
     fNdet[m] = (lad-1)*g->GetNdetectors(lay) + (det-1);
  }
  fNModules = g->GetIndexMax();

  //SPD geometry  
  fLastSPD1=g->GetModuleIndex(2,1,1)-1;
  fNySPD=256; fNzSPD=160;
  fYpitchSPD=0.0050;
  fZ1pitchSPD=0.0425; fZ2pitchSPD=0.0625;
  fHwSPD=0.64; fHlSPD=3.48;
  fYSPD[0]=0.5*fYpitchSPD;
  for (m=1; m<fNySPD; m++) fYSPD[m]=fYSPD[m-1]+fYpitchSPD; 
  fZSPD[0]=fZ1pitchSPD;
  for (m=1; m<fNzSPD; m++) {
    Double_t dz=fZ1pitchSPD;<commit_msg>Using Fatal instead of Error+exit<commit_after>//-------------------------------------------------------------------------
//            Implementation of the ITS clusterer V2 class
//
//          Origin: <NAME>, CERN, <EMAIL>
//-------------------------------------------------------------------------
//uncomment the line below for running with V1 cluster finder classes 
//#define V1

#include "AliRun.h"

#include "AliITSclustererV2.h"
#include "AliITSclusterV2.h"
#include "AliRawReader.h"
#include "AliITSRawStreamSPD.h"
#include "AliITSRawStreamSDD.h"
#include "AliITSRawStreamSSD.h"

#include <TFile.h>
#include <TTree.h>
#include <TClonesArray.h>
#include "AliITSgeom.h"
#include "AliITSdigit.h"

ClassImp(AliITSclustererV2)

extern AliRun *gAlice;

AliITSclustererV2::AliITSclustererV2(const AliITSgeom *geom) {
  //------------------------------------------------------------
  // Standard constructor
  //------------------------------------------------------------
  AliITSgeom *g=(AliITSgeom*)geom;

  fEvent=0;
  fI=0;

  Int_t mmax=geom->GetIndexMax();
  if (mmax>2200) {
     Fatal("AliITSclustererV2","Too many ITS subdetectors !"); 
  }
  Int_t m;
  for (m=0; m<mmax; m++) {
     Int_t lay,lad,det; g->GetModuleId(m,lay,lad,det);
     Float_t x,y,z;     g->GetTrans(lay,lad,det,x,y,z); 
     Double_t rot[9];   g->GetRotMatrix(lay,lad,det,rot);
     fYshift[m] = x*rot[0] + y*rot[1];
     fZshift[m] = (Double_t)z;
     fNdet[m] = (lad-1)*g->GetNdetectors(lay) + (det-1);
  }
  fNModules = g->GetIndexMax();

  //SPD geometry  
  fLastSPD1=g->GetModuleIndex(2,1,1)-1;
  fNySPD=256; fNzSPD=160;
  fYpitchSPD=0.0050;
  fZ1pitchSPD=0.0425; fZ2pitchSPD=0.0625;
  fHwSPD=0.64; fHlSPD=3.48;
  fYSPD[0]=0.5*fYpitchSPD;
  for (m=1; m<fNySPD; m++) fYSPD[m]=fYSPD[m-1]+fYpitchSPD; 
  fZSPD[0]=fZ1pitchSPD;
  for (m=1; m<fNzSPD; m++) {
    Double_t dz=fZ1pitchSPD;
{'fraction_non_alphanumeric': 0.2883895131086142, 'fraction_numerical': 0.03451043338683788, 'mean_word_length': 2.192997438087105, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 29, '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': '7454022', 'n_tokens_mistral': 1565, 'n_tokens_neox': 1520, 'n_words': 240}