Skip to content

Commit

Permalink
compiles but RecoEgamma/EgammaPhotonAlgos/src/ConversionSeedFinder.cc
Browse files Browse the repository at this point in the history
  • Loading branch information
VinInn committed Apr 30, 2014
1 parent 92ea5d8 commit a92ab15
Show file tree
Hide file tree
Showing 31 changed files with 31 additions and 506 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@

#include "TrackingTools/TrajectoryState/interface/TrajectoryStateTransform.h"
#include "TrackingTools/PatternTools/interface/TrajectoryStateUpdator.h"
#include "TrackingTools/DetLayers/interface/NavigationSetter.h"

#include "RecoTracker/TransientTrackingRecHit/interface/TSiPixelRecHit.h"
#include "RecoTracker/TkDetLayers/interface/GeometricSearchTracker.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
#include "RecoTracker/MeasurementDet/interface/MeasurementTracker.h"
#include "TrackingTools/TransientTrack/interface/TransientTrack.h"
#include "TrackingTools/MeasurementDet/interface/LayerMeasurements.h"
#include "TrackingTools/DetLayers/interface/NavigationSetter.h"
#include "TrackingTools/DetLayers/interface/NavigationSchool.h"
#include "TrackingTools/TransientTrack/interface/TransientTrackBuilder.h"
#include "RecoTracker/TkNavigation/interface/SimpleNavigationSchool.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,6 @@ TrackingRecHitRefProd rHits = evt.getRefBeforePut<TrackingRecHitCollection>();
{
edm::Handle<MeasurementTrackerEvent> mte;
evt.getByLabel(edm::InputTag("MeasurementTrackerEvent"), mte);
// NavigationSetter setter( *theSchool );
setSecondHitPattern(theTraj,track,thePropagator,&*mte);
}
//==============================================================
Expand Down
1 change: 0 additions & 1 deletion RecoMuon/GlobalTrackingTools/interface/DynamicTruncation.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
#include "TrackingTools/PatternTools/interface/TrajectoryStateUpdator.h"
#include "RecoMuon/DetLayers/interface/MuonDetLayerGeometry.h"
#include "RecoTracker/Record/interface/NavigationSchoolRecord.h"
#include "TrackingTools/DetLayers/interface/NavigationSetter.h"
#include "RecoMuon/TrackingTools/interface/MuonServiceProxy.h"
#include "RecoMuon/Navigation/interface/DirectMuonNavigation.h"
#include "Alignment/MuonAlignment/interface/MuonAlignment.h"
Expand Down
1 change: 0 additions & 1 deletion RecoMuon/GlobalTrackingTools/src/DynamicTruncation.cc
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
#include "RecoMuon/DetLayers/interface/MuonDetLayerGeometry.h"
#include "RecoMuon/Records/interface/MuonRecoGeometryRecord.h"
#include "RecoMuon/Navigation/interface/MuonNavigationSchool.h"
#include "TrackingTools/DetLayers/interface/NavigationSetter.h"
#include "RecoMuon/Navigation/interface/MuonNavigationPrinter.h"
#include "TrackingTools/TrajectoryState/interface/TrajectoryStateTransform.h"
#include "RecoTracker/Record/interface/NavigationSchoolRecord.h"
Expand Down
2 changes: 0 additions & 2 deletions RecoMuon/L3TrackFinder/src/L3MuonTrajectoryBuilder.cc
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,6 @@
#include "RecoTracker/TkTrackingRegions/interface/RectangularEtaPhiTrackingRegion.h"
#include "TrackingTools/TrajectoryCleaning/interface/TrajectoryCleanerBySharedHits.h"

#include "TrackingTools/DetLayers/interface/NavigationSetter.h"

