PandaRoot
PndHypGeHitProducerIdeal.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 // ----- CbmHypGeHitProducerIdel header file -----
15 // ----- Created 10/01/06 by V. Friese -----
16 // -------------------------------------------------------------------------
17 
28 #ifndef PNDHYPGEHITPRODUCERIDEAL_H
29 #define PNDHYPGEHITPRODUCERIDEAL_H
30 
31 #include "FairTask.h"
32 #include "PndGeoHypGePar.h"
33 #include "PndHypGeHit.h"
34 #include "TVector3.h"
35 #include "TRandom.h"
36 #include "TFile.h"
37 
38 class TClonesArray;
39 
40 class PndHypGeHitProducerIdeal : public FairTask {
41  public:
44 
47 
49  virtual void SetParContainers();
50  virtual InitStatus Init();
51 
53  virtual void Exec(Option_t *opt);
54  void smear(Double_t &ener, Double_t &den);
55 
56  private:
57  TString fBranchName;
59  TClonesArray *fPointArray;
60 
62  TClonesArray *fHitArray;
63 
64  PndGeoHypGePar *fGeoPar;
65 
66  void Register();
67 
68  void Reset();
69 
70  void ProduceHits();
71 
72  ClassDef(PndHypGeHitProducerIdeal, 3);
73 };
74 
75 #endif
void smear(Double_t &ener, Double_t &den)
virtual InitStatus Init()
virtual void SetParContainers()
virtual void Exec(Option_t *opt)