/[PAMELA software]/PamVMC_update/src/PamVMCDetectorHit.cxx
ViewVC logotype

Contents of /PamVMC_update/src/PamVMCDetectorHit.cxx

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1.1.1 - (show annotations) (download) (vendor branch)
Tue Oct 15 15:51:43 2013 UTC (11 years, 1 month ago) by formato
Branch: MAIN, rel
CVS Tags: reltag, HEAD
Changes since 1.1: +0 -0 lines
PamVMC update

1 #include <iostream>
2
3 #include "PamVMCDetectorHit.h"
4 #include <TLorentzVector.h>
5
6 using std::cout;
7 using std::endl;
8
9 ClassImp(pHitData)
10 ClassImp(PamVMCDetectorHit)
11
12 pHitData & operator+=( pHitData &a, const pHitData & p) {
13 a.fPOS = p.fPOS;
14 a.fPDG = p.fPDG;
15 a.fPATH= p.fPATH;
16 a.fTOF= p.fTOF;
17 a.fPIN += p.fPIN;
18 a.fXOUT= p.fXOUT;
19 a.fYOUT= p.fYOUT;
20 a.fZOUT= p.fZOUT;
21 a.fEREL += p.fEREL;
22 a.fXIN = p.fXIN;
23 a.fYIN = p.fYIN;
24 a.fZIN = p.fZIN;
25 a.fPRIM = p.fPRIM;
26 return a;
27 // return *this;
28 }
29
30 PamVMCDetectorHit::PamVMCDetectorHit()
31 : TObject(),
32 fnocall(0)
33
34 {
35 }
36
37 PamVMCDetectorHit::~PamVMCDetectorHit()
38 {
39 // Delete &fhitdata;
40 }
41
42 void PamVMCDetectorHit::Print(Option_t* /*option*/) const
43 {
44 // Prints hit info
45 cout <<"Actual Hit :"<<endl
46 <<" Energy deposit (keV): " << fhitdata.fEREL * 1.0e06 << endl
47 <<" Time of flight (us): " << fhitdata.fTOF*1.0e6 <<endl;
48 }
49
50 void PamVMCDetectorHit::Reset()
51 {
52 // Reset all accounted values.
53 fhitdata.Clean();
54 fnocall=0;
55
56 }
57
58 void PamVMCDetectorHit::operator += ( const PamVMCDetectorHit & p )
59 {
60 fhitdata+=p.fhitdata;
61 }
62
63 void PamVMCDetectorHit::operator = ( const PamVMCDetectorHit & p )
64 {
65 fhitdata=p.fhitdata;
66 }

  ViewVC Help
Powered by ViewVC 1.1.23