FairRoot/PandaRoot
PndHypGeHit.cxx
Go to the documentation of this file.
1 //
3 // PndHypGeHit
4 //
5 // HypGe digitized hit
6 //
7 
8 //
10 
11 #include "PndHypGeHit.h"
12 #include <iostream>
13 
14 using namespace std;
15 
16 // ----- Default constructor -------------------------------------------
18 // -------------------------------------------------------------------------
19 
20 
21 // ----- Destructor ----------------------------------------------------
22 PndHypGeHit::PndHypGeHit(Int_t trackId, Int_t detID,
23  Double_t ener, Double_t den){
24  fTrackId = trackId; fDetectorId = detID;
25  fenergy= ener;
26  fden=den; }
27 // -------------------------------------------------------------------------
28 
30 // ----- Public method Print -------------------------------------------
31 void PndHypGeHit::Print(const Option_t* opt) const {
32  cout << "HYPGE hit: , Energy=" << fenergy;
33  if (fTrackId>0) cout << ", TrackID= " << fTrackId;
34 // cout << ", x=" << GetX() << ", y=" << GetY() << endl << flush;
35 }
36 // -------------------------------------------------------------------------
37 
virtual ~PndHypGeHit()
Definition: PndHypGeHit.cxx:29
Double_t
ClassImp(PndAnaContFact)
virtual void Print(const Option_t *opt="") const
Definition: PndHypGeHit.cxx:31