PandaRoot
PndFtsHitProducerRealFull.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 PNDFTSHITPRODUCERREALFULL_H
16 #define PNDFTSHITPRODUCERREALFULL_H 1
17 
18 #include <PndPersistencyTask.h>
19 #include "PndGeoFtsPar.h"
20 #include "TVector3.h"
21 
23 
24 class PndFtsHit;
25 class PndFtsHitInfo;
26 class TClonesArray;
27 class TObjectArray;
28 
30 
31  public:
34 
37 
39  virtual InitStatus Init();
40 
42  virtual void Exec(Option_t *opt);
43 
44  PndFtsHit *AddHit(Int_t detID, Int_t tubeID, Int_t chamberID, Int_t layerID, Int_t skew, Int_t iPoint, TVector3 &pos, TVector3 &dpos, Double_t p, Double_t rsim,
45  Double_t closestDistanceError, Double_t depcharge, Double_t timeOfFlight);
46 
47  PndFtsHitInfo *AddHitInfo(Int_t fileNumber, Int_t eventNumber, Int_t trackID, Int_t pointID, Int_t nMerged, Bool_t isFake);
48 
49  void FoldZPosWithResolution(Double_t &zpos, Double_t &zposError, TVector3 localInPos, TVector3 localOutPos);
50 
52  void SetPersistence(Bool_t persistence) { SetPersistency(persistence); }
53 
54  void SetParContainers();
55 
56  void RunTimeBased() { fTimeOrderedDigi = kTRUE; }
57 
58  private:
60  TClonesArray *fPointArray;
61 
63  // TClonesArray* fHitArray;
64  PndFtsHitWriteoutBuffer *fDataBuffer;
65 
67  TClonesArray *fHitInfoArray;
68 
69  PndGeoFtsPar *fFtsParameters;
70 
71  Bool_t fTimeOrderedDigi;
72  // CHECK added
74  TClonesArray *fTubeArray;
75 
77  PndFtsHitProducerRealFull &operator=(const PndFtsHitProducerRealFull &) { return *this; }
78 
79  ClassDef(PndFtsHitProducerRealFull, 1);
80 };
81 
82 #endif
virtual void Exec(Option_t *opt)
void SetPersistency(Bool_t val=kTRUE)
void SetPersistence(Bool_t persistence)
PndFtsHit * AddHit(Int_t detID, Int_t tubeID, Int_t chamberID, Int_t layerID, Int_t skew, Int_t iPoint, TVector3 &pos, TVector3 &dpos, Double_t p, Double_t rsim, Double_t closestDistanceError, Double_t depcharge, Double_t timeOfFlight)
PndFtsHitInfo * AddHitInfo(Int_t fileNumber, Int_t eventNumber, Int_t trackID, Int_t pointID, Int_t nMerged, Bool_t isFake)
virtual InitStatus Init()
void FoldZPosWithResolution(Double_t &zpos, Double_t &zposError, TVector3 localInPos, TVector3 localOutPos)