PandaRoot
PndLmdPixelHitProducerFast.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 // ----- CbmStsHitProducerIdel header file -----
15 // ----- Created 10/01/06 by V. Friese -----
16 // -------------------------------------------------------------------------
17 
28 #ifndef PNDLMDPIXELHITPRODUCERFAST_H
29 #define PNDLMDPIXELHITPRODUCERFAST_H
30 
31 #include "PndSdsTask.h"
32 //#include "PndSdsGeoPar.h"
33 #include "PndDetectorList.h"
34 
35 #include "TVector3.h"
36 #include "TRandom.h"
37 
38 class TClonesArray;
39 
41  public:
44  PndLmdPixelHitProducerFast(Double_t pixelx, Double_t pixely);
45 
47  PndLmdPixelHitProducerFast(const char *name);
48 
51 
53  virtual void SetParContainers();
54  virtual InitStatus Init();
55 
61  virtual void SetBranchNames();
62  virtual void SetBranchNames(TString inBranchname, TString outBranchname, TString folderName);
63 
65  virtual void Exec(Option_t *opt);
66 
67  void SetPersistance(Bool_t p = kTRUE) { SetPersistency(p); };
68  Bool_t GetPersistance() { return GetPersistency(); };
69 
70  protected:
71  Double_t fPixelSizeX; // to round MC-Hit x-position
72  Double_t fPixelSizeY; // to round MC-Hit y-position
73 
75  TClonesArray *fPointArray;
76 
78  TClonesArray *fHitArray;
79 
80  // PndSdsGeoPar* fGeoPar;
81 
82  void Register();
83 
84  void Reset();
85 
86  void ProduceHits();
87 
89 };
90 
91 #endif
void SetPersistency(Bool_t val=kTRUE)
ClassDef(PndLmdPixelHitProducerFast, 1)
virtual void Exec(Option_t *opt)
virtual ~PndLmdPixelHitProducerFast()
virtual void SetParContainers()
virtual void SetBranchNames()
virtual InitStatus Init()