PandaRoot
PndMvdStripQATask.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 
23 #ifndef PndMvdStripQATask_H
24 #define PndMvdStripQATask_H
25 
26 // #pragma once
27 
28 // framework includes
29 #include "PndSdsHit.h"
30 #include "PndGeoHandling.h"
31 #include "PndFairHitQATask.h"
32 
33 #include <array>
34 
36  public:
39 
41  virtual ~PndMvdStripQATask();
42 
44  virtual void SetParContainers() override;
45 
46  protected:
47  std::array<Double_t, 6> DoubleGaussFit(TH1 *);
48  virtual void InitHistos() override;
49  virtual void SetAllBoundaries() override;
50  virtual void CalculateResolutions(FairHit *fairhit) override;
51  virtual void FillHistos() override;
52  virtual void AssignMeasurements() override;
53 
54  private:
55  PndGeoHandling *fGeoH = nullptr;
56 
57  double fEnergyDifference = 0.;
58  int fClusterSize = 0;
59 
60  ClassDef(PndMvdStripQATask, 1);
61 };
62 
63 #endif
std::array< Double_t, 6 > DoubleGaussFit(TH1 *)
virtual void InitHistos() override
Initialize the histograms containing the measurement data in the histogram map.
Class to access the naming information of the MVD.
Base class to tests reconstructed hits based on FairHits for the PANDA QA tasks This class calculate...
virtual ~PndMvdStripQATask()
virtual void SetAllBoundaries() override
Set the name and the boundaries for a measurement to pass.
virtual void SetParContainers() override
virtual void FillHistos() override
Fill the output of CalculateResolutions into the corresponding histograms.
virtual void AssignMeasurements() override
Extract the measurement values from the histograms like mean or RMS values and assign them to the mea...
virtual void CalculateResolutions(FairHit *fairhit) override
Calculate the resolution of a FairHit based on the MC data from a FairMCPoint.