Skip to content

Commit

Permalink
switch to ESInputTag
Browse files Browse the repository at this point in the history
  • Loading branch information
ahinzmann committed Jun 13, 2014
1 parent 651f32c commit e24e724
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Expand Up @@ -15,7 +15,7 @@ class PixelCPEGenericESProducer: public edm::ESProducer{
private:
boost::shared_ptr<PixelClusterParameterEstimator> cpe_;
edm::ParameterSet pset_;
std::string magname_;
edm::ESInputTag magname_;
bool useLAWidthFromDB_;
bool useLAAlignmentOffsets_;
};
Expand Down
Expand Up @@ -30,8 +30,8 @@ PixelCPEGenericESProducer::PixelCPEGenericESProducer(const edm::ParameterSet & p
// Use Alignment LA-offset
useLAAlignmentOffsets_ = p.existsAs<bool>("useLAAlignmentOffsets")?
p.getParameter<bool>("useLAAlignmentOffsets"):false;
magname_ = p.existsAs<std::string>("MagneticFieldRecord")?
p.getParameter<std::string>("MagneticFieldRecord"):"";
magname_ = p.existsAs<edm::ESInputTag>("MagneticFieldRecord")?
p.getParameter<edm::ESInputTag>("MagneticFieldRecord"):edm::ESInputTag("");

pset_ = p;
setWhatProduced(this,myname);
Expand Down
Expand Up @@ -56,7 +56,7 @@
useLAAlignmentOffsets = cms.bool(False),

#MagneticFieldRecord: e.g. "" or "ParabolicMF"
MagneticFieldRecord = cms.string(""),
MagneticFieldRecord = cms.ESInputTag(""),
)


0 comments on commit e24e724

Please sign in to comment.