]> git.uio.no Git - u/mrichter/AliRoot.git/blame - STEER/AliCTPInputTimeParams.cxx
Leak detected by Coverity fixed
[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),
125fd567 30 fEdge(0),
31 fDeltaMin(0),
32 fDeltaMax(0)
fabd1b29 33{
34 // Default constructor
35}
36
37//_____________________________________________________________________________
125fd567 38AliCTPInputTimeParams::AliCTPInputTimeParams( TString& name, UInt_t& level, UInt_t delay, TString edge, UInt_t deltamin, UInt_t deltamax ):
fabd1b29 39 fName(name),
40 fLevel(level),
41 fDelay( delay),
125fd567 42 fEdge(edge),
43 fDeltaMin(deltamin),
44 fDeltaMax(deltamax)
fabd1b29 45{
46}
47//_____________________________________________________________________________
48AliCTPInputTimeParams::AliCTPInputTimeParams(const AliCTPInputTimeParams &ctptime):
49 TObject(ctptime),
50 fName(ctptime.fName),
51 fLevel(ctptime.fLevel),
52 fDelay(ctptime.fDelay),
125fd567 53 fEdge(ctptime.fEdge),
54 fDeltaMin(ctptime.fDeltaMin),
55 fDeltaMax(ctptime.fDeltaMax)
56
fabd1b29 57{
58 // copy constructor
59}
60//_____________________________________________________________________________
61AliCTPInputTimeParams& AliCTPInputTimeParams::operator=(const AliCTPInputTimeParams &ctptime)
62{
63 //assignment operator
64 if(this==&ctptime) return *this;
65 ((TObject *)this)->operator=(ctptime);
66 fName=ctptime.fName;
67 fLevel=ctptime.fLevel;
68 fDelay=ctptime.fDelay;
69 fEdge=ctptime.fEdge;
125fd567 70 fDeltaMin=ctptime.fDeltaMin;
71 fDeltaMax=ctptime.fDeltaMax;
fabd1b29 72 return *this;
73}
74//_____________________________________________________________________________
125fd567 75void AliCTPInputTimeParams::SetCTPInputTimeParams( TString name, UInt_t level, UInt_t delay, TString edge, UInt_t deltamin, UInt_t deltamax )
fabd1b29 76{
77 fName = name;
78 fLevel = level;
79 fDelay = delay;
80 fEdge = edge;
125fd567 81 fDeltaMin = deltamin;
82 fDeltaMax = deltamax;
fabd1b29 83}
84
85//_____________________________________________________________________________
86void AliCTPInputTimeParams::Print( const Option_t* ) const
87{
88 // Print
89 cout << " CTP Input Time Params " << endl;
90 cout << " Input Name: " << fName << endl;
91 cout << " Level: " << fLevel << endl;
92 cout << " Delay: " << fDelay << endl;
93 cout << " Edge: " << fEdge << endl;
125fd567 94 cout << " DeltaMin: " << fDeltaMin << endl;
95 cout << " DeltaMax: " << fDeltaMax << endl;
fabd1b29 96}