PandaRoot
PndTrackingQACDash.h
Go to the documentation of this file.
1 //****************************************************************************
2 //* This file is part of PandaRoot. *
3 //* *
4 //* PandaRoot is distributed under the terms of the *
5 //* GNU General Public License (GPL) version 3, *
6 //* copied verbatim in the file "LICENSE". *
7 //* *
8 //* Copyright (C) 2006 - 2024 FAIR GmbH and copyright holders of PandaRoot *
9 //* The copyright holders are listed in the file "COPYRIGHTHOLDERS". *
10 //* The authors are listed in the file "AUTHORS". *
11 //****************************************************************************
12 
13 /*
14  * PndTrackingQACDash.h
15  *
16  * Created on: 12.05.2023
17  * Author: tstockmanns
18  */
19 
20 #pragma once
21 
23 #include "PndTrackingQAAna.h"
24 
25 #include "TString.h"
26 #include "TObject.h"
27 
28 class PndTrackingQACDash : public TObject {
29  public:
31  PndTrackingQACDash(TString fileName);
32  virtual ~PndTrackingQACDash();
33  void GenerateCDashOutput();
34 
35  void SetQAFileName(TString fileName) { fQAFileName = fileName; }
36  void SetWorkdir(TString workdir) { fWorkdir = workdir; }
37  void SetPicturePrefix(TString prefix) { fPicturePrefix = prefix; }
38  void SetMeasurementBoundary(TString name, double lowVal, double highVal, TString longName = "") { fBoundaries.SetBoundaries(name.Data(), lowVal, highVal, longName.Data()); }
39  void SetMeasurementBoundaries(PndMeasurementBoundaries &boundaries) { fBoundaries = boundaries; }
40 
41  protected:
42  void WriteCDashPngFileName(std::string fileName);
43 
44  private:
45  PndMeasurementBoundaries fBoundaries;
46  TString fQAFileName;
47  TString fPicturePrefix = "test";
48  PndTrackingQAAna fAna;
49  // PndTrackingQAAnaNew fAna;
50  TString fWorkdir = ".";
51  std::map<std::string, double> fResults;
52 
53  ClassDef(PndTrackingQACDash, 1);
54 };
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)