17 #include <TClonesArray.h>
45 LOG(error) <<
"FairTestDetectorTimeRecoTask::Init: RootManager not instantiated!";
49 fDigiArray =
static_cast<TClonesArray*
>(ioman->
GetObject(
"FairTestDetectorSortedDigi"));
51 LOG(warn) <<
"FairTestDetectorTimeRecoTask::Init: No Point array!";
58 fHitArray =
new TClonesArray(
"FairTestDetectorHit");
59 ioman->
Register(
"FairTestDetectorHit",
"FairTestDetector", fHitArray, kTRUE);
77 for (
int ipnt = 0; ipnt < fDigiArray->GetEntries(); ipnt++) {
80 LOG(warn) <<
"No digi!";
85 TVector3 pos(digi->
GetX() + 0.5, digi->
GetY() + 0.5, digi->
GetZ() + 0.5);
86 TVector3 dpos(1 / TMath::Sqrt(12), 1 / TMath::Sqrt(12), 1 / TMath::Sqrt(12));
FairTestDetectorTimeRecoTask()
void AddLink(FairLink link)
static FairRootManager * Instance()
ClassImp(FairEventBuilder)
TObject * GetObject(const char *BrName)
TClonesArray * GetData(TString branchName, BinaryFunctor *function, Double_t parameter)
FairLink GetEntryNr() const
virtual InitStatus Init()
virtual void Exec(Option_t *opt)
Double_t GetTimeStampError() const
static FairRunAna * Instance()
Double_t GetTimeStamp() const
void SetTimeStamp(Double_t t)
void Register(const char *name, const char *Foldername, TNamed *obj, Bool_t toFile)
void SetTimeStampError(Double_t t)
void AddInterfaceData(FairMultiLinkedData_Interface *data)
~FairTestDetectorTimeRecoTask()