PandaRoot
PndGemFindHitsAna.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 // ----- PndGemFindHitsAna header file -----
15 // ----- Created 02.06.2009 by R. Karabowicz -----
16 // -------------------------------------------------------------------------
17 
30 #ifndef PNDGEMFINDHITSANA_H
31 #define PNDGEMFINDHITSANA_H
32 
33 #include "TH1F.h"
34 #include "TH2F.h"
35 
36 #include "FairTask.h"
37 
38 #include "PndGemHit.h"
39 #include "PndGemDigiPar.h"
40 
41 #include <vector>
42 
43 class PndGemFindHitsAna : public FairTask {
44 
45  public:
48 
49  PndGemFindHitsAna(Int_t iVerbose);
50  PndGemFindHitsAna(TString taskName, Int_t iVerbose);
51 
53  virtual ~PndGemFindHitsAna();
54 
56  virtual void Exec(Option_t *opt);
57 
59  void SetVerbose(const Int_t &verbose) { fVerbose = verbose; };
60 
61  private:
62  PndGemDigiPar *fDigiPar;
63 
64  TClonesArray *fGemHitArray;
65 
67  Int_t fNofEvents;
68 
69  Double_t fGridSize;
70 
71  std::vector<Int_t> fStatBegHist;
72  std::vector<Int_t> fGridHalfLen;
73 
74  TList *fHistoList;
75  // histograms to store position difference of front vs back hits
76  // all histograms will be stored in TClonesArray
77  TClonesArray *fhFrontBackDiff;
78 
79  void CreateHistos();
80  void AnaHistos();
81 
83  virtual void SetParContainers();
84 
86  virtual void Finish();
87 
89  virtual InitStatus Init();
90 
92  virtual InitStatus ReInit();
93 
94  ClassDef(PndGemFindHitsAna, 1);
95 };
96 
97 #endif
analyze found GEM hits
void SetVerbose(const Int_t &verbose)
Digitization Parameter Class for GEM part.
Definition: PndGemDigiPar.h:42
virtual ~PndGemFindHitsAna()
virtual void Exec(Option_t *opt)