SND@LHC Software
Loading...
Searching...
No Matches
TrackCandHit.cc
Go to the documentation of this file.
1
/* Copyright 2008-2010, Technische Universitaet Muenchen,
2
Authors: Christian Hoeppner & Sebastian Neubert & Johannes Rauch
3
4
This file is part of GENFIT.
5
6
GENFIT is free software: you can redistribute it and/or modify
7
it under the terms of the GNU Lesser General Public License as published
8
by the Free Software Foundation, either version 3 of the License, or
9
(at your option) any later version.
10
11
GENFIT is distributed in the hope that it will be useful,
12
but WITHOUT ANY WARRANTY; without even the implied warranty of
13
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
GNU Lesser General Public License for more details.
15
16
You should have received a copy of the GNU Lesser General Public License
17
along with GENFIT. If not, see <http://www.gnu.org/licenses/>.
18
*/
19
20
#include "
TrackCandHit.h
"
21
22
#include <iostream>
23
24
namespace
genfit
{
25
26
TrackCandHit::TrackCandHit
(
int
detId,
27
int
hitId,
28
int
planeId,
29
double
sortingParameter)
30
:
detId_
(detId),
31
hitId_
(hitId),
32
planeId_
(planeId),
33
sortingParameter_
(sortingParameter)
34
{
35
;
36
}
37
38
39
void
TrackCandHit::Print
(Option_t*)
const
{
40
std::cout <<
" TrackCandHit. DetId = "
<<
detId_
41
<<
" \t HitId = "
<<
hitId_
42
<<
" \t PlaneId = "
<<
planeId_
43
<<
" \t SortingParameter = "
<<
sortingParameter_
<<
"\n"
;
44
}
45
46
47
bool
operator==
(
const
TrackCandHit
& lhs,
const
TrackCandHit
& rhs){
48
if
(lhs.
detId_
== rhs.
detId_
&&
49
lhs.
hitId_
== rhs.
hitId_
&&
50
lhs.
planeId_
== rhs.
planeId_
)
51
return
true
;
52
return
false
;
53
}
54
55
}
/* End of namespace genfit */
TrackCandHit.h
genfit::TrackCandHit::detId_
int detId_
Definition
TrackCandHit.h:82
genfit::TrackCandHit::TrackCandHit
TrackCandHit(int detId=-1, int hitId=-1, int planeId=-1, double sortingParameter=0.)
Definition
TrackCandHit.cc:26
genfit::TrackCandHit::hitId_
int hitId_
Definition
TrackCandHit.h:83
genfit::TrackCandHit::planeId_
int planeId_
Definition
TrackCandHit.h:84
genfit::TrackCandHit::sortingParameter_
double sortingParameter_
Definition
TrackCandHit.h:85
genfit::TrackCandHit::Print
virtual void Print(Option_t *option="") const
Definition
TrackCandHit.cc:39
genfit
Matrix inversion tools.
Definition
AbsBField.h:29
genfit::operator==
bool operator==(const DetPlane &lhs, const DetPlane &rhs)
Definition
DetPlane.cc:241
genfit
core
src
TrackCandHit.cc
Generated by
1.15.0