GENFIT  Rev:NoNumberAvailable
mySpacepointMeasurement.h
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 #ifndef genfit_mySpacepointMeasurement_h
21 #define genfit_mySpacepointMeasurement_h
22 
23 #include "SpacepointMeasurement.h"
24 #include "TrackCandHit.h"
26 
27 
28 namespace genfit {
29 
37 
38  public:
39 
43 
46  {
47  rawHitCoords_(0) = detHit->getPos()(0);
48  rawHitCoords_(1) = detHit->getPos()(1);
49  rawHitCoords_(2) = detHit->getPos()(2);
50  rawHitCov_ = detHit->getCov();
51  detId_ = hit->getDetId();
52  hitId_ = hit->getHitId();
53 
54  this -> initG();
55  }
56 
57  virtual mySpacepointMeasurement* clone() const {return new mySpacepointMeasurement(*this);}
58 
59  ClassDef(mySpacepointMeasurement,1)
60 };
63 } /* End of namespace genfit */
64 
65 #endif // genfit_mySpacepointMeasurement_h
genfit::SpacepointMeasurement::initG
void initG()
Definition: SpacepointMeasurement.cc:130
genfit::TrackCandHit
Hit object for use in TrackCand. Provides IDs and sorting parameters.
Definition: TrackCandHit.h:34
SpacepointMeasurement.h
genfit::mySpacepointMeasurement::mySpacepointMeasurement
mySpacepointMeasurement(const mySpacepointDetectorHit *detHit, const TrackCandHit *hit)
Definition: mySpacepointMeasurement.h:44
genfit
Defines for I/O streams used for error and debug printing.
Definition: AbsFinitePlane.cc:22
genfit::mySpacepointDetectorHit::getCov
const TMatrixDSym getCov() const
Definition: mySpacepointDetectorHit.h:42
genfit::AbsMeasurement::rawHitCov_
TMatrixDSym rawHitCov_
Definition: AbsMeasurement.h:114
genfit::mySpacepointMeasurement::mySpacepointMeasurement
mySpacepointMeasurement()
Definition: mySpacepointMeasurement.h:41
genfit::AbsMeasurement::rawHitCoords_
TVectorD rawHitCoords_
Definition: AbsMeasurement.h:113
genfit::mySpacepointDetectorHit
Example class for a spacepoint detector hit.
Definition: mySpacepointDetectorHit.h:33
genfit::mySpacepointMeasurement::clone
virtual mySpacepointMeasurement * clone() const
Deep copy ctor for polymorphic class.
Definition: mySpacepointMeasurement.h:57
genfit::AbsMeasurement::detId_
int detId_
Definition: AbsMeasurement.h:115
genfit::SpacepointMeasurement
Class for measurements implementing a space point hit geometry.
Definition: SpacepointMeasurement.h:46
genfit::AbsMeasurement::hitId_
int hitId_
Definition: AbsMeasurement.h:116
mySpacepointDetectorHit.h
genfit::mySpacepointMeasurement
Example class for a spacepoint measurement which can be created from mySpacepointDetectorHit via the ...
Definition: mySpacepointMeasurement.h:36
genfit::TrackCandHit::getHitId
int getHitId() const
Definition: TrackCandHit.h:49
genfit::TrackCandHit::getDetId
int getDetId() const
Definition: TrackCandHit.h:48
TrackCandHit.h
genfit::mySpacepointDetectorHit::getPos
const TVector3 getPos() const
Definition: mySpacepointDetectorHit.h:41