Skip to content

Commit

Permalink
delete ESInputTag (it makes crashing some workflow because of convers…
Browse files Browse the repository at this point in the history
…ionTrackCandidates (SimpleNavigationSchool) and hltGetConditions (MaterialPropagatorParabolicMF) )
  • Loading branch information
mtosi committed Feb 12, 2014
1 parent 7ad6cae commit 48a9518
Show file tree
Hide file tree
Showing 9 changed files with 27 additions and 21 deletions.
5 changes: 3 additions & 2 deletions RecoTracker/CkfPattern/src/CkfTrackCandidateMakerBase.cc
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,9 @@ namespace cms{
std::string mfName = "";
if (conf_.exists("SimpleMagneticField"))
mfName = conf_.getParameter<std::string>("SimpleMagneticField");
edm::ESInputTag mfESInputTag(mfName);
es.get<IdealMagneticFieldRecord>().get(mfESInputTag,theMagField );
es.get<IdealMagneticFieldRecord>().get(mfName,theMagField );
// edm::ESInputTag mfESInputTag(mfName);
// es.get<IdealMagneticFieldRecord>().get(mfESInputTag,theMagField );

if (!theInitialState){
// constructor uses the EventSetup, it must be in the setEventSetup were it has a proper value.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ NavigationSchoolESProducer::ReturnType CfgNavigationSchoolESProducer::produce(co
std::string mfName = "";
if (theNavigationPSet.exists("SimpleMagneticField"))
mfName = theNavigationPSet.getParameter<std::string>("SimpleMagneticField");
edm::ESInputTag mfESInputTag(mfName);
iRecord.getRecord<IdealMagneticFieldRecord>().get(mfESInputTag,field);
iRecord.getRecord<IdealMagneticFieldRecord>().get(mfName,field);
// edm::ESInputTag mfESInputTag(mfName);
// iRecord.getRecord<IdealMagneticFieldRecord>().get(mfESInputTag,field);

//get the geometricsearch tracker geometry
edm::ESHandle<GeometricSearchTracker> geometricSearchTracker;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,9 @@ NavigationSchoolESProducer::produce(const NavigationSchoolRecord& iRecord)
std::string mfName = "";
if (theNavigationPSet.exists("SimpleMagneticField"))
mfName = theNavigationPSet.getParameter<std::string>("SimpleMagneticField");
edm::ESInputTag mfESInputTag(mfName);
iRecord.getRecord<IdealMagneticFieldRecord>().get(mfESInputTag,field);
iRecord.getRecord<IdealMagneticFieldRecord>().get(mfName,field);
// edm::ESInputTag mfESInputTag(mfName);
// iRecord.getRecord<IdealMagneticFieldRecord>().get(mfESInputTag,field);

//get the geometricsearch tracker geometry
edm::ESHandle<GeometricSearchTracker> geometricSearchTracker;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,9 @@ void MultiHitGeneratorFromChi2::hitSets(const TrackingRegion& region,
es.get<TrackerDigiGeometryRecord>().get(tracker);
if (nomField<0 && bfield == 0) {
edm::ESHandle<MagneticField> bfield_h;
edm::ESInputTag mfESInputTag(mfName_);
// es.get<IdealMagneticFieldRecord>().get(mfName_, bfield_h);
es.get<IdealMagneticFieldRecord>().get(mfESInputTag, bfield_h);
es.get<IdealMagneticFieldRecord>().get(mfName_, bfield_h);
// edm::ESInputTag mfESInputTag(mfName_);
// es.get<IdealMagneticFieldRecord>().get(mfESInputTag, bfield_h);
bfield = bfield_h.product();
nomField = bfield->nominalValue();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ void SeedFromConsecutiveHitsCreator::init(const TrackingRegion & iregion,
// get propagator
es.get<TrackingComponentsRecord>().get(thePropagatorLabel, propagatorHandle);
// mag field
edm::ESInputTag mfESInputTag(mfName_);
// es.get<IdealMagneticFieldRecord>().get(mfName_, bfield);
es.get<IdealMagneticFieldRecord>().get(mfESInputTag, bfield);
es.get<IdealMagneticFieldRecord>().get(mfName_, bfield);
// edm::ESInputTag mfESInputTag(mfName_);
// es.get<IdealMagneticFieldRecord>().get(mfESInputTag, bfield);
nomField = bfield->nominalValue();
isBOFF = (0==nomField);
}
Expand Down
6 changes: 3 additions & 3 deletions RecoTracker/TrackProducer/interface/TrackProducerBase.icc
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ TrackProducerBase<T>::getFromES(const edm::EventSetup& setup,
if (useSimpleMF){
mfName = conf_.getParameter<std::string>("SimpleMagneticField");
}
edm::ESInputTag mfESInputTag(mfName);
// setup.get<IdealMagneticFieldRecord>().get(mfName, theMF);
setup.get<IdealMagneticFieldRecord>().get(mfESInputTag, theMF);
setup.get<IdealMagneticFieldRecord>().get(mfName, theMF);
// edm::ESInputTag mfESInputTag(mfName);
// setup.get<IdealMagneticFieldRecord>().get(mfESInputTag, theMF);

//
// get the fitter from the ES
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@ TrackingRecHitPropagatorESProducer::produce(const TrackingComponentsRecord& iRec
std::string mfName = "";
if (pset_.exists("SimpleMagneticField"))
mfName = pset_.getParameter<std::string>("SimpleMagneticField");
edm::ESInputTag mfESInputTag(mfName);
iRecord.getRecord<IdealMagneticFieldRecord>().get(mfESInputTag,magfield);
iRecord.getRecord<IdealMagneticFieldRecord>().get(mfName,magfield);
// edm::ESInputTag mfESInputTag(mfName);
// iRecord.getRecord<IdealMagneticFieldRecord>().get(mfESInputTag,magfield);
theHitPropagator= boost::shared_ptr<TrackingRecHitPropagator>(new TrackingRecHitPropagator(magfield.product()));
return theHitPropagator;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,9 @@ PropagatorWithMaterialESProducer::produce(const TrackingComponentsRecord & iReco
std::string mfName = "";
if (pset_.exists("SimpleMagneticField"))
mfName = pset_.getParameter<std::string>("SimpleMagneticField");
edm::ESInputTag mfESInputTag(mfName);
iRecord.getRecord<IdealMagneticFieldRecord>().get(mfESInputTag,magfield);
iRecord.getRecord<IdealMagneticFieldRecord>().get(mfName,magfield);
// edm::ESInputTag mfESInputTag(mfName);
// iRecord.getRecord<IdealMagneticFieldRecord>().get(mfESInputTag,magfield);
//fixme check that useRK is false when using SimpleMagneticField

PropagationDirection dir = alongMomentum;
Expand Down
5 changes: 3 additions & 2 deletions TrackingTools/Producers/src/AnalyticalPropagatorESProducer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,9 @@ AnalyticalPropagatorESProducer::produce(const TrackingComponentsRecord & iRecord
std::string mfName = "";
if (pset_.exists("SimpleMagneticField"))
mfName = pset_.getParameter<std::string>("SimpleMagneticField");
edm::ESInputTag mfESInputTag(mfName);
iRecord.getRecord<IdealMagneticFieldRecord>().get(mfESInputTag,magfield);
iRecord.getRecord<IdealMagneticFieldRecord>().get(mfName,magfield);
// edm::ESInputTag mfESInputTag(mfName);
// iRecord.getRecord<IdealMagneticFieldRecord>().get(mfESInputTag,magfield);

std::string pdir = pset_.getParameter<std::string>("PropagationDirection");
double dphiCut = pset_.getParameter<double>("MaxDPhi");
Expand Down

0 comments on commit 48a9518

Please sign in to comment.