Skip to content

Commit

Permalink
* Use Topology record
Browse files Browse the repository at this point in the history
  • Loading branch information
ianna committed Apr 7, 2015
1 parent 302af6c commit 3d60851
Show file tree
Hide file tree
Showing 31 changed files with 52 additions and 62 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include "DataFormats/GeometryVector/interface/GlobalPoint.h"

#include "DataFormats/TrackerCommon/interface/TrackerTopology.h"
#include "Geometry/Records/interface/IdealGeometryRecord.h"
#include "Geometry/Records/interface/TrackerTopologyRcd.h"

#include "SimDataFormats/Vertex/interface/SimVertexContainer.h"

Expand Down Expand Up @@ -96,7 +96,7 @@ void PixelVertexProducerClusters::produce
{
//Retrieve tracker topology from geometry
edm::ESHandle<TrackerTopology> tTopo;
es.get<IdealGeometryRecord>().get(tTopo);
es.get<TrackerTopologyRcd>().get(tTopo);


// Get pixel hit collections
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@
#include "FWCore/ParameterSet/interface/FileInPath.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"

#include "DataFormats/TrackerCommon/interface/TrackerTopology.h"
#include "Geometry/Records/interface/IdealGeometryRecord.h"

#include "DataFormats/TrackerRecHit2D/interface/SiPixelRecHit.h"
#include "DataFormats/TrackerRecHit2D/interface/SiStripRecHit2D.h"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,16 @@

#include "DataFormats/TrackerRecHit2D/interface/SiPixelRecHit.h"
#include "DataFormats/TrackingRecHit/interface/TrackingRecHit.h"
#include "DataFormats/TrackerCommon/interface/TrackerTopology.h"
#include "Geometry/Records/interface/TrackerTopologyRcd.h"

#include "RecoTracker/TkSeedingLayers/interface/SeedingHitSet.h"

#include "RecoTracker/Record/interface/CkfComponentsRecord.h"

#include "DataFormats/GeometryVector/interface/GlobalPoint.h"
#include "DataFormats/GeometryVector/interface/GlobalVector.h"
#include "DataFormats/GeometryVector/interface/Basic2DVector.h"
#include "DataFormats/TrackerCommon/interface/TrackerTopology.h"

#include<cmath>

Expand Down Expand Up @@ -110,7 +112,7 @@ LowPtClusterShapeSeedComparitor::LowPtClusterShapeSeedComparitor(const edm::Para
/*****************************************************************************/
void LowPtClusterShapeSeedComparitor::init(const edm::Event& e, const edm::EventSetup& es) {
es.get<CkfComponentsRecord>().get("ClusterShapeHitFilter", theShapeFilter);
es.get<IdealGeometryRecord>().get(theTTopo);
es.get<TrackerTopologyRcd>().get(theTTopo);

e.getByToken(thePixelClusterShapeCacheToken, thePixelClusterShapeCache);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#include "FWCore/Framework/interface/ConsumesCollector.h"

#include "DataFormats/TrackerCommon/interface/TrackerTopology.h"
#include "Geometry/Records/interface/IdealGeometryRecord.h"
#include "Geometry/Records/interface/TrackerTopologyRcd.h"

#include "FWCore/Framework/interface/Event.h"
#include "DataFormats/SiPixelCluster/interface/SiPixelClusterShapeCache.h"
Expand Down Expand Up @@ -88,7 +88,7 @@ void PixelTripletLowPtGenerator::hitTriplets(

//Retrieve tracker topology from geometry
edm::ESHandle<TrackerTopology> tTopoHand;
es.get<IdealGeometryRecord>().get(tTopoHand);
es.get<TrackerTopologyRcd>().get(tTopoHand);
const TrackerTopology *tTopo=tTopoHand.product();

edm::Handle<SiPixelClusterShapeCache> clusterShapeCache;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#include "Geometry/TrackerGeometryBuilder/interface/TrackerGeometry.h"
#include "Geometry/TrackerGeometryBuilder/interface/StripGeomDetUnit.h"
#include "Geometry/Records/interface/TrackerDigiGeometryRecord.h"
#include "Geometry/Records/interface/TrackerTopologyRcd.h"
#include "MagneticField/Engine/interface/MagneticField.h"
#include "RecoPixelVertexing/PixelLowPtUtilities/interface/ClusterShapeHitFilter.h"
#include "RecoTracker/Record/interface/CkfComponentsRecord.h"
Expand Down Expand Up @@ -292,7 +293,7 @@ void StripSubClusterShapeFilterBase::setEventBase
es.get<CkfComponentsRecord>().get("ClusterShapeHitFilter",theFilter);

//Retrieve tracker topology from geometry
es.get<IdealGeometryRecord>().get(theTopology);
es.get<TrackerTopologyRcd>().get(theTopology);

es.get<SiStripNoisesRcd>().get(theNoise);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#include "Geometry/TrackerGeometryBuilder/interface/PixelGeomDetUnit.h"

#include "DataFormats/TrackerCommon/interface/TrackerTopology.h"
#include "Geometry/Records/interface/IdealGeometryRecord.h"
#include "Geometry/Records/interface/TrackerTopologyRcd.h"

#include "DataFormats/GeometrySurface/interface/Cylinder.h"

Expand Down Expand Up @@ -61,7 +61,7 @@ ValidHitPairFilter::~ValidHitPairFilter()
void ValidHitPairFilter::update(const edm::Event& ev, const edm::EventSetup& es) {
//Retrieve tracker topology from geometry
edm::ESHandle<TrackerTopology> tTopo;
es.get<IdealGeometryRecord>().get(tTopo);
es.get<TrackerTopologyRcd>().get(tTopo);


// Get tracker
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#include "DataFormats/TrackReco/interface/Track.h"
#include "DataFormats/TrackReco/interface/TrackFwd.h"
#include "DataFormats/TrackReco/interface/TrackExtra.h"
#include "Geometry/Records/interface/TrackerTopologyRcd.h"

#include "RecoPixelVertexing/PixelTriplets/interface/QuadrupletSeedMerger.h"

Expand Down Expand Up @@ -104,7 +105,7 @@ void PixelTrackReconstruction::run(TracksWithTTRHs& tracks, edm::Event& ev, cons

//Retrieve tracker topology from geometry
edm::ESHandle<TrackerTopology> tTopoHand;
es.get<IdealGeometryRecord>().get(tTopoHand);
es.get<TrackerTopologyRcd>().get(tTopoHand);
const TrackerTopology *tTopo=tTopoHand.product();

if (theFilter) theFilter->update(ev, es);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

#include "Geometry/TrackerGeometryBuilder/interface/TrackerGeometry.h"
#include "Geometry/Records/interface/TrackerDigiGeometryRecord.h"
#include "Geometry/Records/interface/TrackerTopologyRcd.h"
#include "RecoPixelVertexing/PixelTriplets/plugins/ThirdHitCorrection.h"
#include "RecoTracker/TkHitPairs/interface/RecHitsSortedInPhi.h"

Expand Down Expand Up @@ -90,7 +91,7 @@ void PixelTripletLargeTipGenerator::hitTriplets(const TrackingRegion& region,

//Retrieve tracker topology from geometry
edm::ESHandle<TrackerTopology> tTopoHand;
es.get<IdealGeometryRecord>().get(tTopoHand);
es.get<TrackerTopologyRcd>().get(tTopoHand);
const TrackerTopology *tTopo=tTopoHand.product();

auto const & doublets = thePairGenerator->doublets(region,ev,es);
Expand Down
2 changes: 0 additions & 2 deletions RecoPixelVertexing/PixelTriplets/src/CosmicLayerTriplets.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
#include "RecoTracker/TkDetLayers/interface/GeometricSearchTracker.h"
#include "RecoTracker/Record/interface/TrackerRecoGeometryRecord.h"

#include "DataFormats/TrackerCommon/interface/TrackerTopology.h"
#include "Geometry/Records/interface/IdealGeometryRecord.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"

#include "Geometry/TrackerGeometryBuilder/interface/TrackerGeometry.h"
Expand Down
3 changes: 2 additions & 1 deletion RecoPixelVertexing/PixelTriplets/src/QuadrupletSeedMerger.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#include "RecoPixelVertexing/PixelTriplets/plugins/KDTreeLinkerAlgo.h"
#include "RecoPixelVertexing/PixelTriplets/plugins/KDTreeLinkerTools.h"
#include "DataFormats/TrackerCommon/interface/TrackerTopology.h"
#include "Geometry/Records/interface/TrackerTopologyRcd.h"

#include "RecoTracker/TkSeedGenerator/interface/SeedCreatorFactory.h"

Expand Down Expand Up @@ -110,7 +111,7 @@ const OrderedSeedingHits& QuadrupletSeedMerger::mergeTriplets( const OrderedSeed

//Retrieve tracker topology from geometry
edm::ESHandle<TrackerTopology> tTopoHand;
es.get<IdealGeometryRecord>().get(tTopoHand);
es.get<TrackerTopologyRcd>().get(tTopoHand);
const TrackerTopology *tTopo=tTopoHand.product();

// the list of layers on which quadruplets should be formed
Expand Down
4 changes: 2 additions & 2 deletions RecoTracker/DebugTools/plugins/TestHits.cc
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

#include "TrackingTools/TrackFitters/interface/TrajectoryFitter.h"
#include "DataFormats/TrackerCommon/interface/TrackerTopology.h"
#include "Geometry/Records/interface/IdealGeometryRecord.h"
#include "Geometry/Records/interface/TrackerTopologyRcd.h"

typedef TrajectoryStateOnSurface TSOS;
typedef TransientTrackingRecHit::ConstRecHitPointer CTTRHp;
Expand Down Expand Up @@ -189,7 +189,7 @@ void TestHits::analyze(const edm::Event& iEvent, const edm::EventSetup& iSetup)
{
//Retrieve tracker topology from geometry
edm::ESHandle<TrackerTopology> tTopo;
iSetup.get<IdealGeometryRecord>().get(tTopo);
iSetup.get<TrackerTopologyRcd>().get(tTopo);


LogTrace("TestHits") << "\nnew event";
Expand Down
4 changes: 2 additions & 2 deletions RecoTracker/DebugTools/plugins/TestOutliers.cc
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
#include "Geometry/Records/interface/TrackerDigiGeometryRecord.h"
#include "Geometry/CommonDetUnit/interface/GeomDet.h"
#include "DataFormats/TrackerCommon/interface/TrackerTopology.h"
#include "Geometry/Records/interface/IdealGeometryRecord.h"
#include "Geometry/Records/interface/TrackerTopologyRcd.h"
#include "DataFormats/GeometryCommonDetAlgo/interface/ErrorFrameTransformer.h"
#include "CommonTools/RecoAlgos/interface/RecoTrackSelector.h"
#include "DataFormats/BeamSpot/interface/BeamSpot.h"
Expand Down Expand Up @@ -160,7 +160,7 @@ void
TestOutliers::analyze(const edm::Event& iEvent, const edm::EventSetup& iSetup) {
//Retrieve tracker topology from geometry
edm::ESHandle<TrackerTopology> tTopo;
iSetup.get<IdealGeometryRecord>().get(tTopo);
iSetup.get<TrackerTopologyRcd>().get(tTopo);



Expand Down
4 changes: 2 additions & 2 deletions RecoTracker/DebugTools/plugins/TestSmoothHits.cc
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

#include "TrackingTools/TrackFitters/interface/TrajectoryFitter.h"
#include "DataFormats/TrackerCommon/interface/TrackerTopology.h"
#include "Geometry/Records/interface/IdealGeometryRecord.h"
#include "Geometry/Records/interface/TrackerTopologyRcd.h"

typedef TrajectoryStateOnSurface TSOS;
typedef TransientTrackingRecHit::ConstRecHitPointer CTTRHp;
Expand Down Expand Up @@ -190,7 +190,7 @@ void TestSmoothHits::analyze(const edm::Event& iEvent, const edm::EventSetup& iS
{
//Retrieve tracker topology from geometry
edm::ESHandle<TrackerTopology> tTopo;
iSetup.get<IdealGeometryRecord>().get(tTopo);
iSetup.get<TrackerTopologyRcd>().get(tTopo);


LogTrace("TestSmoothHits") << "new event" << std::endl;
Expand Down
4 changes: 2 additions & 2 deletions RecoTracker/DebugTools/plugins/TestTrackHits.cc
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include <TDirectory.h>

#include "DataFormats/TrackerCommon/interface/TrackerTopology.h"
#include "Geometry/Records/interface/IdealGeometryRecord.h"
#include "Geometry/Records/interface/TrackerTopologyRcd.h"
#include "DataFormats/BeamSpot/interface/BeamSpot.h"

typedef TrajectoryStateOnSurface TSOS;
Expand Down Expand Up @@ -250,7 +250,7 @@ void TestTrackHits::analyze(const edm::Event& iEvent, const edm::EventSetup& iSe
{
//Retrieve tracker topology from geometry
edm::ESHandle<TrackerTopology> tTopo;
iSetup.get<IdealGeometryRecord>().get(tTopo);
iSetup.get<TrackerTopologyRcd>().get(tTopo);


LogDebug("TestTrackHits") << "new event" ;
Expand Down
2 changes: 0 additions & 2 deletions RecoTracker/DebugTools/src/FixTrackHitPattern.cc
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
#include "DataFormats/SiStripDetId/interface/StripSubdetector.h"
#include "DataFormats/SiPixelDetId/interface/PixelSubdetector.h"
//#include "DataFormats/SiStripDetId/interface/SiStripDetId.h"
#include "DataFormats/TrackerCommon/interface/TrackerTopology.h"
#include "Geometry/Records/interface/IdealGeometryRecord.h"

#include "TrackingTools/KalmanUpdators/interface/Chi2MeasurementEstimator.h"
#include "TrackingTools/GeomPropagators/interface/AnalyticalPropagator.h"
Expand Down
2 changes: 0 additions & 2 deletions RecoTracker/DebugTools/src/GetTrackTrajInfo.cc
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
#include "DataFormats/SiStripDetId/interface/StripSubdetector.h"
#include "DataFormats/SiPixelDetId/interface/PixelSubdetector.h"
//#include "DataFormats/SiStripDetId/interface/SiStripDetId.h"
#include "DataFormats/TrackerCommon/interface/TrackerTopology.h"
#include "Geometry/Records/interface/IdealGeometryRecord.h"

#include "TrackingTools/KalmanUpdators/interface/Chi2MeasurementEstimator.h"
#include "TrackingTools/GeomPropagators/interface/AnalyticalPropagator.h"
Expand Down
3 changes: 2 additions & 1 deletion RecoTracker/FinalTrackSelectors/plugins/TrackMerger.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@


#include "DataFormats/TrackerCommon/interface/TrackerTopology.h"
#include "Geometry/Records/interface/TrackerTopologyRcd.h"

#include "TrackingTools/TrajectoryState/interface/TrajectoryStateTransform.h"
#include "TrackingTools/TrajectoryState/interface/TrajectoryStateOnSurface.h"
Expand Down Expand Up @@ -32,7 +33,7 @@ void TrackMerger::init(const edm::EventSetup &iSetup)
iSetup.get<TrackerDigiGeometryRecord>().get(theGeometry);
iSetup.get<IdealMagneticFieldRecord>().get(theMagField);
iSetup.get<TransientRecHitRecord>().get(theBuilderName,theBuilder);
iSetup.get<IdealGeometryRecord>().get(theTrkTopo);
iSetup.get<TrackerTopologyRcd>().get(theTrkTopo);
}

TrackCandidate TrackMerger::merge(const reco::Track &inner, const reco::Track &outer) const
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include "TrackingTools/TrajectoryState/interface/TrajectoryStateOnSurface.h"

#include "DataFormats/TrackerCommon/interface/TrackerTopology.h"
#include "Geometry/Records/interface/IdealGeometryRecord.h"
#include "Geometry/Records/interface/TrackerTopologyRcd.h"

//for S/N cut
#include "DataFormats/TrackerRecHit2D/interface/ProjectedSiStripRecHit2D.h"
Expand Down Expand Up @@ -594,7 +594,7 @@ void TrackerTrackHitFilter::produceFromTrajectory(const edm::EventSetup &iSetup,

//Retrieve tracker topology from geometry
edm::ESHandle<TrackerTopology> tTopoHand;
iSetup.get<IdealGeometryRecord>().get(tTopoHand);
iSetup.get<TrackerTopologyRcd>().get(tTopoHand);
const TrackerTopology *tTopo=tTopoHand.product();


Expand Down Expand Up @@ -704,7 +704,7 @@ int TrackerTrackHitFilter::checkHit(const edm::EventSetup &iSetup,const DetId &

//Retrieve tracker topology from geometry
edm::ESHandle<TrackerTopology> tTopoHand;
iSetup.get<IdealGeometryRecord>().get(tTopoHand);
iSetup.get<TrackerTopologyRcd>().get(tTopoHand);
const TrackerTopology *tTopo=tTopoHand.product();

int hitresult=0;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#include "RecoTracker/GeometryESProducer/plugins/TrackerRecoGeometryESProducer.h"
#include "Geometry/TrackerNumberingBuilder/interface/GeometricDet.h"
#include "Geometry/TrackerGeometryBuilder/interface/TrackerGeometry.h"
#include "Geometry/Records/interface/IdealGeometryRecord.h"
#include "Geometry/Records/interface/TrackerDigiGeometryRecord.h"
#include "RecoTracker/TkDetLayers/interface/GeometricSearchTrackerBuilder.h"
#include "DataFormats/TrackerCommon/interface/TrackerTopology.h"
#include "Geometry/Records/interface/TrackerTopologyRcd.h"

#include "FWCore/Framework/interface/EventSetup.h"
#include "FWCore/Framework/interface/ESHandle.h"
Expand Down Expand Up @@ -39,7 +39,7 @@ TrackerRecoGeometryESProducer::produce(const TrackerRecoGeometryRecord & iRecord
iRecord.getRecord<TrackerDigiGeometryRecord>().get( geoLabel, tG );

edm::ESHandle<TrackerTopology> tTopoHand;
iRecord.getRecord<IdealGeometryRecord>().get(tTopoHand);
iRecord.getRecord<TrackerTopologyRcd>().get(tTopoHand);
const TrackerTopology *tTopo=tTopoHand.product();

GeometricSearchTrackerBuilder builder;
Expand Down
4 changes: 2 additions & 2 deletions RecoTracker/Record/interface/TrackerRecoGeometryRecord.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
#include "FWCore/Framework/interface/EventSetupRecordImplementation.h"
#include "FWCore/Framework/interface/DependentRecordImplementation.h"
#include "Geometry/Records/interface/TrackerDigiGeometryRecord.h"
#include "Geometry/Records/interface/IdealGeometryRecord.h"
#include "Geometry/Records/interface/TrackerTopologyRcd.h"

#include "boost/mpl/vector.hpp"


class TrackerRecoGeometryRecord : public edm::eventsetup::DependentRecordImplementation<TrackerRecoGeometryRecord,
boost::mpl::vector<IdealGeometryRecord,TrackerDigiGeometryRecord> > {};
boost::mpl::vector<TrackerTopologyRcd,TrackerDigiGeometryRecord> > {};

#endif

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include "RecoTracker/SpecialSeedGenerators/interface/CtfSpecialSeedGenerator.h"
#include "DataFormats/TrackerCommon/interface/TrackerTopology.h"
#include "Geometry/Records/interface/IdealGeometryRecord.h"
#include "Geometry/Records/interface/TrackerTopologyRcd.h"
#include "DataFormats/GeometrySurface/interface/RectangularPlaneBounds.h"
#include "TrackingTools/GeomPropagators/interface/StraightLinePlaneCrossing.h"

Expand Down Expand Up @@ -204,7 +204,7 @@ bool CtfSpecialSeedGenerator::buildSeeds(const edm::EventSetup& iSetup,
bool CtfSpecialSeedGenerator::preliminaryCheck(const SeedingHitSet& shs, const edm::EventSetup &es ){

edm::ESHandle<TrackerTopology> tTopo;
es.get<IdealGeometryRecord>().get(tTopo);
es.get<TrackerTopologyRcd>().get(tTopo);

std::vector<std::pair<unsigned int, unsigned int> > vSubdetLayer;
//std::vector<std::string> vSeedLayerNames;
Expand Down
4 changes: 2 additions & 2 deletions RecoTracker/SpecialSeedGenerators/src/MuonReSeeder.cc
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#include "TrackingTools/PatternTools/interface/TrajectoryMeasurement.h"
#include "CommonTools/Utils/interface/StringCutObjectSelector.h"
#include "DataFormats/TrackerCommon/interface/TrackerTopology.h"
#include "Geometry/Records/interface/IdealGeometryRecord.h"
#include "Geometry/Records/interface/TrackerTopologyRcd.h"


class MuonReSeeder : public edm::stream::EDProducer<> {
Expand Down Expand Up @@ -79,7 +79,7 @@ MuonReSeeder::produce(edm::Event & iEvent, const edm::EventSetup & iSetup) {

//Retrieve tracker topology from geometry
edm::ESHandle<TrackerTopology> tTopo;
iSetup.get<IdealGeometryRecord>().get(tTopo);
iSetup.get<TrackerTopologyRcd>().get(tTopo);

auto_ptr<vector<TrajectorySeed> > out(new vector<TrajectorySeed>());
unsigned int nsrc = src->size();
Expand Down
4 changes: 2 additions & 2 deletions RecoTracker/TkNavigation/test/NavigationSchoolAnalyzer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#include <FWCore/MessageLogger/interface/MessageLogger.h>

#include "DataFormats/TrackerCommon/interface/TrackerTopology.h"
#include "Geometry/Records/interface/IdealGeometryRecord.h"
#include "Geometry/Records/interface/TrackerTopologyRcd.h"
#include "DataFormats/MuonDetId/interface/RPCDetId.h"
#include "DataFormats/MuonDetId/interface/CSCDetId.h"
#include "DataFormats/MuonDetId/interface/DTChamberId.h"
Expand Down Expand Up @@ -268,7 +268,7 @@ void NavigationSchoolAnalyzer::analyze(const edm::Event& iEvent, const edm::Even

void NavigationSchoolAnalyzer::beginRun(edm::Run & run, const edm::EventSetup& iSetup) {
edm::ESHandle<TrackerTopology> tTopoHandle;
iSetup.get<IdealGeometryRecord>().get(tTopoHandle);
iSetup.get<TrackerTopologyRcd>().get(tTopoHandle);
tTopo = tTopoHandle.product();

//get the navigation school
Expand Down
Loading

0 comments on commit 3d60851

Please sign in to comment.