EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
EicMoCaPoint.cxx
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file EicMoCaPoint.cxx
1 //
2 // AYK (ayk@bnl.gov), 2013/06/13
3 //
4 // EIC Monte-Carlo point (hit);
5 //
6 
7 #include "EicMoCaPoint.h"
8 
9 #include <iostream>
10 
11 // ---------------------------------------------------------------------------------------
12 
13 EicMoCaPoint::EicMoCaPoint(Int_t trackID, Int_t primaryMotherID, Int_t secondaryMotherID,
14  Int_t detID,
15  //const TString &volumePath,
16  ULong64_t multiIndex,
17  const TVector3 &PosIn, const TVector3 &PosOut,
18  const TVector3 &MomIn, const TVector3 &MomOut,
19  Double_t tof, Double_t length, Double_t eLoss, Double_t step)
20  : FairMCPoint(trackID, detID, PosIn, MomIn, tof, length, eLoss)
21 {
22  //mVolumePath = volumePath;
23  mMultiIndex = multiIndex;
24 
25  mPrimaryMotherID = primaryMotherID;
26  mSecondaryMotherID = secondaryMotherID;
27 
28  mPosOut = PosOut;
29  mMomOut = MomOut;
30 
31  mStep = step;
32 } // EicMoCaPoint::EicMoCaPoint()
33 
34 // ---------------------------------------------------------------------------------------
35 
37 void EicMoCaPoint::Print(const Option_t* opt) const {
38  // It looks I can use 'opt' pointer as a name here?; do it better later;
39  std::cout<< opt << std::endl
40  //std::cout<<"QpcPoint\n"
41  <<" Pos("<<fX<<","<<fY<<","<<fZ<<")\n"
42  <<" dE="<< fELoss << fTrackID
43  <<std::endl;
44 } // EicMoCaPoint::Print()
45 
46 // ---------------------------------------------------------------------------------------
47