StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StSvtData.cc
1 /***************************************************************************
2  *
3  * $Id: StSvtData.cc,v 1.7 2004/01/26 23:13:28 perev Exp $
4  *
5  * Author: Marcelo Munhoz
6  ***************************************************************************
7  *
8  * Description: SVT Data BASE class
9  *
10  ***************************************************************************
11  *
12  * $Log: StSvtData.cc,v $
13  * Revision 1.7 2004/01/26 23:13:28 perev
14  * Leak off
15  *
16  * Revision 1.6 2003/09/02 17:59:06 perev
17  * gcc 3.2 updates + WarnOff
18  *
19  * Revision 1.5 2002/01/15 01:01:42 caines
20  * Fix memory leak when deleting this class - have to delete what it points to too
21  *
22  * Revision 1.4 2001/10/24 16:48:50 munhoz
23  * adding capability to retrieve t0 and first SCA
24  *
25  * Revision 1.3 2000/11/30 20:39:12 caines
26  * Changed to allow us of database
27  *
28  * Revision 1.2 2000/08/23 12:48:38 munhoz
29  * add reset method
30  *
31  * Revision 1.1.1.1 2000/03/10 14:26:21 munhoz
32  * SVT Class Library
33  *
34  **************************************************************************/
36 // //
37 // It is a collection of StSvtHybridData objects. //
38 // It represents the entire SVT data. //
39 // //
41 
42 #include <Stiostream.h>
43 #include "StSvtData.hh"
44 #include "StSvtHybridData.hh"
45 
46 ClassImp(StSvtData)
47 
48 StSvtData::StSvtData() :
50 {}
51 
52 StSvtData::StSvtData(const char* config, int run, int event, int trigger, int time) :
53  StSvtHybridCollection(config)
54 {
55  // The Same as StSvtHybridCollection, with some additional parameters.
56  mRunNumber = run;
57  mEventNumber = event;
58  mTriggerWord = trigger;
59  mUnixTime = time;
60 }
61 
62 StSvtData::StSvtData(StSvtConfig* config, int run, int event, int trigger, int time) :
63  StSvtHybridCollection(config)
64 {
65  // The Same as StSvtHybridCollection, with some additional parameters.
66  mRunNumber = run;
67  mEventNumber = event;
68  mTriggerWord = trigger;
69  mUnixTime = time;
70 }
71 
72 StSvtData::~StSvtData()
73 {
74 }
75 
76 StSvtData::StSvtData(const StSvtData& data):StSvtHybridCollection(data.mConfig)
77 {
78  // Copy Constructor
79  mRunNumber = data.mRunNumber;
80  mEventNumber = data.mEventNumber;
81  mTriggerWord = data.mTriggerWord;
82  mUnixTime =data.mUnixTime;
83 }
84 
85 StSvtData& StSvtData::operator = (const StSvtData& data)
86 {
87  mRunNumber = data.mRunNumber;
88  mEventNumber = data.mEventNumber;
89  mTriggerWord = data.mTriggerWord;
90  mUnixTime =data.mUnixTime;
91 
92  return *this;
93 }