//-*- 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
using namespace std;
-// 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<typename T>
- void DumpData(T *array, int N, int nPerLine)
- {
- // cout << "DumpData N= " << N <<endl;
- for(int i= 0; i< N; i++)
- {
- if((i%nPerLine == 0) && (i != 0))
- {
- //printf("\n");
- cout << endl;
- }
-
- cout << array[i]<< "\t";
- }
- // printf("\n");
- cout << endl;
- }
-
- template<typename T>
- void ResetArray(T *array, int N) const
- {
- for(int i= 0; i< N; i++)
- {
- array[i] = 0;
- }
- }
-
+
template<typename T>
- T MaxValue(T *array, int N) const
+ static T MaxValue(T *array, int N)
{
T tmpMax = 0;
}
return tmpMax;
}
-
-
-
- private:
- int DoExistArgument(const int argc, const char** argv, const char *argument) const;
-
};
#endif