//*-- Modified : v0.50 09/07/00 by D. Buskulic
//*-- Modified : v0.45 10/02/00 by D. Buskulic
//*-- Author : Damir Buskulic 22/11/99
//////////////////////////////////////////////////////////////////////////
// //
// VFrCondition //
// //
// One set of data putting conditions on a frame, //
// may be a trigger data or a slow monitoring station data or... //
// //
//////////////////////////////////////////////////////////////////////////
#include "VFrCondition.h"
ClassImp(VFrCondition)
//______________________________________________________________________________
VFrCondition::VFrCondition () : TNamed()
{
// Condition default constructor
mActive =0;
mTime .SetTimeD (0);
mTriggerStatus =0;
mAmplitude =0;
mProbability =0;
mVarNames ="";
mVar =0;
}
//______________________________________________________________________________
VFrCondition::VFrCondition (Text_t * name, VGPSTime time, Bool_t triggerStatus,
Float_t amplitude, Float_t prob, TString varNames,
Int_t nv, Float_t * vars):TNamed(name,name)
{
// Condition constructor
mActive =1;
mTime =time;
mTriggerStatus =triggerStatus;
mAmplitude =amplitude;
mProbability =prob;
mVarNames =varNames;
mVar .Set(nv,vars);
}
//______________________________________________________________________________
VFrCondition::VFrCondition (Text_t * name, VGPSTime time, Bool_t triggerStatus,
Float_t amplitude, Float_t prob, TString varNames,
TArrayF tvars):TNamed(name,name)
{
// Condition constructor
mActive =1;
mTime =time;
mTriggerStatus =triggerStatus;
mAmplitude =amplitude;
mProbability =prob;
mVarNames =varNames;
mVar = tvars;
}
//______________________________________________________________________________
void VFrCondition::Copy (TObject& obj)
{
// Copy this into obj
TNamed::Copy (obj);
((VFrCondition &)obj).mActive = mActive ;
((VFrCondition &)obj).mTime = mTime ;
((VFrCondition &)obj).mTimeBefore = mTimeBefore ;
((VFrCondition &)obj).mTimeAfter = mTimeAfter ;
((VFrCondition &)obj).mTriggerStatus = mTriggerStatus ;
((VFrCondition &)obj).mAmplitude = mAmplitude ;
((VFrCondition &)obj).mProbability = mProbability ;
((VFrCondition &)obj).mVarNames = mVarNames ;
((VFrCondition &)obj).mVar = mVar ;
((VFrCondition &)obj).mGroup = mGroup ;
}
//______________________________________________________________________________
Float_t VFrCondition::GetVar (TString name)
{
// Returns the value for variable "name"
Int_t index, indname, numvar;
if (!mVarNames ) return 0;
indname = mVarNames .Index(name);
if (indname==kNPOS) return 0;
index=0;
numvar=0;
while (index<=indname && index!=kNPOS) {
index = mVarNames .Index(" ",1,index+1,TString::kExact);
numvar++;
}
return mVar [numvar-1];
}
- ROOT page - VEGA page - Class index - Top of the page
This page has been automatically generated. If you have any comments or suggestions
about the page layout send a mail to
JavaScript must be enabled to display this email address.
, or
contact
JavaScript must be enabled to display this email address.
with any questions or problems regarding ROOT or VEGA.