File indexing completed on 2024-04-06 12:26:12
0001
0002
0003
0004
0005
0006
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
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
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 }