CbmRoot
CbmMvdHit.cxx
Go to the documentation of this file.
1
// -------------------------------------------------------------------------
2
// ----- CbmMvdHit source file -----
3
// ----- Created 07/11/06 by V. Friese -----
4
// ----- Based on CbmStsMapsHit by M. Deveaux -----
5
// -------------------------------------------------------------------------
6
7
#include "
CbmMvdHit.h
"
8
9
#include <FairLogger.h>
// for Logger, LOG
10
11
// ----- Default constructor -------------------------------------------
12
CbmMvdHit::CbmMvdHit
()
13
:
CbmPixelHit
()
14
, fFlag(-1)
15
, fClusterIndex(-1)
16
, fIndexCentralX(-1)
17
, fIndexCentralY(-1)
18
, fDetectorID(-1) {
19
SetTime
(0.);
20
SetTimeError
(0.);
21
}
22
// -------------------------------------------------------------------------
23
24
25
// ----- Standard constructor ------------------------------------------
26
CbmMvdHit::CbmMvdHit
(Int_t statNr,
27
TVector3&
pos
,
28
TVector3&
dpos
,
29
Int_t indexCentralX,
30
Int_t indexCentralY,
31
Int_t clusterIndex,
32
Int_t flag)
33
:
CbmPixelHit
(0,
pos
,
dpos
, 0., -1)
34
, fFlag(flag)
35
, fClusterIndex(clusterIndex)
36
, fIndexCentralX(indexCentralX)
37
, fIndexCentralY(indexCentralY)
38
, fDetectorID(-1) {
39
fDetectorID
=
DetectorId
(statNr);
40
SetTime
(0.);
41
SetTimeError
(0.);
42
}
43
// -------------------------------------------------------------------------
44
/*
45
void CbmMvdHit::GetDigiIndexVector(TClonesArray* cbmMvdClusterArray, std::vector<Int_t>* digiIndexVector)
46
{
47
CbmMvdCluster* cluster;
48
49
if(!digiIndexVector){digiIndexVector=new std::vector<Int_t>;}
50
if(digiIndexVector->size()!=0){digiIndexVector->clear();}
51
52
Int_t indexLow=fClusterIndex;
53
54
while (indexLow!=-1) {
55
cluster=(CbmMvdCluster*) cbmMvdClusterArray->At(indexLow);
56
indexLow=cluster->GetNeighbourDown();
57
}
58
59
Int_t* digiArray;
60
Int_t digisInCluster;
61
Int_t indexUp=0;
62
63
while (indexUp!=-1) {
64
digiArray = cluster->GetDigiList();
65
digisInCluster=cluster->GetTotalDigisInCluster();
66
67
for (Int_t i=0;i<digisInCluster; i++){
68
digiIndexVector->push_back(digiArray[i]);
69
};
70
71
indexUp=cluster->GetNeighbourUp();
72
73
}
74
75
if(static_cast<size_t>(cluster->GetTotalDigisInCluster())!=digiIndexVector->size()) {
76
LOG(warn) << "Inconsistent number of digis in cluster. Ignored. ";
77
}
78
79
80
81
82
83
};
84
*/
85
// ----- Destructor ----------------------------------------------------
86
CbmMvdHit::~CbmMvdHit
() {}
87
// -------------------------------------------------------------------------
88
89
90
// ----- Public method Print -------------------------------------------
91
void
CbmMvdHit::Print
(
const
Option_t*
/*opt*/
)
const
{
92
LOG(info) <<
"MvdHit in station "
<<
GetStationNr
() <<
" at ("
<<
GetX
()
93
<<
", "
<<
GetY
() <<
", "
<<
GetZ
() <<
") cm"
;
94
}
95
// -------------------------------------------------------------------------
96
97
98
ClassImp
(
CbmMvdHit
)
CbmHit::GetZ
Double_t GetZ() const
Definition:
CbmHit.h:70
CbmPixelHit::GetX
Double_t GetX() const
Definition:
CbmPixelHit.h:83
CbmPixelHit::GetY
Double_t GetY() const
Definition:
CbmPixelHit.h:84
CbmMvdHit::fDetectorID
Int_t fDetectorID
Definition:
CbmMvdHit.h:80
CbmMvdHit::GetStationNr
virtual Int_t GetStationNr() const
Definition:
CbmMvdHit.h:61
CbmMvdHit
Definition:
CbmMvdHit.h:29
CbmMvdHit::Print
virtual void Print(const Option_t *opt=0) const
Definition:
CbmMvdHit.cxx:91
dpos
TVector3 dpos
Definition:
CbmMvdSensorDigiToHitTask.cxx:61
ClassImp
ClassImp(CbmConverterManager) InitStatus CbmConverterManager
Definition:
CbmConverterManager.cxx:12
CbmHit::SetTimeError
void SetTimeError(Double_t error)
Definition:
CbmHit.h:89
CbmHit::SetTime
void SetTime(Double_t time)
Definition:
CbmHit.h:84
CbmMvdHit.h
CbmMvdHit::~CbmMvdHit
virtual ~CbmMvdHit()
Definition:
CbmMvdHit.cxx:86
CbmMvdHit::CbmMvdHit
CbmMvdHit()
Definition:
CbmMvdHit.cxx:12
pos
TVector3 pos
Definition:
CbmMvdSensorDigiToHitTask.cxx:60
CbmPixelHit
Definition:
CbmPixelHit.h:21
CbmMvdDetectorId::DetectorId
Int_t DetectorId(Int_t iStation) const
Definition:
CbmMvdDetectorId.h:44
core
data
mvd
CbmMvdHit.cxx
Generated on Wed Oct 28 2020 15:11:43 for CbmRoot by
1.8.18