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
/** \file
 *
 * \author Stefano Lacaprara - INFN Legnaro <stefano.lacaprara@pd.infn.it>
 * \author Riccardo Bellan - INFN TO <riccardo.bellan@cern.ch>
 *
 */
#include "DataFormats/DTRecHit/interface/DTChamberRecSegment2D.h"

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

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

DTChamberRecSegment2D *DTChamberRecSegment2D::clone() const { return new DTChamberRecSegment2D(*this); }

DTChamberId DTChamberRecSegment2D::chamberId() const { return DTChamberId(geographicalId()); }