X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=HLT%2FCALO%2FAliHLTCaloUtilities.h;h=4055188316de0761690b6a95edb9de6eade5f303;hb=734cbb00e5cce2c1c265c43ad398e87fc1b40b6c;hp=2d0cc38c64011254751199a5f6b93d8809b04f90;hpb=178dd351248bf21ab03e477efdc3fac0fc43ef8a;p=u%2Fmrichter%2FAliRoot.git diff --git a/HLT/CALO/AliHLTCaloUtilities.h b/HLT/CALO/AliHLTCaloUtilities.h index 2d0cc38c640..4055188316d 100644 --- a/HLT/CALO/AliHLTCaloUtilities.h +++ b/HLT/CALO/AliHLTCaloUtilities.h @@ -1,5 +1,5 @@ //-*- Mode: C++ -*- -// $Id: AliHLTCaloUtilities.h 34264 2009-08-14 18:29:23Z odjuvsla $ +// $Id: AliHLTCALOUtilities.h 34264 2009-08-14 18:29:23Z odjuvsla $ #ifndef ALIHLTCALOUTILITIES_H #define ALIHLTCALOUTILITIES_H @@ -26,51 +26,14 @@ using namespace std; -// TODO: Documentation! - -// AliHLTCaloUtilities class AliHLTCaloUtilities { public: AliHLTCaloUtilities(); virtual ~AliHLTCaloUtilities(); - - bool CheckFile(const char *fileName, const char *opt) const; - - bool ScanSingleIntArgument(int argc, const char** argv, const char *name, int *value = 0 ); - bool ScanSingleFloatArgument(int argc, const char** argv, const char *name, float *value = 0 ); - bool ScanSingleNameArgument(int argc, const char** argv, const char *name, char *outname = 0 ); - bool ScanSingleArgument(int argc, const char** argv, const char *name); - - template - void DumpData(T *array, int N, int nPerLine) - { - // cout << "DumpData N= " << N < - void ResetArray(T *array, int N) const - { - for(int i= 0; i< N; i++) - { - array[i] = 0; - } - } - + template - T MaxValue(T *array, int N) const + static T MaxValue(T *array, int N) { T tmpMax = 0; @@ -83,13 +46,7 @@ class AliHLTCaloUtilities } return tmpMax; } - - - - private: - int DoExistArgument(const int argc, const char** argv, const char *argument) const; - }; #endif