PandaRoot
PndMdtHitProducerIdeal.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 #ifndef PNDMDTHITPRODUCERIDEAL_H
14 #define PNDMDTHITPRODUCERIDEAL_H 1
15 
16 #include <PndPersistencyTask.h>
17 #include "PndMdtHit.h"
18 #include "TVector3.h"
19 
20 class TClonesArray;
21 
23 
24  public:
27 
30 
32  virtual InitStatus Init();
33 
35  virtual void Exec(Option_t *opt);
36 
37  PndMdtHit *AddHit(Int_t detID, TVector3 &pos, TVector3 &dpos, Int_t index);
38 
43  void SetPositionSmearing(Float_t res) { fPosResolution = res; };
44 
45  private:
46  Float_t fPosResolution;
47 
49  TClonesArray *fPointArray;
50 
52  TClonesArray *fHitArray;
53 
54  ClassDef(PndMdtHitProducerIdeal, 1);
55 };
56 
57 #endif
PndMdtHit * AddHit(Int_t detID, TVector3 &pos, TVector3 &dpos, Int_t index)
virtual void Exec(Option_t *opt)
virtual InitStatus Init()
void SetPositionSmearing(Float_t res)
Set the smearing of the PndMdtHit position.