166 Int_t antid=GetUniqueID();
169 if (antid<=0)
return -1;
194 Int_t antid=GetUniqueID();
197 if (antid<=0)
return -1;
201 if (InheritsFrom(
"RnoSANT"))
247 TString name=GetName();
249 if (!name.Contains(
"Ch"))
return -1;
251 name.ReplaceAll(
"Ch",
"");
257 Int_t antid=GetUniqueID();
263 if (station<0 ||
string<0)
return -1;
292 if (station<11 || station>77 || string<1 || string>3 || number<=0 || number>9)
return -1;
294 if (!(station%10))
return -1;
296 if ((
string==2 ||
string==3) && number<7)
return -1;
298 antid=1000*station+100*
string+number;
330 Double_t tres=-99999;
332 if (!evt || !t || !s)
return tres;
335 if (!ant)
return tres;
340 const Float_t pi=acos(-1.);
341 const Float_t c=0.299792458;
342 const Float_t npice=1.78829165;
343 const Float_t ngice=1.0251*npice;
344 const Float_t thetac=acos(1./npice);
348 if (vgroup) alphac=atan((1.-npice/ngice)/sqrt(npice*npice-1.));
352 if (!r0)
return tres;
356 if (!tt0)
return tres;
365 Float_t dist=fabs(hproj)+d/tan(pi/2.-thetac-alphac);
366 if (hproj<0) dist=-dist;
367 Float_t tgeo=t0+dist/c;
424 if (strlen(name)) q->SetName(name);
Handling of 3-vectors in various reference frames.
Double_t Dot(Nc3Vector &q)
NcDevice(const char *name="", const char *title="")
NcSignal * GetHit(Int_t j) const
Creation and investigation of an NCFS generic event structure.
void GetPosition(Double_t *r, TString f, TString u="rad", Float_t s=-1) const
NcTimestamp * GetTimestamp()
NcDevice * GetDevice() const
virtual Float_t GetSignal(Int_t j=1, Int_t mode=0) const
NcSignal(const char *name="", const char *title="")
Handling of timestamps for (astro)particle physics research.
Int_t GetDifference(NcTimestamp *t, Int_t &days, Int_t &sec, Int_t &ns, Int_t &ps, TString type="UT")
Handling of the attributes of a reconstructed particle track.
Double_t GetDistance(NcPosition *p, Float_t scale=-1)
NcPosition * GetReferencePoint()
Nc3Vector Get3Momentum(Float_t scale=-1) const
Signal (Hit) handling of an RNO-G Generic Antenna (GANT).
Int_t GetNumber(Int_t id=0) const
Int_t GetString(Int_t id=0) const
Double_t GetTimeResidual(NcEvent *evt, NcTrack *t, NcSignal *s, TString name="LE", Int_t mode=7, Int_t vgroup=1) const
RnoGANT(const char *name="", const char *title="")
Int_t GetStation(Int_t id=0) const
virtual TObject * Clone(const char *name="") const
Int_t GetANTId(Int_t station, Int_t string, Int_t number) const