// ---------
//
// AliSignal s;
+// s.SetName("Start counter");
// Float_t pos[3]={-1,25,7};
// Float_t err[3]={0.03,0.7,0.18};
// Float_t signal=120.8;
// AliSignal q(3); // q can store 3 signal values with their errors
// // In the example below a signal contains the
// // following data : timing, ADC and dE/dx
+// q.SetName("TOF hit");
// q.SetPosition(pos,"car");
// q.SetPositionErrors(err,"car");
-// signal=82.5; // e.q. signal time in ns
+// signal=82.5; // e.g. signal time in ns
// error=2.01;
// q.SetSignal(signal,1);
// q.SetSignalError(error,1);
fNvalues=n;
fSignal=0;
fDsignal=0;
+ fName=" ";
}
///////////////////////////////////////////////////////////////////////////
AliSignal::~AliSignal()
void AliSignal::Info(TString f)
{
// Provide signal information within the coordinate frame f
- cout << " *AliSignal::Info* " << endl;
+ cout << " *AliSignal::Info* For signal of kind : " << fName << endl;
cout << " Position";
Ali3Vector::Info(f);
}
}
///////////////////////////////////////////////////////////////////////////
+void AliSignal::SetName(TString name)
+{
+ fName=name;
+}
+///////////////////////////////////////////////////////////////////////////
+TString AliSignal::GetName()
+{
+ return fName;
+}
+///////////////////////////////////////////////////////////////////////////
virtual void ResetPosition(); // Reset position and errors to 0
virtual void Reset(); // Reset signal and pos. values and errors
void Info(TString f="car"); // Print signal info for coord. frame f
+ void SetName(TString name); // Set the name tag to indicate the kind of signal
+ TString GetName(); // Provide the name tag indicating the kind of signal
protected:
Int_t fNvalues; // The number of values per signal
TArrayF* fSignal; // Signal values
TArrayF* fDsignal; // Errors on signal values
+ TString fName; // Name tag to identify the kind of signal
- ClassDef(AliSignal,1) // Handling of ALICE (extrapolated) signals.
+ ClassDef(AliSignal,2) // Handling of ALICE (extrapolated) signals.
};
#endif
14-jan-2002 NvE New schema evolution activated via the "+" behind the classnames
in RALICELinkDef.h. Note that the new schema evolution only works
correctly for ROOT version 3.02/07 and later.
+14-feb-2002 NvE Support for name tag introduced in AliSignal to indicate the kind of signal.