Back to home page

sPhenix code displayed by LXR

 
 

    


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

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 #include "AbsMeasurement.h"
0021 #include "IO.h"
0022 
0023 #include <cassert>
0024 
0025 
0026 namespace genfit {
0027 
0028 AbsMeasurement::AbsMeasurement(const TVectorD& rawHitCoords, const TMatrixDSym& rawHitCov, int detId, int hitId, TrackPoint* trackPoint)
0029   : rawHitCoords_(rawHitCoords), rawHitCov_(rawHitCov), detId_(detId), hitId_(hitId), trackPoint_(trackPoint)
0030 {
0031   assert(rawHitCov_.GetNrows() == rawHitCoords_.GetNrows());
0032 }
0033 
0034 
0035 AbsMeasurement::AbsMeasurement(const AbsMeasurement& o)
0036   : TObject(o),
0037     rawHitCoords_(o.rawHitCoords_),
0038     rawHitCov_(o.rawHitCov_),
0039     detId_(o.detId_),
0040     hitId_(o.hitId_),
0041     trackPoint_(o.trackPoint_)
0042 {
0043   ;
0044 }
0045 
0046 
0047 AbsMeasurement::~AbsMeasurement()
0048 {
0049   ;
0050 }
0051 
0052 
0053 AbsMeasurement& AbsMeasurement::operator=(const AbsMeasurement&) {
0054   fputs ("must not call AbsMeasurement::operator=\n",stderr);
0055   abort();
0056   return *this;
0057 }
0058 
0059 
0060 void AbsMeasurement::Print(const Option_t*) const {
0061   printOut << "genfit::AbsMeasurement, detId = " << detId_ << ". hitId = " << hitId_ << "\n";
0062   printOut << "Raw hit coordinates: "; rawHitCoords_.Print();
0063   printOut << "Raw hit covariance: "; rawHitCov_.Print();
0064 }
0065 
0066 
0067 } /* End of namespace genfit */