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

/* $Id$ */

//-------------------------------------------------------------------------
//     Input Handler realisation of the AliVEventHandler interface
//     Author: <NAME>, CERN
//-------------------------------------------------------------------------

#include "AliVEventHandler.h"

class TTree;
class AliVEvent;

class AliInputEventHandler : public AliVEventHandler {

 public:
    AliInputEventHandler();
    AliInputEventHandler(const char* name, const char* title);
    virtual ~AliInputEventHandler();
    virtual void         SetOutputFileName(char* /*fname*/) {;}
    virtual char        *GetOutputFileName()                          {return 0;}
    virtual Bool_t       Init(Option_t* /*opt*/)                      {return kTRUE;}
    virtual Bool_t       Init(TTree* /*tree*/, Option_t* /*opt*/)     {return kTRUE;}
    virtual Bool_t       BeginEvent(Long64_t /*entry*/)               {return kTRUE;}
    virtual Bool_t       Notify() { return AliVEventHandler::Notify(); };
    virtual Bool_t       Notify(const char */*path*/)                 {return kTRUE;}
    virtual Bool_t       FinishEvent()                                {return kTRUE;}        
    virtual Bool_t       Terminate()                                  {return kTRUE;}
    virtual Bool_t       TerminateIO()                                {return kTRUE;}
    // Setters
    virtual void         SetInputTree(TTree* tree)                    {fTree = tree;}
     // Getters
    virtual AliVEvent   *GetEvent() const                             {return 0;}
    virtual TTree       *GetTree( ) const                             {return fTree;}
 private:
    AliInputEventHandler(const AliInputEventHandler& handler);             
    AliInputEventHandler& operator=(const AliInputEventHandler& handler);  
 protected:
    TTree        *fTree;    //! Pointer to the tree
    ClassDef(AliInputEventHandler, 1);
};

#endif
<commit_msg>Getter for entry in tree addded.<commit_after>#ifndef ALIINPUTEVENTHANDLER_H
#define ALIINPUTEVENTHANDLER_H
/* Copyright(c) 1998-2007, ALICE Experiment at CERN, All rights reserved. *
 * See cxx source for full Copyright notice                               */

/* $Id$ */

//-------------------------------------------------------------------------
//     Input Handler realisation of the AliVEventHandler interface
//     Author: <NAME>, CERN
//-------------------------------------------------------------------------

#include "AliVEventHandler.h"
#include <TTree.h>


class AliVEvent;

class AliInputEventHandler : public AliVEventHandler {

 public:
    AliInputEventHandler();
    AliInputEventHandler(const char* name, const char* title);
    virtual ~AliInputEventHandler();
    virtual void         SetOutputFileName(char* /*fname*/) {;}
    virtual char        *GetOutputFileName()                          {return 0;}
    virtual Bool_t       Init(Option_t* /*opt*/)                      {return kTRUE;}
    virtual Bool_t       Init(TTree* /*tree*/, Option_t* /*opt*/)     {return kTRUE;}
    virtual Bool_t       BeginEvent(Long64_t /*entry*/)               {return kTRUE;}
    virtual Bool_t       Notify() { return AliVEventHandler::Notify(); };
    virtual Bool_t       Notify(const char */*path*/)                 {return kTRUE;}
    virtual Bool_t       FinishEvent()                                {return kTRUE;}        
    virtual Bool_t       Terminate()                                  {return kTRUE;}
    virtual Bool_t       TerminateIO()                                {return kTRUE;}
    // Setters
    virtual void         SetInputTree(TTree* tree)                    {fTree = tree;}
     // Getters
    virtual AliVEvent   *GetEvent() const                             {return 0;}
    virtual TTree       *GetTree( ) const                             {return fTree;}
    virtual Long64_t     GetReadEntry() const                         {return fTree->GetReadEntry();}
 private:
    AliInputEventHandler(const AliInputEventHandler& handler);             
    AliInputEventHandler& operator=(const AliInputEventHandler& handler);  
 protected:
    TTree        *fTree;    //! Pointer to the tree
    ClassDef(AliInputEventHandler, 1);
};

#endif

{'fraction_non_alphanumeric': 0.15476728422955263, 'fraction_numerical': 0.0063262539539087215, 'mean_word_length': 1.547180667433832, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 7, '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': '6931627', 'n_tokens_mistral': 1122, 'n_tokens_neox': 1085, 'n_words': 301}