Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:53:14

0001 /** \file
0002  *
0003  *  \author R. Bellan - INFN Torino <riccardo.bellan@cern.ch>
0004  */
0005 #include "DataFormats/DTRecHit/interface/DTSLRecSegment2D.h"
0006 
0007 /// c'tor from hits
0008 DTSLRecSegment2D::DTSLRecSegment2D(const DTSuperLayerId id, const std::vector<DTRecHit1D> &hits)
0009     : DTRecSegment2D(id, hits) {}
0010 
0011 /// complete constructor
0012 DTSLRecSegment2D::DTSLRecSegment2D(const DTSuperLayerId id,
0013                                    LocalPoint &position,
0014                                    LocalVector &direction,
0015                                    AlgebraicSymMatrix &covMatrix,
0016                                    double &chi2,
0017                                    std::vector<DTRecHit1D> &hits1D)
0018     : DTRecSegment2D(id, position, direction, covMatrix, chi2, hits1D) {}
0019 
0020 /// The clone method needed by the clone policy
0021 DTSLRecSegment2D *DTSLRecSegment2D::clone() const { return new DTSLRecSegment2D(*this); }
0022 
0023 /// The id of the superlayer on which reside the segment
0024 DTSuperLayerId DTSLRecSegment2D::superLayerId() const { return DTSuperLayerId(geographicalId()); }
0025 
0026 /// The id of the chamber on which reside the segment
0027 DTChamberId DTSLRecSegment2D::chamberId() const { return superLayerId().chamberId(); }