#include "DataFormats/BeamSpot/interface/BeamSpot.h"
#include "DataFormats/VertexReco/interface/Vertex.h"
#include "DataFormats/VertexReco/interface/VertexFwd.h"
Expand Down
3 changes: 0 additions & 3 deletions RecoMuon/Navigation/test/MuonNavigationTest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
#include "RecoMuon/Navigation/interface/MuonNavigationSchool.h"
//#include "RecoMuon/Navigation/interface/MuonTkNavigationSchool.h"
#include "RecoMuon/Records/interface/MuonRecoGeometryRecord.h"
// #include "TrackingTools/DetLayers/interface/NavigationSetter.h"
#include "RecoMuon/Navigation/interface/MuonNavigationPrinter.h"
#include "RecoMuon/DetLayers/interface/MuonDetLayerGeometry.h"
//#include "RecoTracker/TkDetLayers/interface/GeometricSearchTracker.h"
Expand Down Expand Up @@ -66,7 +65,6 @@ MuonNavigationTest::analyze( const edm::Event& iEvent, const edm::EventSetup& iS

if ( testMuon ) {
MuonNavigationSchool school(mm);
// NavigationSetter setter(school);
MuonNavigationPrinter* printer = new MuonNavigationPrinter(mm, school );
delete printer;
}
Expand All @@ -82,7 +80,6 @@ MuonNavigationTest::analyze( const edm::Event& iEvent, const edm::EventSetup& iS
const MagneticField * field(&(*theMF));
MuonTkNavigationSchool school(mm,tt,field);
NavigationSetter setter(school);
MuonNavigationPrinter* printer = new MuonNavigationPrinter(mm, tt);
delete printer;
}
Expand Down
1 change: 0 additions & 1 deletion RecoMuon/TrackingTools/src/MuonServiceProxy.cc
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"

#include "TrackingTools/DetLayers/interface/NavigationSetter.h"

// C++ Headers
#include <map>
Expand Down
1 change: 0 additions & 1 deletion RecoTracker/CkfPattern/interface/CkfTrackCandidateMaker.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
#include "TrackingTools/TrajectoryCleaning/interface/TrajectoryCleaner.h"

#include "MagneticField/Engine/interface/MagneticField.h"
#include "TrackingTools/DetLayers/interface/NavigationSetter.h"
#include "TrackingTools/DetLayers/interface/NavigationSchool.h"
#include "RecoTracker/TkNavigation/interface/SimpleNavigationSchool.h"
#include "RecoTracker/TkDetLayers/interface/GeometricSearchTracker.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
#include "TrackingTools/TrajectoryCleaning/interface/TrajectoryCleaner.h"

#include "MagneticField/Engine/interface/MagneticField.h"
#include "TrackingTools/DetLayers/interface/NavigationSetter.h"
#include "TrackingTools/DetLayers/interface/NavigationSchool.h"
#include "RecoTracker/TkNavigation/interface/SimpleNavigationSchool.h"
#include "RecoTracker/TkDetLayers/interface/GeometricSearchTracker.h"
Expand Down
1 change: 0 additions & 1 deletion RecoTracker/CkfPattern/interface/CkfTrajectoryMaker.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
#include "TrackingTools/TrajectoryCleaning/interface/TrajectoryCleaner.h"

#include "MagneticField/Engine/interface/MagneticField.h"
#include "TrackingTools/DetLayers/interface/NavigationSetter.h"
#include "TrackingTools/DetLayers/interface/NavigationSchool.h"
#include "RecoTracker/TkNavigation/interface/SimpleNavigationSchool.h"
#include "RecoTracker/TkDetLayers/interface/GeometricSearchTracker.h"
Expand Down
2 changes: 2 additions & 0 deletions RecoTracker/DebugTools/interface/CkfDebugger.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ class TrajectoryStateOnSurface;
class MagneticField;
class Chi2MeasurementEstimator;
class Propagator;
class NavigationSchool;

typedef TransientTrackingRecHit::ConstRecHitPointer CTTRHp;

Expand Down Expand Up @@ -104,6 +105,7 @@ class CkfDebugger {
const MeasurementTracker* theMeasurementTracker;
const TransientTrackingRecHitBuilder* theTTRHBuilder;
const TrackerTopology *theTopo;
NavigationSchool const * theNavSchool;

std::map<unsigned int, std::vector<PSimHit*> > idHitsMap;

Expand Down
7 changes: 6 additions & 1 deletion RecoTracker/DebugTools/plugins/CkfDebugger.cc
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
#include "DataFormats/GeometryCommonDetAlgo/interface/MeasurementVector.h"
#include "RecoTracker/MeasurementDet/interface/MeasurementTracker.h"
#include "MagneticField/Records/interface/IdealMagneticFieldRecord.h"
#include "TrackingTools/DetLayers/interface/NavigationSchool.h"
#include "RecoTracker/Record/interface/NavigationSchoolRecord.h"
#include "RecoTracker/DebugTools/interface/TSOSFromSimHitFactory.h"
#include "TrackingTools/MeasurementDet/interface/MeasurementDet.h"
#include "TrackingTools/MaterialEffects/interface/PropagatorWithMaterial.h"
Expand Down Expand Up @@ -51,6 +53,9 @@ CkfDebugger::CkfDebugger( edm::EventSetup const & es ):totSeeds(0)
es.get<IdealGeometryRecord>().get(tTopoHand);
theTopo=tTopoHand.product();

edm::ESHandle<NavigationSchool> nav;
es.get<NavigationSchoolRecord>().get("SimpleNavigationSchool", nav);
theNavSchool = nav.product();

for (int i=0; i!=17; i++){
dump.push_back(0);
Expand Down Expand Up @@ -903,7 +908,7 @@ int CkfDebugger::analyseRecHitNotFound(const Trajectory& traj, CTTRHp correctRec
LogTrace("CkfDebugger") << "correct layer id=" << correctLayId ;

TSOS currentState( traj.lastMeasurement().updatedState() );
std::vector<const DetLayer*> nl = traj.lastLayer()->nextLayers( *currentState.freeState(),traj.direction() );
std::vector<const DetLayer*> nl = theNavSchool->nextLayers(*traj.lastLayer(),*currentState.freeState(),traj.direction() );
if (nl.empty()) {
edm::LogVerbatim("CkfDebugger") << "no compatible layers" ;
no_layer++;return 2;
Expand Down
4 changes: 2 additions & 2 deletions RecoTracker/DebugTools/src/FixTrackHitPattern.cc
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

#include "TrackingTools/DetLayers/interface/NavigationSchool.h"
#include "RecoTracker/Record/interface/NavigationSchoolRecord.h"
#include "TrackingTools/DetLayers/interface/NavigationSetter.h"


#include "TrackingTools/Records/interface/TransientTrackRecord.h"
#include "DataFormats/Math/interface/deltaPhi.h"
Expand All @@ -42,7 +42,7 @@ FixTrackHitPattern::Result FixTrackHitPattern::analyze(const edm::EventSetup& iS
// This is also needed to extrapolate amongst the tracker layers.
edm::ESHandle<NavigationSchool> theSchool;
iSetup.get<NavigationSchoolRecord>().get("SimpleNavigationSchool",theSchool);
NavigationSetter junk(*theSchool);
// NavigationSetter junk(*theSchool); FIXME FIXME (or not...)

// This is needed to determine which sensors are functioning.
edm::ESHandle<MeasurementTracker> measTk;
Expand Down
3 changes: 1 addition & 2 deletions RecoTracker/DebugTools/src/GetTrackTrajInfo.cc
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

#include "TrackingTools/DetLayers/interface/NavigationSchool.h"
#include "RecoTracker/Record/interface/NavigationSchoolRecord.h"
#include "TrackingTools/DetLayers/interface/NavigationSetter.h"

#include "TrackingTools/Records/interface/TransientTrackRecord.h"
#include "DataFormats/Math/interface/deltaPhi.h"
Expand All @@ -38,7 +37,7 @@ std::vector< GetTrackTrajInfo::Result > GetTrackTrajInfo::analyze(const edm::Eve
// This is also needed to extrapolate amongst the tracker layers.
edm::ESHandle<NavigationSchool> theSchool;
iSetup.get<NavigationSchoolRecord>().get("SimpleNavigationSchool",theSchool);
NavigationSetter junk(*theSchool);
// NavigationSetter junk(*theSchool); // FIXME FIXME

// Get the magnetic field and use it to define a propagator for extrapolating the track trajectory.
edm::ESHandle<MagneticField> magField;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
#include "RecoTracker/NuclearSeedGenerator/interface/SeedFromNuclearInteraction.h"
#include "RecoTracker/NuclearSeedGenerator/interface/TangentHelix.h"

#include "TrackingTools/DetLayers/interface/NavigationSetter.h"
#include "TrackingTools/DetLayers/interface/NavigationSchool.h"
#include "RecoTracker/TkNavigation/interface/SimpleNavigationSchool.h"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ NuclearSeedsEDProducer::produce(edm::Event& iEvent, const edm::EventSetup& iSetu
edm::Handle<MeasurementTrackerEvent> data;
iEvent.getByLabel(edm::InputTag("MeasurementTrackerEvent"), data);

NavigationSetter setter( *(theNuclearInteractionFinder->nav()) );
// NavigationSetter setter( *(theNuclearInteractionFinder->nav()) ); why???

std::vector<std::pair<int, int> > assocPair;
int i=0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ NuclearInteractionFinder::findMeasurementsFromTSOS(const TSOS& currentState, Det
vector<const DetLayer*> nl;

if(lastLayer) {
nl = lastLayer->nextLayers( *currentState.freeState(), alongMomentum);
nl = theNavigationSchool->nextLayers(*lastLayer,*currentState.freeState(), alongMomentum);
}
else {
edm::LogError("NuclearInteractionFinder") << "In findCompatibleMeasurements : lastLayer not accessible";
Expand Down
29 changes: 0 additions & 29 deletions RecoTracker/TkNavigation/interface/CfgNavigationSchool.h

This file was deleted.

8 changes: 5 additions & 3 deletions RecoTracker/TkNavigation/interface/LayerCollector.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#include "TrackingTools/DetLayers/interface/ForwardDetLayer.h"



class NavigationSchool;

class LayerCollector {

Expand All @@ -27,10 +27,12 @@ class LayerCollector {

public:

LayerCollector(const Propagator* aPropagator,
LayerCollector(NavigationSchool const * aSchool,
const Propagator* aPropagator,
const StartingLayerFinder* aFinder,
float dr,
float dz) :
theSchool(aSchool),
thePropagator(aPropagator),
theStartingLayerFinder(aFinder),
theDeltaR(dr),
Expand All @@ -48,7 +50,7 @@ class LayerCollector {
float deltaZ() const {return theDeltaZ;}

private:

NavigationSchool const * theSchool;
const Propagator* thePropagator;
const StartingLayerFinder* theStartingLayerFinder;
float theDeltaR;
Expand Down
26 changes: 0 additions & 26 deletions RecoTracker/TkNavigation/plugins/CfgNavigationSchoolESProducer.cc

This file was deleted.

19 changes: 0 additions & 19 deletions RecoTracker/TkNavigation/plugins/CfgNavigationSchoolESProducer.h

This file was deleted.

2 changes: 0 additions & 2 deletions RecoTracker/TkNavigation/plugins/modules.cc
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,5 @@ DEFINE_EDM_PLUGIN(NavigationSchoolFactory, BeamHaloNavigationSchool, "BeamHaloNa

#include "RecoTracker/TkNavigation/plugins/NavigationSchoolESProducer.h"
#include "RecoTracker/TkNavigation/plugins/SkippingLayerCosmicNavigationSchoolESProducer.h"
#include "RecoTracker/TkNavigation/plugins/CfgNavigationSchoolESProducer.h"
DEFINE_FWK_EVENTSETUP_MODULE(NavigationSchoolESProducer);
DEFINE_FWK_EVENTSETUP_MODULE(SkippingLayerCosmicNavigationSchoolESProducer);
DEFINE_FWK_EVENTSETUP_MODULE(CfgNavigationSchoolESProducer);
Loading

0 comments on commit a92ab15

Please sign in to comment.