pxar
 All Classes Namespaces Functions Variables Typedefs Friends
PixUtil.hh
1 #ifndef PIXUTIL_H
2 #define PIXUTIL_H
3 
4 #include "pxardllexport.h"
5 
6 #include <string>
7 
8 class DLLEXPORT PixUtil {
9 
10 public:
11  static void setPlotStyle();
12  static double dEff(int in, int iN);
13  static double dBinomial(int in, int iN);
14 
16  static int rcr2idx(int iroc, int icol, int irow);
18  static void idx2rcr(int idx, int &iroc, int &icol, int &irow);
20  static void cleanupString(std::string &);
22  static void replaceAll(std::string& str, const std::string& from, const std::string& to);
24  static bool bothAreSpaces(char lhs, char rhs);
25 
26 };
27 
28 
29 #endif
30