Belle II Software  release-08-01-10
mySpacepointMeasurement.h
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"
25 #include "mySpacepointDetectorHit.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
Class for measurements implementing a space point hit geometry.
Hit object for use in TrackCand.
Definition: TrackCandHit.h:34
Example class for a spacepoint detector hit.
Example class for a spacepoint measurement which can be created from mySpacepointDetectorHit via the ...
mySpacepointMeasurement()
Default constructor for ROOT IO.
virtual mySpacepointMeasurement * clone() const
Deep copy ctor for polymorphic class.
Defines for I/O streams used for error and debug printing.