StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StMuEpdHit.cxx
1 #include "StMuEpdHit.h"
2 
3 
4 //
5 // \class StMuEpdHit
6 // \author Mike Lisa
7 // \date 14 Jan 2018
8 // \brief Holds signals for tiles in STAR Event Plane Detector
9 
10 /*************************************************
11  * Hit Class for the STAR Event Plane Detector.
12  * There is one "hit" for each (good) tile in the detector
13  *
14  * Total size of this object is 10 bytes
15  * This object contains only
16  * 1) the id of the tile, compacted into a Short_t
17  * 2) the QT information (ADC, TDC, TAC, hasTac flag, status flag)
18  * compacted into 32 bits (Int_t
19  * 3) the gain-corrected energy loss, in units of the
20  * most probable value (MPV) of a single MIP in the tile,
21  * according to a Landau distribution. Stored as Float_t
22  *
23  * The StMuEpdHit in the StMuDST is basically the same as
24  * the StEpdHit object in StEvent
25  *
26  * - Mike Lisa Jan 2018
27  ************************************************/
28 
29 #include "StEvent/StEpdHit.h"
30 #include "StMuEpdHit.h"
31 
32 ClassImp(StMuEpdHit)
33 
34 StMuEpdHit::StMuEpdHit() : StMuEpdHit(0, 0, 0, 0, 0, 0, false, 0.0, false, 0){
35  /* no-op */
36 }
37 
38 StMuEpdHit::StMuEpdHit(Int_t position, Int_t tile,
39  Short_t EW, Int_t ADC, Int_t TAC,
40  Int_t TDC, bool hasTAC, Float_t nMIP,
41  bool statusIsGood, Int_t truthId) :
42  mId( (100*position + tile)*EW ),
43  mQTdata( (ADC & 0x0FFF) | (TAC & 0x0FFF) << 12 | (TDC & 0x001F) << 24 | hasTAC << 29 | statusIsGood << 30 ),
44  mnMIP(nMIP),
45  mTruthId(truthId)
46 {
47  /* no-op */
48 }
49 
51  mId(epdHit->id()), mQTdata(epdHit->qtData()), mnMIP(epdHit->nMIP()), mTruthId(epdHit->idTruth())
52 {
53  /* no-op */
54 }
55 
StMuEpdHit()
default constructor. sets all values empty
Definition: StMuEpdHit.cxx:34
Stores information for tiles in STAR Event Plane Detector.
Definition: StEpdHit.h:43