/************************************************************************** * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * * * Author: The ALICE Off-line Project. * * Contributors are mentioned in the code where appropriate. * * * * Permission to use, copy, modify and distribute this software and its * * documentation strictly for non-commercial purposes is hereby granted * * without fee, provided that the above copyright notice appears in all * * copies and that both the copyright notice and this permission notice * * appear in the supporting documentation. The authors make no claims * * about the suitability of this software for any purpose. It is * * provided "as is" without express or implied warranty. * **************************************************************************/ #include #include "TObject.h" #include "AliLog.h" #include "AliCTPInputTimeParams.h" ClassImp(AliCTPInputTimeParams) //_____________________________________________________________________________ AliCTPInputTimeParams::AliCTPInputTimeParams(): fName(0), fLevel(0), fDelay(0), fEdge(0), fDeltaMin(0), fDeltaMax(0) { // Default constructor } //_____________________________________________________________________________ AliCTPInputTimeParams::AliCTPInputTimeParams( TString& name, UInt_t& level, UInt_t delay, TString edge, UInt_t deltamin, UInt_t deltamax ): fName(name), fLevel(level), fDelay( delay), fEdge(edge), fDeltaMin(deltamin), fDeltaMax(deltamax) { } //_____________________________________________________________________________ AliCTPInputTimeParams::AliCTPInputTimeParams(const AliCTPInputTimeParams &ctptime): TObject(ctptime), fName(ctptime.fName), fLevel(ctptime.fLevel), fDelay(ctptime.fDelay), fEdge(ctptime.fEdge), fDeltaMin(ctptime.fDeltaMin), fDeltaMax(ctptime.fDeltaMax) { // copy constructor } //_____________________________________________________________________________ AliCTPInputTimeParams& AliCTPInputTimeParams::operator=(const AliCTPInputTimeParams &ctptime) { //assignment operator if(this==&ctptime) return *this; ((TObject *)this)->operator=(ctptime); fName=ctptime.fName; fLevel=ctptime.fLevel; fDelay=ctptime.fDelay; fEdge=ctptime.fEdge; fDeltaMin=ctptime.fDeltaMin; fDeltaMax=ctptime.fDeltaMax; return *this; } //_____________________________________________________________________________ void AliCTPInputTimeParams::SetCTPInputTimeParams( TString name, UInt_t level, UInt_t delay, TString edge, UInt_t deltamin, UInt_t deltamax ) { fName = name; fLevel = level; fDelay = delay; fEdge = edge; fDeltaMin = deltamin; fDeltaMax = deltamax; } //_____________________________________________________________________________ void AliCTPInputTimeParams::Print( const Option_t* ) const { // Print cout << " CTP Input Time Params " << endl; cout << " Input Name: " << fName << endl; cout << " Level: " << fLevel << endl; cout << " Delay: " << fDelay << endl; cout << " Edge: " << fEdge << endl; cout << " DeltaMin: " << fDeltaMin << endl; cout << " DeltaMax: " << fDeltaMax << endl; }