pxar
 All Classes Namespaces Functions Variables Typedefs Friends
PixTestTrim.hh
1 #ifndef PIXTESTTRIM_H
2 #define PIXTESTTRIM_H
3 
4 #include "PixTest.hh"
5 
6 class DLLEXPORT PixTestTrim: public PixTest {
7 public:
8  PixTestTrim(PixSetup *, std::string);
9  PixTestTrim();
10  virtual ~PixTestTrim();
11  virtual bool setParameter(std::string parName, std::string sval);
12  void init();
13  void setToolTips();
14  void bookHist(std::string);
15 
16  void runCommand(std::string);
17  void trimBitTest();
18  void trimTest();
19 
20  int adjustVtrim();
21  std::vector<TH1*> trimStep(std::string name, int corrections, std::vector<TH1*> calMapOld, int vcalMin, int vcalMax);
22  void setTrimBits(int itrim = -1);
23 
24  void doTest();
25 
26 private:
27 
28  int fParVcal, fParNtrig;
29  std::vector<std::pair<int, int> > fPIX;
30  int fTrimBits[16][52][80];
31 
32  ClassDef(PixTestTrim, 1)
33 
34 };
35 #endif
virtual void runCommand(std::string command)
allow execution of any button in the test
Definition: PixTest.cc:129
virtual void doTest()
function connected to "DoTest" button of PixTab
Definition: PixTest.cc:602
std::vector< std::pair< int, int > > fPIX
range of enabled pixels for time-consuming tests
Definition: PixTest.hh:311
void bookHist(std::string name)
use if you want, or define the histograms in the specific member functions
Definition: PixTest.cc:93
virtual void setToolTips()
implement this to provide updated tool tips if the user changes test parameters
Definition: PixTest.cc:85
virtual bool setParameter(std::string parName, std::string sval)
set the string value of a parameter
Definition: PixTest.cc:433
void init()
sets all test parameters
Definition: PixTest.cc:62