Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
/** \file
 *
 *  \author R. Bellan - INFN Torino <riccardo.bellan@cern.ch>
 */
#include "DataFormats/DTRecHit/interface/DTSLRecSegment2D.h"

/// c'tor from hits
DTSLRecSegment2D::DTSLRecSegment2D(const DTSuperLayerId id, const std::vector<DTRecHit1D> &hits)
    : DTRecSegment2D(id, hits) {}

/// complete constructor
DTSLRecSegment2D::DTSLRecSegment2D(const DTSuperLayerId id,
                                   LocalPoint &position,
                                   LocalVector &direction,
                                   AlgebraicSymMatrix &covMatrix,
                                   double &chi2,
                                   std::vector<DTRecHit1D> &hits1D)
    : DTRecSegment2D(id, position, direction, covMatrix, chi2, hits1D) {}

/// The clone method needed by the clone policy
DTSLRecSegment2D *DTSLRecSegment2D::clone() const { return new DTSLRecSegment2D(*this); }

/// The id of the superlayer on which reside the segment
DTSuperLayerId DTSLRecSegment2D::superLayerId() const { return DTSuperLayerId(geographicalId()); }

/// The id of the chamber on which reside the segment
DTChamberId DTSLRecSegment2D::chamberId() const { return superLayerId().chamberId(); }