123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 |
- //--------------------------------------------------------------------------
- //---- MpdEmcHit ----
- //--------------------------------------------------------------------------
- ////////////////////////////////////////////////////////////////
- // //
- // Updated : Martemianov M., ITEP, 2017 //
- // //
- ////////////////////////////////////////////////////////////////
- #include "MpdEmcHit.h"
- #include <iostream>
- using namespace std;
- // ----- Default constructor -------------------------------------------
- MpdEmcHit::MpdEmcHit() :
- fSecId(-1),
- fRowId(-1),
- fModId(-1),
- fE(-1.0),
- fTime(-1.0),
- fTrackID(-1),
- fFlag(0),
- fPDG(0),
- fNumTracks(0),
- fRhoCenter(0.0),
- fZCenter(0.0),
- fPhiCenter(0.0),
- fThetaCenter(0.0)
- {}
- // ----- Standard constructor ------------------------------------------
- MpdEmcHit::MpdEmcHit(Int_t detID, TVector3 pos, TVector3 dpos, Int_t index, Int_t flag)
- : FairHit(detID, pos, dpos, index) {
- fFlag = flag;
- }
- // ----- Constructor without flag ------------------------------------------
- MpdEmcHit::MpdEmcHit(Int_t detID, TVector3 pos, TVector3 dpos, Int_t index)
- : FairHit(detID, pos, dpos, index) {
- }
- MpdEmcHit::MpdEmcHit(UInt_t sec, UInt_t row, UInt_t supMod, UInt_t mod, Float_t e, Float_t time) :
- fSecId(sec),
- fRowId(row),
- fModId(mod),
- fE(e),
- fTime(time),
- fTrackID(-1),
- fFlag(kFALSE),
- fPDG(0),
- fNumTracks(0) {
- }
- // ----- Destructor ----------------------------------------------------
- MpdEmcHit::~MpdEmcHit() {
- }
- // ----- Print -----------------------------------------------------------
- void MpdEmcHit::Print(const Option_t* opt) const {
- cout << "MpdEmcHit: " << endl;
- cout << "\tSec: " << fSecId << " Row: " << fRowId << " Module:" << fModId << endl;
- cout << "\tDeposited energy: " << fE << "\tMean time: " << fTime <<
- " RhoCenter: " << fRhoCenter << " ZCenter: " << fZCenter << " PhiCenter: " << fPhiCenter <<
- " ThetaCenter: " << fThetaCenter << endl;
- cout << "\tNumber of tracks in module: " << fNumTracks << endl;
- if (fNumTracks == 1) cout << "PDG code: " << fPDG << " Track ID: " << fTrackID << endl;
- }
- // -------------------------------------------------------------------------
- ClassImp(MpdEmcHit)
|