Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prepare for concurrent IOVs, SkippingLayerCosmicNavigationSchoolESPro… #24669

Merged
merged 1 commit into from Sep 28, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
25 changes: 10 additions & 15 deletions RecoTracker/TkNavigation/plugins/CosmicNavigationSchool.cc
Expand Up @@ -353,33 +353,28 @@ SkippingLayerCosmicNavigationSchool::SkippingLayerCosmicNavigationSchool(const G
class dso_hidden SkippingLayerCosmicNavigationSchoolESProducer final : public edm::ESProducer {
public:
SkippingLayerCosmicNavigationSchoolESProducer(const edm::ParameterSet& iConfig) {
theNavigationPSet = iConfig;
theNavigationSchoolName = theNavigationPSet.getParameter<std::string>("ComponentName");
//the following line is needed to tell the framework what
// data is being produced
setWhatProduced(this, theNavigationSchoolName);

}

theNavigationPSet = iConfig;
theNavigationSchoolName = theNavigationPSet.getParameter<std::string>("ComponentName");
//the following line is needed to tell the framework what
// data is being produced
setWhatProduced(this, theNavigationSchoolName);
}

~SkippingLayerCosmicNavigationSchoolESProducer() override{}

typedef std::shared_ptr<NavigationSchool> ReturnType;

using ReturnType = std::unique_ptr<NavigationSchool>;

ReturnType produce(const NavigationSchoolRecord&);

// ----------member data ---------------------------
edm::ParameterSet theNavigationPSet;
std::string theNavigationSchoolName;


};

SkippingLayerCosmicNavigationSchoolESProducer::ReturnType
SkippingLayerCosmicNavigationSchoolESProducer::produce(const NavigationSchoolRecord& iRecord) {

SkippingLayerCosmicNavigationSchoolESProducer::ReturnType SkippingLayerCosmicNavigationSchoolESProducer::produce(const NavigationSchoolRecord& iRecord){
using namespace edm::es;
std::shared_ptr<NavigationSchool> theNavigationSchool ;
std::unique_ptr<NavigationSchool> theNavigationSchool ;

// get the field
edm::ESHandle<MagneticField> field;
Expand Down