<commit_before>#ifndef ALI_TOF_PREPROCESSOR_H
#define ALI_TOF_PREPROCESSOR_H

/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
 * See cxx source for full Copyright notice                               */

/* $Id$ */

#include "AliPreprocessor.h"

// TOF preprocessor. It takes care of both  
// DCS Data Points
// and DAQ histograms to compute online calibration constants

class AliTOFDataDCS;
class TObjArray;
class AliTOFCalOnline;
class AliTOFGeometryV5;
class AliTOFGeometry;
class TH2S;

class AliTOFPreprocessor : public AliPreprocessor
{
  public:
    AliTOFPreprocessor(AliShuttleInterface* shuttle);
    virtual ~AliTOFPreprocessor();

  protected:
    virtual void Initialize(Int_t run, UInt_t startTime, UInt_t endTime);
    virtual UInt_t Process(TMap* dcsAliasMap);

  private:
    AliTOFPreprocessor(const AliTOFPreprocessor & proc); // copy constructor
    AliTOFPreprocessor& operator=(const AliTOFPreprocessor & proc);

    static const Int_t fgkBinRangeAve;   // number of bins where to 
                                         // calculate the mean
    static const Double_t fgkThrPar;     // parameter used to trigger the 
                                         //calculation of the delay
    AliTOFDataDCS *fData;    // CDB class that stores the data
    TH2S *fh2;       // TH2S from DAQ for histograms for delays  
    AliTOFCalOnline *fCal;         // TOF Calibration object
    AliTOFGeometry *fTOFGeometry;  // TOF Geometry version

    ClassDef(AliTOFPreprocessor, 0);
};

#endif
<commit_msg>added flag + get/set methods to control storage of reference data<commit_after>#ifndef ALI_TOF_PREPROCESSOR_H
#define ALI_TOF_PREPROCESSOR_H

/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
 * See cxx source for full Copyright notice                               */

/* $Id$ */

#include "AliPreprocessor.h"

// TOF preprocessor. It takes care of both  
// DCS Data Points
// and DAQ histograms to compute online calibration constants

class AliTOFDataDCS;
class TObjArray;
class AliTOFCalOnline;
class AliTOFGeometryV5;
class AliTOFGeometry;
class TH2S;

class AliTOFPreprocessor : public AliPreprocessor
{
  public:
    AliTOFPreprocessor(AliShuttleInterface* shuttle);
    virtual ~AliTOFPreprocessor();
    void   SetStoreRefData(Bool_t in){fStoreRefData=in;};
    Bool_t GetStoreRefData() const {return fStoreRefData;};

  protected:
    virtual void Initialize(Int_t run, UInt_t startTime, UInt_t endTime);
    virtual UInt_t Process(TMap* dcsAliasMap);

  private:
    AliTOFPreprocessor(const AliTOFPreprocessor & proc); // copy constructor
    AliTOFPreprocessor& operator=(const AliTOFPreprocessor & proc);

    static const Int_t fgkBinRangeAve;   // number of bins where to 
                                         // calculate the mean
    static const Double_t fgkThrPar;     // parameter used to trigger the 
                                         //calculation of the delay
    AliTOFDataDCS *fData;    // CDB class that stores the data
    TH2S *fh2;       // TH2S from DAQ for histograms for delays  
    AliTOFCalOnline *fCal;         // TOF Calibration object
    AliTOFGeometry *fTOFGeometry;  // TOF Geometry version
    Bool_t fStoreRefData;  // Flag to decide storage of Ref Data
    ClassDef(AliTOFPreprocessor, 1);
};
#endif

{'fraction_non_alphanumeric': 0.0696069606960696, 'fraction_numerical': 0.0084008400840084, 'mean_word_length': 2.8903150525087513, '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': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1843671', 'n_tokens_mistral': 1041, 'n_tokens_neox': 961, 'n_words': 306}