CbmRoot
CbmStsDigitizeQa.h
Go to the documentation of this file.
1 #ifndef CBMSTSDIGITIZEQA_H_
2 #define CBMSTSDIGITIZEQA_H_
3 
4 #include "CbmHistManager.h"
5 #include "CbmMCDataArray.h"
6 #include "CbmStsDigi.h"
7 #include "FairTask.h"
8 #include <fstream>
9 #include <iostream>
10 #include <vector>
11 class TClonesArray;
12 class CbmDigiManager;
13 class CbmStsDigitize;
14 class CbmStsParAsic;
15 class CbmStsParSim;
16 class CbmStsParSetModule;
17 class CbmStsSetup;
18 
19 class CbmStsDigitizeQa : public FairTask {
20 public:
21  CbmStsDigitizeQa(CbmStsDigitize* digitizer = NULL);
22 
23  virtual ~CbmStsDigitizeQa();
24 
25  virtual InitStatus Init();
26 
27  virtual void Exec(Option_t* opt);
28 
29  virtual void SetParContainers();
30 
31  virtual void Finish();
32 
33  void SetOutputDir(const std::string& outputDir) { fOutputDir = outputDir; }
34 
35  void CreateHistograms();
36 
38 
39  void CreateDigiHistograms();
40 
41  void ProcessDigisAndPoints(const TClonesArray* points);
42  void ProcessAngles();
43 
44 private:
45  void ReadDataBranches();
46 
49  std::string fOutputDir;
50  TClonesArray* fStsPoints;
52  Int_t fNofStation;
53  const CbmStsParSim* fSettings = nullptr;
55  const CbmStsParAsic* fAsicPar = nullptr;
56 
57  Int_t fMaxScale;
58  std::ofstream fOutFile;
59  std::vector<std::vector<std::vector<std::vector<std::vector<Int_t>>>>>
61 
64 
66 };
67 
68 #endif
CbmStsDigitizeQa::fSettings
const CbmStsParSim * fSettings
Definition: CbmStsDigitizeQa.h:53
CbmStsDigitizeQa::fSetup
CbmStsSetup * fSetup
Definition: CbmStsDigitizeQa.h:51
CbmStsDigitizeQa::~CbmStsDigitizeQa
virtual ~CbmStsDigitizeQa()
Definition: CbmStsDigitizeQa.cxx:58
CbmStsDigitizeQa::ReadDataBranches
void ReadDataBranches()
Definition: CbmStsDigitizeQa.cxx:172
CbmStsDigitizeQa::fAsicPar
const CbmStsParAsic * fAsicPar
Definition: CbmStsDigitizeQa.h:55
CbmStsDigitize
Task class for simulating the detector response of the STS.
Definition: CbmStsDigitize.h:50
CbmMCDataArray.h
CbmStsDigitizeQa::CbmStsDigitizeQa
CbmStsDigitizeQa(const CbmStsDigitizeQa &)
CbmHistManager.h
Histogram manager.
CbmStsDigitizeQa::ProcessAngles
void ProcessAngles()
Definition: CbmStsDigitizeQa.cxx:417
CbmStsDigitizeQa::CreateNofObjectsHistograms
void CreateNofObjectsHistograms()
Definition: CbmStsDigitizeQa.cxx:196
CbmStsDigi.h
CbmHistManager
Histogram manager.
Definition: CbmHistManager.h:41
CbmStsDigitizeQa::fnOfDigisChip
std::vector< std::vector< std::vector< std::vector< std::vector< Int_t > > > > > fnOfDigisChip
Definition: CbmStsDigitizeQa.h:60
CbmStsDigitizeQa::CreateHistograms
void CreateHistograms()
Definition: CbmStsDigitizeQa.cxx:190
CbmStsDigitizeQa
Definition: CbmStsDigitizeQa.h:19
CbmStsParAsic
Parameters of the STS readout ASIC.
Definition: CbmStsParAsic.h:25
CbmStsDigitizeQa::fHM
CbmHistManager * fHM
Definition: CbmStsDigitizeQa.h:47
CbmStsDigitizeQa::fMaxScale
Int_t fMaxScale
Definition: CbmStsDigitizeQa.h:57
CbmStsDigitizeQa::SetParContainers
virtual void SetParContainers()
Definition: CbmStsDigitizeQa.cxx:62
CbmStsDigitizeQa::ProcessDigisAndPoints
void ProcessDigisAndPoints(const TClonesArray *points)
Definition: CbmStsDigitizeQa.cxx:314
CbmStsDigitizeQa::Exec
virtual void Exec(Option_t *opt)
Definition: CbmStsDigitizeQa.cxx:113
CbmDigiManager
CbmDigiManager.
Definition: CbmDigiManager.h:37
CbmStsDigitizeQa::fOutFile
std::ofstream fOutFile
Definition: CbmStsDigitizeQa.h:58
CbmStsSetup
Class representing the top level of the STS setup.
Definition: CbmStsSetup.h:39
CbmStsDigitizeQa::ClassDef
ClassDef(CbmStsDigitizeQa, 1)
CbmStsDigitizeQa::Finish
virtual void Finish()
Definition: CbmStsDigitizeQa.cxx:118
CbmStsDigitizeQa::fOutputDir
std::string fOutputDir
Definition: CbmStsDigitizeQa.h:49
CbmStsDigitizeQa::operator=
CbmStsDigitizeQa & operator=(const CbmStsDigitizeQa &)
points
TClonesArray * points
Definition: Analyze_matching.h:18
CbmStsDigitizeQa::fDigiManager
CbmDigiManager * fDigiManager
Definition: CbmStsDigitizeQa.h:48
CbmStsDigitizeQa::CreateDigiHistograms
void CreateDigiHistograms()
Definition: CbmStsDigitizeQa.cxx:227
CbmStsParSim
Settings for STS simulation (digitizer)
Definition: CbmStsParSim.h:25
CbmStsDigitizeQa::CbmStsDigitizeQa
CbmStsDigitizeQa(CbmStsDigitize *digitizer=NULL)
Definition: CbmStsDigitizeQa.cxx:46
CbmStsParSetModule
Parameters container for CbmStsParModule.
Definition: CbmStsParSetModule.h:30
CbmStsDigitizeQa::Init
virtual InitStatus Init()
Definition: CbmStsDigitizeQa.cxx:70
CbmStsDigitizeQa::fModuleParSet
CbmStsParSetModule * fModuleParSet
Definition: CbmStsDigitizeQa.h:54
CbmStsDigitizeQa::fStsPoints
TClonesArray * fStsPoints
Definition: CbmStsDigitizeQa.h:50
CbmStsDigitizeQa::SetOutputDir
void SetOutputDir(const std::string &outputDir)
Definition: CbmStsDigitizeQa.h:33
CbmStsDigitizeQa::fNofStation
Int_t fNofStation
Definition: CbmStsDigitizeQa.h:52