EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
Home page
Related Pages
Modules
Namespaces
Classes
Files
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
CbmHit.cxx
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file CbmHit.cxx
1
// -------------------------------------------------------------------------
2
// ----- CbmHit source file -----
3
// ----- Created 16/11/07 by V. Friese -----
4
// -------------------------------------------------------------------------
5
6
7
#include "
CbmHit.h
"
8
9
#include <iostream>
10
using namespace
std;
11
12
13
// ----- Default constructor -------------------------------------------
14
CbmHit::CbmHit
()
15
:
FairHit
(),
16
fCovXY(0.)
17
{
18
}
19
// -------------------------------------------------------------------------
20
21
22
23
// ----- Standard constructor ------------------------------------------
24
CbmHit::CbmHit
(Int_t detId, TVector3&
pos
, TVector3& dpos,
25
Double_t covXY, Int_t index)
26
:
FairHit
(detId, pos, dpos, index),
27
fCovXY(covXY)
28
{
29
}
30
// -------------------------------------------------------------------------
31
32
33
34
// ----- Destructor ----------------------------------------------------
35
CbmHit::~CbmHit
() { }
36
// -------------------------------------------------------------------------
37
38
39
40
41
// ----- Public method Print -------------------------------------------
42
void
CbmHit::Print
(
const
Option_t* opt)
const
{
43
cout.precision(5);
44
cout <<
"Hit at ("
<<
fX
<<
", "
<<
fY
<<
", "
<<
fZ
<<
") cm, "
45
<<
"Detector "
<<
fDetectorID
<<
", Station "
<<
GetStationNr
()
46
<< endl;
47
}
48
// -------------------------------------------------------------------------
49
50
51
52
ClassImp
(
CbmHit
)
EicRoot
blob
master
cbmdata
CbmHit.cxx
Built by
Jin Huang
. updated:
Mon Jan 22 2024 12:43:33
using
1.8.2 with
EIC GitHub integration