StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StTpcPixel.cxx
1 /***************************************************************************
2  *
3  * $Id: StTpcPixel.cxx,v 2.6 2015/10/09 17:46:14 ullrich Exp $
4  *
5  * Author: Thomas Ullrich, July 1999
6  ***************************************************************************
7  *
8  * Description:
9  *
10  ***************************************************************************
11  *
12  * $Log: StTpcPixel.cxx,v $
13  * Revision 2.6 2015/10/09 17:46:14 ullrich
14  * Changed type of mIdTruth from ushort to int.
15  *
16  * Revision 2.5 2004/08/06 15:37:43 fisyak
17  * Add clster id
18  *
19  * Revision 2.4 2004/04/26 16:33:35 fisyak
20  * Make use of StTpcPixel
21  *
22  * Revision 2.3 2001/04/05 04:00:57 ullrich
23  * Replaced all (U)Long_t by (U)Int_t and all redundant ROOT typedefs.
24  *
25  * Revision 2.2 1999/12/13 20:16:31 ullrich
26  * Changed numbering scheme for hw_position unpack methods (STAR conventions).
27  *
28  * Revision 2.1 1999/10/13 19:45:32 ullrich
29  * Initial Revision
30  *
31  **************************************************************************/
32 #include "StTpcPixel.h"
33 
34 void StTpcPixel::Print(Option_t *option) const {
35  cout << option << "\t" << *this << endl;
36  }
37 
38 static const char rcsid[] = "$Id: StTpcPixel.cxx,v 2.6 2015/10/09 17:46:14 ullrich Exp $";
39 ostream& operator<< (ostream& os, const StTpcPixel& m)
40 {
41  os << "d:" << (int) m.detector()
42  << "/s:" << (int) m.sector()
43  << "/r:" << (int) m.padrow()
44  << "/p:" << (int) m.pad()
45  << "/t:" << (int) m.timebin()
46  << "/a:" << m.adc()
47  << "/i:" << m.idTruth()
48  << "/ClId:" << m.id()
49  << endl;
50  return os;
51 }
52 
53 ClassImp(StTpcPixel)