]> git.uio.no Git - u/mrichter/AliRoot.git/blame - STEER/AliCTPInputTimeParams.cxx
Bug fix
[u/mrichter/AliRoot.git] / STEER / AliCTPInputTimeParams.cxx
CommitLineData
fabd1b29 1/**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
3 * *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
6 * *
7 * Permission to use, copy, modify and distribute this software and its *
8 * documentation strictly for non-commercial purposes is hereby granted *
9 * without fee, provided that the above copyright notice appears in all *
10 * copies and that both the copyright notice and this permission notice *
11 * appear in the supporting documentation. The authors make no claims *
12 * about the suitability of this software for any purpose. It is *
13 * provided "as is" without express or implied warranty. *
14 **************************************************************************/
15
fabd1b29 16
17#include <Riostream.h>
18
fabd1b29 19#include "TObject.h"
20#include "AliLog.h"
21#include "AliCTPInputTimeParams.h"
22
23ClassImp(AliCTPInputTimeParams)
24
25//_____________________________________________________________________________
26AliCTPInputTimeParams::AliCTPInputTimeParams():
27 fName(0),
28 fLevel(0),
29 fDelay(0),
30 fEdge(0)
31{
32 // Default constructor
33}
34
35//_____________________________________________________________________________
36AliCTPInputTimeParams::AliCTPInputTimeParams( TString& name, UInt_t& level, UInt_t delay, TString edge ):
37 fName(name),
38 fLevel(level),
39 fDelay( delay),
40 fEdge(edge)
41{
42}
43//_____________________________________________________________________________
44AliCTPInputTimeParams::AliCTPInputTimeParams(const AliCTPInputTimeParams &ctptime):
45 TObject(ctptime),
46 fName(ctptime.fName),
47 fLevel(ctptime.fLevel),
48 fDelay(ctptime.fDelay),
49 fEdge(ctptime.fEdge)
50{
51 // copy constructor
52}
53//_____________________________________________________________________________
54AliCTPInputTimeParams& AliCTPInputTimeParams::operator=(const AliCTPInputTimeParams &ctptime)
55{
56 //assignment operator
57 if(this==&ctptime) return *this;
58 ((TObject *)this)->operator=(ctptime);
59 fName=ctptime.fName;
60 fLevel=ctptime.fLevel;
61 fDelay=ctptime.fDelay;
62 fEdge=ctptime.fEdge;
63 return *this;
64}
65//_____________________________________________________________________________
66void AliCTPInputTimeParams::SetCTPInputTimeParams( TString name, UInt_t level, UInt_t delay, TString edge )
67{
68 fName = name;
69 fLevel = level;
70 fDelay = delay;
71 fEdge = edge;
72}
73
74//_____________________________________________________________________________
75void AliCTPInputTimeParams::Print( const Option_t* ) const
76{
77 // Print
78 cout << " CTP Input Time Params " << endl;
79 cout << " Input Name: " << fName << endl;
80 cout << " Level: " << fLevel << endl;
81 cout << " Delay: " << fDelay << endl;
82 cout << " Edge: " << fEdge << endl;
83}