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

/* $Id$ */

class TBrowser;
class TList;
class TTree;
class TGeometry;
class TDatabasePDG;
#include <TArrayI.h>
#include <TArrayF.h>
#include <TStopwatch.h>

class AliDetector;
class AliModule;
class AliMagF;
class AliMC;
class AliLego;
class AliDisplay;
class AliLegoGenerator;
#include "AliHeader.h"
#include "AliGenerator.h"
#include "AliLegoGenerator.h"

enum {kKeepBit=1, kDaughtersBit=2, kDoneBit=4};


class AliRun : public TNamed {
public:
   // Creators - distructors
   AliRun();
   AliRun(const char *name, const char *title);
   virtual ~AliRun();

   virtual  void  AddHit(Int_t id, Int_t track, Int_t *vol, Float_t *hits) const;
   virtual  void  AddDigit(Int_t id, Int_t *tracks, Int_t *digits) const;
   virtual  void  AddHitList(TCollection *hitList) {fHitLists->Add(hitList);}
   virtual  void  Browse(TBrowser *b);
   virtual  void  Build();
   virtual  void  BuildSimpleGeometry();
   virtual  void  CleanDetectors();
   virtual  void  CleanParents();
   TObjArray     *Detectors() const {return fModules;}
   TObjArray     *Modules() const {return fModules;}
   Int_t          CurrentTrack() const {return fCurrent;}
   AliDisplay    *Display() { return fDisplay;}
   virtual  Int_t DistancetoPrimitive(Int_t px, Int_t py);
   virtual  void  DumpPart (Int_t i) const;
   virtual  void  DumpPStack () const;
   virtual AliMagF *Field() const {return fField;}
   virtual  void  FillTree();
   virtual  void  FinishPrimary();
   virtual  void  FinishEvent();
   virtual  void  FinishRun();
   virtual  void  FlagTrack(Int_t track);
   void           AddEnergyDeposit(Int_t id, Float_t edep) 
                                       {fEventEnergy[id]+=edep;}
   Int_t          GetEvNumber() const {return fEvent;}
   Int_t          GetRunNumber() const {return fRun;}
   void           SetRunNumber(Int_t run) {fRun=run;}
   Int_t          GetDebug() const {return fDebug;}
   AliModule     *GetModule(const char *name) const;
   AliDetector   *GetDetector(const char *name) const;
   Int_t          GetModuleID(const char *name) const;
   virtual  Int_t GetEvent(Int_t event);
   virtual  void  SetEvent(Int_t event) {fEvent=event;}
   virtual  void  SetConfigFunction(const char * config="Config();");
   virtual  const char *GetConfigFunction() const 
    {return fConfigFunction.Data();}
   TGeometry     *GetGeometry();
   AliHeader     *GetHeader() {return &fHeader;}
   virtual  void  GetNextTrack(Int_t &mtrack, Int_t &ipart, Float_t *pmom,
			       Float_t &e, Float_t *vpos, Float_t *polar, 
			       Float_t &tof);
   Int_t          GetNtrack() const {return fNtrack;}
   virtual  Int_t GetPrimary(Int_t track) const;
   virtual  void  InitMC(const char *setup="Config.C");
   virtual  void  Init(const char *setup="Config.C") {InitMC(setup);}
   Bool_t         IsFolder() const {return kTRUE;}
   virtual AliLego* Lego() const {return fLego;}
   virtual  void  MakeTree(Option_t *option="KH");
   TClonesArray  *Particles() {return fParticles;};
   virtual  void  PurifyKine();
   virtual  Int_t PurifyKine(Int_t lastSavedTrack, Int_t nofTracks);
   virtual  void  BeginEvent();
   virtual  void  ResetDigits();
   virtual  void  ResetHits();
   virtual  void  ResetPoints();
   virtual  void  SetTransPar(char *filename="$(ALICE_ROOT)/data/galice.cuts");
   virtual  void  ResetStack() {fCurrent=-1;fHgwmk=0;fNtrack=0;fParticles->Clear();}
   virtual  void  RunMC(Int_t nevent=1, const char *setup="Config.C");
   virtual  void  Run(Int_t nevent=1, const char *setup="Config.C") 
  {RunMC(nevent,setup);}
   virtual  void  RunLego(const char *setup="Config.C",Int_t ntheta=60,Float_t themin=2,Float_t themax=178,
			  Int_t nphi=60,Float_t phimin=0,Float_t phimax=360,Float_t rmin=0,
			  Float_t rmax=430,Float_t zmax=10000, AliLegoGenerator* gener=NULL);
   virtual  Bool_t IsLegoRun() const {return (fLego!=0);}
   virtual  void  SetCurrentTrack(Int_t track);                           
   virtual  void  SetDebug(const Int_t level=1) {fDebug = level;}
   virtual  void  SetDisplay(AliDisplay *display) {fDisplay = display;}
   virtual  void  StepManager(Int_t id);
   virtual  void  SetField(Int_t type=2, Int_t version=1, Float_t scale=1, Float_t maxField=10, char*filename="$(ALICE_ROOT)/data/field01.dat");
   virtual  void  SetTrack(Int_t done, Int_t parent, Int_t pdg, 
  			       Float_t *pmom, Float_t *vpos, Float_t *polar, 
                               Float_t tof, const char *mecha, Int_t &ntr,
                               Float_t weight=1);
  virtual  void  KeepTrack(const Int_t itra);
   virtual  void  MediaTable();
   virtual  Float_t TrackingZmax() const {return fTrZmax;}
   virtual  Float_t TrackingRmax() const {return fTrRmax;}
   virtual  void    TrackingLimits( Float_t rmax=1.e10, Float_t zmax=1.e10) {fTrRmax=rmax; fTrZmax=zmax;}
   virtual  Int_t   DetFromMate(Int_t i) const { return (*fImedia)[i];}
   virtual  AliGenerator* Generator() const {return fGenerator;}
   virtual  void SetGenerator(AliGenerator *generator);
   virtual  void ResetGenerator(AliGenerator *generator);
   virtual  void EnergySummary();
   virtual  TDatabasePDG* PDGDB() const {return fPDGDB;}


