PandaRoot
PndHypHitProducerIdeal.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 PNDHYPHITPRODUCERIDEAL_H
29 #define PNDHYPHITPRODUCERIDEAL_H
30 
31 #include "FairTask.h"
32 #include "PndGeoHypPar.h"
33 
34 #include "TVector3.h"
35 #include "TRandom.h"
36 
37 class TClonesArray;
38 
39 class PndHypHitProducerIdeal : public FairTask {
40  public:
43 
46 
48  virtual void SetParContainers();
49  virtual InitStatus Init();
50 
52  virtual void Exec(Option_t *opt);
53  void smear(TVector3 &pos, TVector3 &dpos);
54 
55  private:
56  TString fBranchName;
58  TClonesArray *fPointArray;
59 
61  TClonesArray *fHitArray;
62 
63  PndGeoHypPar *fGeoPar;
64 
65  void Register();
66 
67  void Reset();
68 
69  void ProduceHits();
70 
71  ClassDef(PndHypHitProducerIdeal, 3);
72 };
73 
74 #endif
virtual void Exec(Option_t *opt)
void smear(TVector3 &pos, TVector3 &dpos)
virtual void SetParContainers()
virtual InitStatus Init()