Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-05 08:18:30

0001 /* Copyright 2008-2010, Technische Universitaet Muenchen,
0002    Authors: Christian Hoeppner & Sebastian Neubert & Johannes Rauch
0003 
0004    This file is part of GENFIT.
0005 
0006    GENFIT is free software: you can redistribute it and/or modify
0007    it under the terms of the GNU Lesser General Public License as published
0008    by the Free Software Foundation, either version 3 of the License, or
0009    (at your option) any later version.
0010 
0011    GENFIT is distributed in the hope that it will be useful,
0012    but WITHOUT ANY WARRANTY; without even the implied warranty of
0013    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
0014    GNU Lesser General Public License for more details.
0015 
0016    You should have received a copy of the GNU Lesser General Public License
0017    along with GENFIT.  If not, see <http://www.gnu.org/licenses/>.
0018 */
0019 
0020 #ifndef genfit_mySpacepointMeasurement_h
0021 #define genfit_mySpacepointMeasurement_h
0022 
0023 #include "SpacepointMeasurement.h"
0024 #include "TrackCandHit.h"
0025 #include "mySpacepointDetectorHit.h"
0026 
0027 
0028 namespace genfit {
0029 
0030 /** @brief Example class for a spacepoint measurement which can be created
0031  * from mySpacepointDetectorHit via the MeasurementFactory.
0032  *
0033  *  @author Johannes Rauch  (Technische Universit&auml;t M&uuml;nchen, original author)
0034  *
0035  */
0036 class mySpacepointMeasurement : public SpacepointMeasurement {
0037 
0038  public:
0039 
0040   /** Default constructor for ROOT IO. */
0041   mySpacepointMeasurement() :
0042      SpacepointMeasurement() {;}
0043 
0044   mySpacepointMeasurement(const mySpacepointDetectorHit* detHit, const TrackCandHit* hit) :
0045     SpacepointMeasurement()
0046   {
0047     rawHitCoords_(0) = detHit->getPos()(0);
0048     rawHitCoords_(1) = detHit->getPos()(1);
0049     rawHitCoords_(2) = detHit->getPos()(2);
0050     rawHitCov_ = detHit->getCov();
0051     detId_ = hit->getDetId();
0052     hitId_ = hit->getHitId();
0053 
0054     this -> initG();
0055   }
0056 
0057   virtual mySpacepointMeasurement* clone() const {return new mySpacepointMeasurement(*this);}
0058 
0059   ClassDef(mySpacepointMeasurement,1)
0060 };
0061 /** @} */
0062 
0063 } /* End of namespace genfit */
0064 
0065 #endif // genfit_mySpacepointMeasurement_h