Classes for CTP time parameters added (Plamen)
[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
16/* $Id: AliCTPInputTimeParams.cxx 22322 2007-11-22 11:43:14Z cvetan $ */
17
18#include <Riostream.h>
19
20
21#include "TObject.h"
22#include "AliLog.h"
23#include "AliCTPInputTimeParams.h"
24
25ClassImp(AliCTPInputTimeParams)
26
27//_____________________________________________________________________________
28AliCTPInputTimeParams::AliCTPInputTimeParams():
29 fName(0),
30 fLevel(0),
31 fDelay(0),
32 fEdge(0)
33{
34 // Default constructor
35}
36
37//_____________________________________________________________________________
38AliCTPInputTimeParams::AliCTPInputTimeParams( TString& name, UInt_t& level, UInt_t delay, TString edge ):
39 fName(name),
40 fLevel(level),
41 fDelay( delay),
42 fEdge(edge)
43{
44}
45//_____________________________________________________________________________
46AliCTPInputTimeParams::AliCTPInputTimeParams(const AliCTPInputTimeParams &ctptime):
47 TObject(ctptime),
48 fName(ctptime.fName),
49 fLevel(ctptime.fLevel),
50 fDelay(ctptime.fDelay),
51 fEdge(ctptime.fEdge)
52{
53 // copy constructor
54}
55//_____________________________________________________________________________
56AliCTPInputTimeParams& AliCTPInputTimeParams::operator=(const AliCTPInputTimeParams &ctptime)
57{
58 //assignment operator
59 if(this==&ctptime) return *this;
60 ((TObject *)this)->operator=(ctptime);
61 fName=ctptime.fName;
62 fLevel=ctptime.fLevel;
63 fDelay=ctptime.fDelay;
64 fEdge=ctptime.fEdge;
65 return *this;
66}
67//_____________________________________________________________________________
68void AliCTPInputTimeParams::SetCTPInputTimeParams( TString name, UInt_t level, UInt_t delay, TString edge )
69{
70 fName = name;
71 fLevel = level;
72 fDelay = delay;
73 fEdge = edge;
74}
75
76//_____________________________________________________________________________
77void AliCTPInputTimeParams::Print( const Option_t* ) const
78{
79 // Print
80 cout << " CTP Input Time Params " << endl;
81 cout << " Input Name: " << fName << endl;
82 cout << " Level: " << fLevel << endl;
83 cout << " Delay: " << fDelay << endl;
84 cout << " Edge: " << fEdge << endl;
85}