PandaRoot
PndSttHitProducerRealFull.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 // Complete Digitization
14 
15 #ifndef PNDSTTHITPRODUCERREALFULL_H
16 #define PNDSTTHITPRODUCERREALFULL_H 1
17 
18 #include <PndPersistencyTask.h>
19 #include "PndGeoSttPar.h"
20 
21 //#include "PndSttHit.h"
22 //#include "PndSttHitInfo.h"
23 
24 #include "TVector3.h"
25 
26 class PndSttHit;
27 class PndSttHitInfo;
28 class TClonesArray;
29 class TObjectArray;
31 
33 
34  public:
37 
40 
42  virtual InitStatus Init();
43 
45  virtual void Exec(Option_t *opt);
46 
47  PndSttHit *AddHit(Int_t detID, Int_t tubeID, Int_t iPoint, TVector3 &pos, TVector3 &dpos, Double_t p, Double_t rsim, Double_t closestDistanceError, Double_t depcharge,
48  Double_t timeOfFlight);
49 
50  PndSttHitInfo *AddHitInfo(Int_t fileNumber, Int_t eventNumber, Int_t trackID, Int_t pointID, Int_t nMerged, Bool_t isFake);
51 
52  void FoldZPosWithResolution(Double_t &zpos, Double_t &zposError, TVector3 localInPos, TVector3 localOutPos);
53 
55  void SetPersistence(Bool_t persistence) { SetPersistency(persistence); }
56 
57  void SetParContainers();
58 
59  void RunTimeBased() { fTimeOrderedDigi = kTRUE; }
60 
61  private:
63  TClonesArray *fPointArray;
64 
66  TClonesArray *fHitArray;
67  PndSttHitWriteoutBuffer *fDataBuffer;
68 
70  TClonesArray *fHitInfoArray;
71  // CHECK added
73  TClonesArray *fTubeArray;
74 
75  Bool_t fTimeOrderedDigi;
76 
77  PndGeoSttPar *fSttParameters; // CHECK added
78 
79  ClassDef(PndSttHitProducerRealFull, 2);
80 };
81 
82 #endif
PndSttHit * AddHit(Int_t detID, Int_t tubeID, Int_t iPoint, TVector3 &pos, TVector3 &dpos, Double_t p, Double_t rsim, Double_t closestDistanceError, Double_t depcharge, Double_t timeOfFlight)
PndSttHitInfo * AddHitInfo(Int_t fileNumber, Int_t eventNumber, Int_t trackID, Int_t pointID, Int_t nMerged, Bool_t isFake)
void SetPersistency(Bool_t val=kTRUE)
void FoldZPosWithResolution(Double_t &zpos, Double_t &zposError, TVector3 localInPos, TVector3 localOutPos)
virtual void Exec(Option_t *opt)
virtual InitStatus Init()
void SetPersistence(Bool_t persistence)