CbmRoot
Loading...
Searching...
No Matches
CbmStsDigitizeQa.h
Go to the documentation of this file.
1/* Copyright (C) 2016-2020 Frankfurt Institute for Advanced Studies, Goethe-Universität Frankfurt, Frankfurt
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Hanna Malygina [committer], Volker Friese, Florian Uhlig */
4
5#ifndef CBMSTSDIGITIZEQA_H_
6#define CBMSTSDIGITIZEQA_H_
7
8#include "CbmHistManager.h"
9#include "CbmMCDataArray.h"
10#include "CbmStsDigi.h"
11
12#include "FairTask.h"
13
14#include <fstream>
15#include <iostream>
16#include <vector>
17class TClonesArray;
18class CbmDigiManager;
19class CbmStsDigitize;
20class CbmStsParAsic;
21class CbmStsParSim;
23class CbmStsSetup;
24
25class CbmStsDigitizeQa : public FairTask {
26public:
27 CbmStsDigitizeQa(CbmStsDigitize* digitizer = NULL);
28
29 virtual ~CbmStsDigitizeQa();
30
31 virtual InitStatus Init();
32
33 virtual void Exec(Option_t* opt);
34
35 virtual void SetParContainers();
36
37 virtual void Finish();
38
39 void SetOutputDir(const std::string& outputDir) { fOutputDir = outputDir; }
40
41 void CreateHistograms();
42
44
46
47 void ProcessDigisAndPoints(const TClonesArray* points);
48 void ProcessAngles();
49
50private:
51 void ReadDataBranches();
52
55 std::string fOutputDir;
56 TClonesArray* fStsPoints;
59 const CbmStsParSim* fSettings = nullptr;
61 const CbmStsParAsic* fAsicPar = nullptr;
62
63 Int_t fMaxScale;
64 std::ofstream fOutFile;
65 std::vector<std::vector<std::vector<std::vector<std::vector<Int_t>>>>> fnOfDigisChip;
66
69
71};
72
73#endif
TClonesArray * points
Histogram manager.
CbmDigiManager.
Histogram manager.
std::ofstream fOutFile
virtual void Exec(Option_t *opt)
const CbmStsParAsic * fAsicPar
std::string fOutputDir
CbmStsDigitizeQa(CbmStsDigitize *digitizer=NULL)
void ProcessDigisAndPoints(const TClonesArray *points)
const CbmStsParSim * fSettings
CbmStsDigitizeQa(const CbmStsDigitizeQa &)
CbmDigiManager * fDigiManager
virtual void SetParContainers()
CbmStsParSetModule * fModuleParSet
ClassDef(CbmStsDigitizeQa, 1)
std::vector< std::vector< std::vector< std::vector< std::vector< Int_t > > > > > fnOfDigisChip
CbmStsDigitizeQa & operator=(const CbmStsDigitizeQa &)
virtual void Finish()
void SetOutputDir(const std::string &outputDir)
CbmStsSetup * fSetup
virtual InitStatus Init()
TClonesArray * fStsPoints
CbmHistManager * fHM
Task class for simulating the detector response of the STS.
Parameters of the STS readout ASIC.
Parameters container for CbmStsParModule.
Settings for STS simulation (digitizer)
Class representing the top level of the STS setup.
Definition CbmStsSetup.h:43