15 #include <TClonesArray.h>
20 :
FairTask(
"FairTestDetectorHitProducerSmearing")
21 , fPointsArray(nullptr)
22 , fHitsArray(new TClonesArray(
"FairTestDetectorHit", 100))
24 LOG(debug) <<
"Default Constructor of FairTestDetectorHitProducerSmearing";
29 LOG(debug) <<
"Destructor of FairTestDetectorHitProducerSmearing";
36 LOG(debug) <<
"SetParContainers of FairTestDetectorHitProducerSmearing";
49 LOG(debug) <<
"Initilization of FairTestDetectorHitProducerSmearing";
55 fPointsArray =
static_cast<TClonesArray*
>(ioman->
GetObject(
"FairTestDetectorPoint"));
57 LOG(error) <<
"No InputDataLevelName array!";
58 LOG(error) <<
"FairTestDetectorHitProducerSmearing will be inactive";
64 ioman->
Register(
"FairTestDetectorHit",
"FairTestDetectorHit", fHitsArray, kTRUE);
75 LOG(debug) <<
"Reinitilization of FairTestDetectorHitProducerSmearing";
81 LOG(debug) <<
"Exec of FairTestDetectorHitProducerSmearing";
88 for (
int iPoint = 0; iPoint < fPointsArray->GetEntriesFast(); iPoint++) {
100 dposition.SetXYZ(0.05, 0.05, 0.);
101 position.SetXYZ(gRandom->Gaus(position.X(), 0.05), gRandom->Gaus(position.Y(), 0.05), position.Z());
virtual InitStatus Init()
virtual void SetParContainers()
void Position(TVector3 &pos) const
virtual InitStatus ReInit()
static FairRootManager * Instance()
ClassImp(FairEventBuilder)
TObject * GetObject(const char *BrName)
~FairTestDetectorHitProducerSmearing()
void Register(const char *name, const char *Foldername, TNamed *obj, Bool_t toFile)
FairTestDetectorHitProducerSmearing()
Int_t GetDetectorID() const
virtual void Exec(Option_t *opt)