]> git.uio.no Git - u/mrichter/AliRoot.git/blob - STEER/AliCTPInputTimeParams.cxx
Partial fix for bug #59809: putting HLT trigger decision in the ESD, not yet in stand...
[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
17 #include <Riostream.h>
18
19 #include "TObject.h"
20 #include "AliLog.h"   
21 #include "AliCTPInputTimeParams.h"
22
23 ClassImp(AliCTPInputTimeParams)
24
25 //_____________________________________________________________________________
26 AliCTPInputTimeParams::AliCTPInputTimeParams():
27   fName(0),
28   fLevel(0),        
29   fDelay(0),        
30   fEdge(0),
31   fDeltaMin(0),
32   fDeltaMax(0)
33 {
34  // Default constructor
35 }     
36
37 //_____________________________________________________________________________
38 AliCTPInputTimeParams::AliCTPInputTimeParams( TString& name, UInt_t& level, UInt_t delay, TString edge, UInt_t deltamin, UInt_t deltamax ):
39   fName(name),        
40   fLevel(level),        
41   fDelay( delay),
42   fEdge(edge),
43   fDeltaMin(deltamin),
44   fDeltaMax(deltamax)
45 {
46 }
47 //_____________________________________________________________________________
48 AliCTPInputTimeParams::AliCTPInputTimeParams(const AliCTPInputTimeParams &ctptime):
49  TObject(ctptime),
50  fName(ctptime.fName),
51  fLevel(ctptime.fLevel),
52  fDelay(ctptime.fDelay),
53  fEdge(ctptime.fEdge),
54  fDeltaMin(ctptime.fDeltaMin),
55  fDeltaMax(ctptime.fDeltaMax)
56
57 {
58  // copy constructor
59 }
60 //_____________________________________________________________________________
61 AliCTPInputTimeParams& 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;
70  fDeltaMin=ctptime.fDeltaMin;
71  fDeltaMax=ctptime.fDeltaMax;
72  return *this;
73 }
74 //_____________________________________________________________________________
75 void AliCTPInputTimeParams::SetCTPInputTimeParams( TString name, UInt_t level, UInt_t delay, TString edge, UInt_t deltamin, UInt_t deltamax )
76 {
77   fName = name;        
78   fLevel = level;        
79   fDelay = delay;
80   fEdge = edge;
81   fDeltaMin = deltamin;
82   fDeltaMax = deltamax;
83 }
84
85 //_____________________________________________________________________________
86 void 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;
94   cout << "  DeltaMin:   " << fDeltaMin << endl;
95   cout << "  DeltaMax:   " << fDeltaMax << endl;
96 }