   TTree         *TreeD() {return fTreeD;}
   TTree         *TreeE() {return fTreeE;}
   TTree         *TreeH() {return fTreeH;}<commit_msg>Names in argument list of RunLego() changed.<commit_after>#ifndef ALIRUN_H
#define ALIRUN_H
/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
 * See cxx source for full Copyright notice                               */

/* $Id$ */

class TBrowser;
class TList;
class TTree;
class TGeometry;
class TDatabasePDG;
#include <TArrayI.h>
#include <TArrayF.h>
#include <TStopwatch.h>

class AliDetector;
class AliModule;
class AliMagF;
class AliMC;
class AliLego;
class AliDisplay;
class AliLegoGenerator;
#include "AliHeader.h"
#include "AliGenerator.h"
#include "AliLegoGenerator.h"

enum {kKeepBit=1, kDaughtersBit=2, kDoneBit=4};


class AliRun : public TNamed {
public:
   // Creators - distructors
   AliRun();
   AliRun(const char *name, const char *title);
   virtual ~AliRun();

   virtual  void  AddHit(Int_t id, Int_t track, Int_t *vol, Float_t *hits) const;
   virtual  void  AddDigit(Int_t id, Int_t *tracks, Int_t *digits) const;
   virtual  void  AddHitList(TCollection *hitList) {fHitLists->Add(hitList);}
   virtual  void  Browse(TBrowser *b);
   virtual  void  Build();
   virtual  void  BuildSimpleGeometry();
   virtual  void  CleanDetectors();
   virtual  void  CleanParents();
   TObjArray     *Detectors() const {return fModules;}
   TObjArray     *Modules() const {return fModules;}
   Int_t          CurrentTrack() const {return fCurrent;}
   AliDisplay    *Display() { return fDisplay;}
   virtual  Int_t DistancetoPrimitive(Int_t px, Int_t py);
   virtual  void  DumpPart (Int_t i) const;
   virtual  void  DumpPStack () const;
   virtual AliMagF *Field() const {return fField;}
   virtual  void  FillTree();
   virtual  void  FinishPrimary();
   virtual  void  FinishEvent();
   virtual  void  FinishRun();
   virtual  void  FlagTrack(Int_t track);
   void           AddEnergyDeposit(Int_t id, Float_t edep) 
                                       {fEventEnergy[id]+=edep;}
   Int_t          GetEvNumber() const {return fEvent;}
   Int_t          GetRunNumber() const {return fRun;}
   void           SetRunNumber(Int_t run) {fRun=run;}
   Int_t          GetDebug() const {return fDebug;}
   AliModule     *GetModule(const char *name) const;
   AliDetector   *GetDetector(const char *name) const;
   Int_t          GetModuleID(const char *name) const;
   virtual  Int_t GetEvent(Int_t event);
   virtual  void  SetEvent(Int_t event) {fEvent=event;}
   virtual  void  SetConfigFunction(const char * config="Config();");
   virtual  const char *GetConfigFunction() const 
    {return fConfigFunction.Data();}
   TGeometry     *GetGeometry();
   AliHeader     *GetHeader() {return &fHeader;}
   virtual  void  GetNextTrack(Int_t &mtrack, Int_t &ipart, Float_t *pmom,
			       Float_t &e, Float_t *vpos, Float_t *polar, 
			       Float_t &tof);
   Int_t          GetNtrack() const {return fNtrack;}
   virtual  Int_t GetPrimary(Int_t track) const;
   virtual  void  InitMC(const char *setup="Config.C");
   virtual  void  Init(const char *setup="Config.C") {InitMC(setup);}
   Bool_t         IsFolder() const {return kTRUE;}
   virtual AliLego* Lego() const {return fLego;}
   virtual  void  MakeTree(Option_t *option="KH");
   TClonesArray  *Particles() {return fParticles;};
   virtual  void  PurifyKine();
   virtual  Int_t PurifyKine(Int_t lastSavedTrack, Int_t nofTracks);
   virtual  void  BeginEvent();
   virtual  void  ResetDigits();
   virtual  void  ResetHits();
   virtual  void  ResetPoints();
   virtual  void  SetTransPar(char *filename="$(ALICE_ROOT)/data/galice.cuts");
   virtual  void  ResetStack() {fCurrent=-1;fHgwmk=0;fNtrack=0;fParticles->Clear();}
   virtual  void  RunMC(Int_t nevent=1, const char *setup="Config.C");
   virtual  void  Run(Int_t nevent=1, const char *setup="Config.C") 
  {RunMC(nevent,setup);}
   virtual  void  RunLego(const char *setup="Config.C",Int_t nc1=60,Float_t c1min=2,Float_t c1max=178,
			  Int_t nc2=60,Float_t c2min=0,Float_t c2max=360,Float_t rmin=0,
			  Float_t rmax=430,Float_t zmax=10000, AliLegoGenerator* gener=NULL);
   virtual  Bool_t IsLegoRun() const {return (fLego!=0);}
   virtual  void  SetCurrentTrack(Int_t track);                           
   virtual  void  SetDebug(const Int_t level=1) {fDebug = level;}
   virtual  void  SetDisplay(AliDisplay *display) {fDisplay = display;}
   virtual  void  StepManager(Int_t id);
   virtual  void  SetField(Int_t type=2, Int_t version=1, Float_t scale=1, Float_t maxField=10, char*filename="$(ALICE_ROOT)/data/field01.dat");
   virtual  void  SetTrack(Int_t done, Int_t parent, Int_t pdg, 
  			       Float_t *pmom, Float_t *vpos, Float_t *polar, 
                               Float_t tof, const char *mecha, Int_t &ntr,
                               Float_t weight=1);
  virtual  void  KeepTrack(const Int_t itra);
   virtual  void  MediaTable();
   virtual  Float_t TrackingZmax() const {return fTrZmax;}
   virtual  Float_t TrackingRmax() const {return fTrRmax;}
   virtual  void    TrackingLimits( Float_t rmax=1.e10, Float_t zmax=1.e10) {fTrRmax=rmax; fTrZmax=zmax;}
   virtual  Int_t   DetFromMate(Int_t i) const { return (*fImedia)[i];}
   virtual  AliGenerator* Generator() const {return fGenerator;}
   virtual  void SetGenerator(AliGenerator *generator);
   virtual  void ResetGenerator(AliGenerator *generator);
   virtual  void EnergySummary();
   virtual  TDatabasePDG* PDGDB() const {return fPDGDB;}


   TTree         *TreeD() {return fTreeD;}
   TTree         *TreeE() {return fTreeE;}
   TTree         *TreeH() {return fTreeH;}
{'fraction_non_alphanumeric': 0.10656110656110657, 'fraction_numerical': 0.010192010192010192, 'mean_word_length': 3.452998379254457, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2523047', 'n_tokens_mistral': 3824, 'n_tokens_neox': 3703, 'n_words': 989}