BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
CbmStsRealMatchHits.h
Go to the documentation of this file.
1//* $Id: */
2
3// -------------------------------------------------------------------------
4// ----- CbmStsRealMatchHits header file -----
5// ----- Created 01/07/2008 by R. Karabowicz -----
6// -------------------------------------------------------------------------
7
8/** CbmStsRealMatchHits
9 *@author Volker Friese <v.friese@gsi.de>
10 *@since 27.11.06
11 **
12 ** CBM task class for matching StsHit with StsPoint.
13 ** Task level RECO
14 ** Sets the reference index of CbmStsHit.
15 **/
16
17#ifndef CBMSTSREALMATCHHIT_H
18#define CBMSTSREALMATCHHIT_H 1
19
20#include <set>
21// #include <map>
22#include "FairTask.h"
23#include "TStopwatch.h"
24
25using std::map;
26using std::pair;
27using std::set;
28
29class TClonesArray;
31class CbmGeoStsPar;
32class CbmStsDigiPar;
34class CbmStsDigiMatch;
35class CbmStsHit;
36
38{
39
40 public:
41 /** Default constructor **/
43
44 /** Standard constructor **/
45 CbmStsRealMatchHits(Int_t iVerbose);
46
47 /** Constructor with name **/
48 CbmStsRealMatchHits(const char* name, Int_t iVerbose);
49
50 /** Destructor **/
51 virtual ~CbmStsRealMatchHits();
52
53 /** Execution **/
54 virtual void Exec(Option_t* opt);
55 virtual void ExecReal(Option_t* opt);
56
57 virtual void SetRealisticResponse(Bool_t real = kTRUE) { fRealistic = real; }
58
59 private:
60 /** Get parameter containers **/
61 virtual void SetParContainers();
62
63 /** Intialisation **/
64 virtual InitStatus Init();
65
66 // ----- Private method GetGeometry ------------------------------------
67 InitStatus GetGeometry();
68
69 /** Reinitialisation **/
70 virtual InitStatus ReInit();
71
72 /** Run summary **/
73 virtual void Finish();
74
75 // ----- Data members ----------
76 CbmGeoStsPar* fGeoPar; /** Geometry parameter container **/
77 CbmStsDigiPar* fDigiPar; /** Digitisation parameter container **/
78 CbmStsDigiScheme* fDigiScheme; /** Digitisation scheme **/
79 TClonesArray* fPoints; /** Array of CbmStsPoint **/
80 TClonesArray* fDigis; /** Array of CbmStsDigi **/
81 TClonesArray* fDigiMatches; /** Array of CbmStsDigiMatch **/
82 TClonesArray* fHits; /** Array of CbmStsHit **/
83 TStopwatch fTimer; /** Timer **/
84 Int_t fNEvents; /** Number of events with success **/
85 Int_t fNEventsFailed; /** Number of events with failure **/
86 Double_t fTime; /** Total real time used for good events **/
87 Double_t fNHits; /** Total number of hits **/
88 Double_t fNMatched; /** Total number of matched hits **/
89 Double_t fNDistant; /** Total number of displaced hits **/
90 Double_t fNBackgrd; /** Total number of background hits **/
91
92 /** Geometry parameters **/
93 FairGeoPassivePar* fPassGeo; // Passive geometry parameters
94 TVector3 fTargetPos; // Target centre position
95 Int_t fNStations; // Number of STS stations
96 Int_t fStationNrFromMcId[10000]; // station number from mc id
97
99
100 /** Map from candidate point to distance to hit **/
101 map<Double_t, Int_t> fCandMap; //!
102 map<Double_t, Int_t>::iterator fIter; //!
103
105};
106
107#endif
bool Bool_t
int Int_t
double Double_t
constexpr Bool_t kTRUE
const char Option_t
#define ClassDef(name, id)
CbmStsDigiMatch.h.
Double_t fNDistant
Total number of matched hits.
Int_t fStationNrFromMcId[10000]
virtual ~CbmStsRealMatchHits()
Destructor.
CbmStsDigiPar * fDigiPar
Geometry parameter container.
FairGeoPassivePar * fPassGeo
Total number of background hits.
virtual void Exec(Option_t *opt)
Execution.
CbmStsRealMatchHits()
Default constructor.
Double_t fNHits
Total real time used for good events.
map< Double_t, Int_t > fCandMap
Map from candidate point to distance to hit.
Double_t fNMatched
Total number of hits.
TStopwatch fTimer
Array of CbmStsHit.
virtual void SetParContainers()
Get parameter containers.
TClonesArray * fPoints
Digitisation scheme.
virtual InitStatus ReInit()
Reinitialisation.
virtual void SetRealisticResponse(Bool_t real=kTRUE)
Int_t fNEventsFailed
Number of events with success.
Double_t fNBackgrd
Total number of displaced hits.
map< Double_t, Int_t >::iterator fIter
virtual void Finish()
Run summary.
Double_t fTime
Number of events with failure.
CbmStsDigiScheme * fDigiScheme
Digitisation parameter container.
TClonesArray * fDigiMatches
Array of CbmStsDigi.
TClonesArray * fDigis
Array of CbmStsPoint.
TClonesArray * fHits
Array of CbmStsDigiMatch.
virtual InitStatus Init()
Intialisation.
virtual void ExecReal(Option_t *opt)