StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StEpdHit.cxx
1 
7 /***************************************************************************
8  *
9  * $Id: StEpdHit.cxx,v 2.1 2018/02/08 17:35:02 ullrich Exp $
10  *
11  * Author: Mike Lisa, Jan 2018
12  ***************************************************************************
13  *
14  * Description: see header file
15  *
16  ***************************************************************************
17  *
18  * $Log: StEpdHit.cxx,v $
19  * Revision 2.1 2018/02/08 17:35:02 ullrich
20  * Initial Revision.
21  *
22  **************************************************************************/
23 #include "StEpdHit.h"
24 
25 ClassImp(StEpdHit);
26 
27 StEpdHit::StEpdHit() : StEpdHit(0, 0, 0, 0, 0, 0, false, 0.0, false, 0)
28 {
29  /* no-op */
30 }
31 
32 StEpdHit::StEpdHit(int position, int tile,
33  short EW, int ADC, int TAC,
34  int TDC, bool hasTAC, float nMIP,
35  bool statusIsGood, int truthId) :
36  mId( (100*position + tile)*EW ),
37  mQTdata( (ADC & 0x0FFF) | (TAC & 0x0FFF) << 12 | (TDC & 0x001F) << 24 | hasTAC << 29 | statusIsGood << 30 ),
38  mnMIP(nMIP),
39  mTruthId(truthId)
40 {
41  /* no-op */
42 }
43 
44 
Stores information for tiles in STAR Event Plane Detector.
Definition: StEpdHit.h:43
StEpdHit()
default constructor. sets all values empty
Definition: StEpdHit.cxx:27