pxar
 All Classes Namespaces Functions Variables Typedefs Friends
PixTestDaq.hh
1 #ifndef PIXTESTDAQ_H
2 #define PIXTESTDAQ_H
3 
4 #include "PixTest.hh"
5 #include "PHCalibration.hh"
6 
7 #include <TH1.h>
8 #include <TH2.h>
9 #include <TProfile2D.h>
10 
11 #include <TTree.h>
12 
13 class DLLEXPORT PixTestDaq: public PixTest {
14 public:
15  PixTestDaq(PixSetup *, std::string);
16  PixTestDaq();
17  virtual ~PixTestDaq();
18  void init();
19  void setToolTips();
20  void bookHist(std::string);
21  void doRunMaskHotPixels();
22  void doStop();
23  void runCommand(std::string command);
24  virtual bool setParameter(std::string parName, std::string sval);
25  void ProcessData(uint16_t numevents = 1000);
26  void doDaqRun();
27 
28  void doTest();
29 
30 private:
31 
32  bool fParDelayTBM;
33  bool fParFillTree;
34  uint16_t fParStretch;
35  uint16_t fParTriggerFrequency;
36  uint32_t fParNtrig;
37  uint16_t fParIter;
38  bool fRunDaqTrigger;
39  uint16_t fParSeconds;
40 
41  bool fPhCalOK;
42  PHCalibration fPhCal;
43  bool fParOutOfRange;
44  bool fDaq_loop;
45 
46 
47  std::vector<std::pair<std::string, uint8_t> > fPg_setup;
48 
49  std::vector<TH2D*> fHitMap;
50  std::vector<TProfile2D*> fPhmap;
51  std::vector<TH1D*> fPh;
52  std::vector<TH1D*> fQ;
53  std::vector<TProfile2D*> fQmap;
54 
55  std::vector<std::vector<std::pair<int, int> > > fHotPixels;
56 
57  ClassDef(PixTestDaq, 1)
58 
59 };
60 #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
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