PandaRoot
PndTrackingQACDash.h
Go to the documentation of this file.
1 /*
2  * PndTrackingQACDash.h
3  *
4  * Created on: 12.05.2023
5  * Author: tstockmanns
6  */
7 
8 #pragma once
9 
11 #include "PndTrackingQAAna.h"
12 
13 #include "TString.h"
14 #include "TObject.h"
15 
16 class PndTrackingQACDash : public TObject {
17  public:
19  PndTrackingQACDash(TString fileName);
20  virtual ~PndTrackingQACDash();
21  void GenerateCDashOutput();
22 
23  void SetQAFileName(TString fileName) { fQAFileName = fileName; }
24  void SetWorkdir(TString workdir) { fWorkdir = workdir; }
25  void SetPicturePrefix(TString prefix) { fPicturePrefix = prefix; }
26  void SetMeasurementBoundary(TString name, double lowVal, double highVal, TString longName = "") { fBoundaries.SetBoundaries(name.Data(), lowVal, highVal, longName.Data()); }
27  void SetMeasurementBoundaries(PndMeasurementBoundaries &boundaries) { fBoundaries = boundaries; }
28 
29  protected:
30  void WriteCDashPngFileName(std::string fileName);
31 
32  private:
33  PndMeasurementBoundaries fBoundaries;
34  TString fQAFileName;
35  TString fPicturePrefix = "test";
36  PndTrackingQAAna fAna;
37  // PndTrackingQAAnaNew fAna;
38  TString fWorkdir = ".";
39  std::map<std::string, double> fResults;
40 
41  ClassDef(PndTrackingQACDash, 1);
42 };
void SetBoundaries(std::string mapName, double lowVal, double highVal, std::string measurementName="")
void SetWorkdir(TString workdir)
void SetMeasurementBoundary(TString name, double lowVal, double highVal, TString longName="")
void GenerateCDashOutput()
void SetQAFileName(TString fileName)
void SetPicturePrefix(TString prefix)
void SetMeasurementBoundaries(PndMeasurementBoundaries &boundaries)
virtual ~PndTrackingQACDash()
void WriteCDashPngFileName(std::string fileName)