#include <PndHypHitProducerIdeal.h>
Definition at line 29 of file PndHypHitProducerIdeal.h.
PndHypHitProducerIdeal::PndHypHitProducerIdeal |
( |
| ) |
|
PndHypHitProducerIdeal::~PndHypHitProducerIdeal |
( |
| ) |
|
void PndHypHitProducerIdeal::Exec |
( |
Option_t * |
opt | ) |
|
|
virtual |
Virtual method Exec
Definition at line 74 of file PndHypHitProducerIdeal.cxx.
References fHitArray, fPointArray, PndHypPoint::GetDetName(), PndHypPoint::GetVolumeID(), PndHypPoint::GetXin(), PndHypPoint::GetYin(), PndHypPoint::GetZin(), point, and smear().
78 Fatal(
"Exec",
"No HitArray");
96 for (Int_t iPoint = 0; iPoint < nPoints; iPoint++)
111 dpos.SetXYZ(0.2,0.2,0.2);
112 smear(position,dpos);
115 new ((*fHitArray)[iPoint])
PndHypHit( detID, point->
GetDetName(), position, dpos, iPoint, point->GetEnergyLoss(),1);
116 std::cout <<
"Hit created for module: " << point->
GetDetName() << std::endl;
123 std::cout <<
"-I- PndHypHitProducerIdeal: " << nPoints <<
" HypPoints, "
124 << nPoints <<
" Hits created." << std::endl;
TClonesArray * fPointArray
Int_t GetVolumeID() const
void smear(TVector3 &pos, TVector3 &dpos)
TString GetDetName() const
InitStatus PndHypHitProducerIdeal::Init |
( |
| ) |
|
|
virtual |
Definition at line 33 of file PndHypHitProducerIdeal.cxx.
References fBranchName, fHitArray, and fPointArray.
36 FairRootManager* ioman = FairRootManager::Instance();
40 std::cout <<
"-E- PndHypHitProducerIdeal::Init: "
41 <<
"RootManager not instantiated!" << std::endl;
50 std::cout <<
"-W- PndHypHitProducerIdeal::Init: "
51 <<
"No HypPoint array!" << std::endl;
56 fHitArray =
new TClonesArray(
"PndHypHit");
57 ioman->Register(
"HypHit",
"Hyp",
fHitArray, kTRUE);
59 std::cout <<
"-I- PndHypHitProducerIdeal: Intialisation successfull" << std::endl;
TClonesArray * fPointArray
void PndHypHitProducerIdeal::ProduceHits |
( |
| ) |
|
|
private |
void PndHypHitProducerIdeal::Register |
( |
| ) |
|
|
private |
void PndHypHitProducerIdeal::Reset |
( |
| ) |
|
|
private |
void PndHypHitProducerIdeal::SetParContainers |
( |
| ) |
|
|
virtual |
void PndHypHitProducerIdeal::smear |
( |
TVector3 & |
pos, |
|
|
TVector3 & |
dpos |
|
) |
| |
smear a 3d vector
Definition at line 128 of file PndHypHitProducerIdeal.cxx.
References x, y, and z.
Referenced by Exec().
139 sigx=gRandom->Gaus(0,sigx);
140 sigy=gRandom->Gaus(0,sigy);
141 sigz=gRandom->Gaus(0,sigz);
TString PndHypHitProducerIdeal::fBranchName |
|
private |
TClonesArray* PndHypHitProducerIdeal::fHitArray |
|
private |
TClonesArray* PndHypHitProducerIdeal::fPointArray |
|
private |
The documentation for this class was generated from the following files: