4 #include "PixTestTbm.hh"
18 LOG(logINFO) <<
"PixTestTbm ctor(PixSetup &a, string, TGTab *)";
23 PixTestTbm::PixTestTbm() :
PixTest() {
24 LOG(logINFO) <<
"PixTestTbm ctor()";
30 for (
unsigned int i = 0; i <
fParameters.size(); ++i) {
34 LOG(logDEBUG) <<
" ==> parName: " << parName;
35 LOG(logDEBUG) <<
" ==> sval: " << sval;
36 if (!parName.compare(
"Ntrig")) fParNtrig = atoi(sval.c_str());
37 if (!parName.compare(
"Vcal")) fParVcal = atoi(sval.c_str());
46 fTestTip = string(
"test functionality of TBM channels\n")
47 + string(
"TO BE DEVELOPED!!")
49 fSummaryTip = string(
"to be seen ... ")
55 void PixTestTbm::init() {
56 LOG(logINFO) <<
"PixTestTbm::init()";
58 fDirectory = gFile->GetDirectory(fName.c_str());
68 void PixTestTbm::bookHist(
string name) {
70 LOG(logINFO) <<
"nothing done with " << name;
75 PixTestTbm::~PixTestTbm() {
76 LOG(logINFO) <<
"PixTestTbm dtor";
82 LOG(logINFO) <<
"PixTestTbm::doTest() ntrig = " << fParNtrig;
87 copy(test2.begin(), test2.end(), back_inserter(
fHistList));
94 LOG(logINFO) <<
"PixTestTbm::doTest() done";
virtual bool setParameter(std::string parName, std::string sval)
set the string value of a parameter
std::vector< TH2D * > efficiencyMaps(std::string name, uint16_t ntrig=10, uint16_t FLAGS=FLAG_FORCE_MASKED)
returns TH2D's with hit maps
void doTest()
function connected to "DoTest" button of PixTab
std::vector< std::pair< std::string, std::string > > fParameters
the parameters of this test
void setToolTips()
implement this to provide updated tool tips if the user changes test parameters
TDirectory * fDirectory
where the root histograms will end up
void testAllPixels(bool enable)
std::list< TH1 * >::iterator fDisplayedHist
pointer to the histogram currently displayed
std::list< TH1 * > fHistList
list of histograms available in PixTab::next and PixTab::previous
void update()
signal to PixTab to update the canvas
pxar::pxarCore * fApi
pointer to the API
void init()
sets all test parameters