]> git.uio.no Git - u/mrichter/AliRoot.git/blob - STEER/AliCTPInputTimeParams.cxx
fa0c124e86f19e543ab039a256e883ff61340c86
[u/mrichter/AliRoot.git] / STEER / AliCTPInputTimeParams.cxx
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
25 ClassImp(AliCTPInputTimeParams)
26
27 //_____________________________________________________________________________
28 AliCTPInputTimeParams::AliCTPInputTimeParams():
29   fName(0),
30   fLevel(0),        
31   fDelay(0),        
32   fEdge(0)
33 {
34  // Default constructor
35 }     
36
37 //_____________________________________________________________________________
38 AliCTPInputTimeParams::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 //_____________________________________________________________________________
46 AliCTPInputTimeParams::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 //_____________________________________________________________________________
56 AliCTPInputTimeParams& 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 //_____________________________________________________________________________
68 void 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 //_____________________________________________________________________________
77 void 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 }