Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:24:55

0001 /*
0002 * See header file for a description of this class.
0003 *
0004 * $Date: 2014/02/04 10:16:35 $
0005 * $Revision: 1.1 $
0006 * \author M. Maggi -- INFN Bari
0007 */
0008 
0009 #include "RecoLocalMuon/GEMRecHit/interface/ME0RecHitBaseAlgo.h"
0010 #include "Geometry/GEMGeometry/interface/ME0EtaPartition.h"
0011 #include "DataFormats/GEMDigi/interface/ME0DigiPreRecoCollection.h"
0012 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0013 
0014 ME0RecHitBaseAlgo::ME0RecHitBaseAlgo(const edm::ParameterSet& config) {}
0015 
0016 ME0RecHitBaseAlgo::~ME0RecHitBaseAlgo() {}
0017 
0018 // Build all hits in the range associated to the layerId, at the 1st step.
0019 edm::OwnVector<ME0RecHit> ME0RecHitBaseAlgo::reconstruct(const ME0DetId& me0Id,
0020                                                          const ME0DigiPreRecoCollection::Range& digiRange) {
0021   edm::OwnVector<ME0RecHit> result;
0022 
0023   for (ME0DigiPreRecoCollection::const_iterator digi = digiRange.first; digi != digiRange.second; digi++) {
0024     LocalError tmpErr;
0025     LocalPoint point;
0026     // Call the compute method
0027     bool OK = this->compute(*digi, point, tmpErr);
0028     if (!OK)
0029       continue;
0030     ME0RecHit* recHit = new ME0RecHit(me0Id, digi->tof(), point, tmpErr);
0031     result.push_back(recHit);
0032   }
0033   return result;
0034 }