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
24namespace genfit {
25
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
39void 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
47bool 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 */
Hit object for use in TrackCand. Provides IDs and sorting parameters.
TrackCandHit(int detId=-1, int hitId=-1, int planeId=-1, double sortingParameter=0.)
virtual void Print(Option_t *option="") const
Matrix inversion tools.
Definition AbsBField.h:29
bool operator==(const DetPlane &lhs, const DetPlane &rhs)
Definition DetPlane.cc:241