StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StTofMCSlat.cxx
1 /***************************************************************************
2  *
3  * $Id: StTofMCSlat.cxx,v 2.5 2003/09/02 17:58:06 perev Exp $
4  *
5  * Author: Wei-Ming Zhang, April 2001
6  ***************************************************************************
7  *
8  * Description:
9  *
10  ***************************************************************************
11  *
12  * $Log: StTofMCSlat.cxx,v $
13  * Revision 2.5 2003/09/02 17:58:06 perev
14  * gcc 3.2 updates + WarnOff
15  *
16  * Revision 2.4 2003/05/21 18:23:18 ullrich
17  * Major Revision of ToF classes (F. Geurts)
18  *
19  * Revision 2.3 2001/04/27 21:43:18 ullrich
20  * Moved MC info class into separate file.
21  *
22  * Revision 2.2 2001/04/26 15:19:10 ullrich
23  * Added ClassDef and ClassImp macros.
24  *
25  * Revision 2.1 2001/04/26 01:07:42 ullrich
26  * Initial Revision.
27  *
28  **************************************************************************/
29 #include "Stiostream.h"
30 #include "StTofMCSlat.h"
31 
32 static const char rcsid[] = "$Id: StTofMCSlat.cxx,v 2.5 2003/09/02 17:58:06 perev Exp $";
33 
34 ClassImp(StTofMCSlat)
35 
36 StTofMCSlat::StTofMCSlat() { /* noop */ }
37 
38 StTofMCSlat::StTofMCSlat(const StTofMCInfo& MCInfo) :
39  mTofMCInfo(MCInfo) { /* noop */ }
40 
41 StTofMCSlat::~StTofMCSlat() { /* noop */ }
42 
43 int
44 StTofMCSlat::operator==(const StTofMCSlat& MCSlat) const
45 {
46  return (MCSlat.mSlatIndex == mSlatIndex && MCSlat.mTofMCInfo == mTofMCInfo);
47 }
48 
49 int
50 StTofMCSlat::operator!=(const StTofMCSlat& MCSlat) const
51 {
52  return !(*this == MCSlat); // use operator==()
53 }
54 
55 ostream&
56 operator<<(ostream& os, const StTofMCSlat& slat)
57 {
58  return (os << "StTofMCSlat::> " << " Id= " << slat.slatIndex()
59  << ", adc= " << slat.adc()
60  << ", tdc= " << slat.tdc() << endl
61  << "MCInfo: " << slat.mcInfo());
62 }