File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed
CalibTracker/SiStripCommon/plugins Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change 88#include < TBranch.h>
99
1010ShallowTree::ShallowTree (const edm::ParameterSet& iConfig) {
11+ usesResource (TFileService::kSharedResource );
12+
1113 // int compSettings= iConfig.getParameter<int>("CompressionSettings",-1);
1214 int compSettings = iConfig.getUntrackedParameter <int >(" CompressionSettings" , -1 );
1315 if (compSettings > 0 )
@@ -194,5 +196,3 @@ ShallowTree::TypedBranchConnector<T>::TypedBranchConnector(edm::BranchDescriptio
194196 tree->Branch (pin.c_str (), &object_ptr_);
195197 } // vector<type>
196198}
197-
198- void ShallowTree::beginJob () {}
Original file line number Diff line number Diff line change 1919 */
2020
2121#include " FWCore/Framework/interface/Frameworkfwd.h"
22- #include " FWCore/Framework/interface/EDAnalyzer.h"
22+ #include " FWCore/Framework/interface/one/ EDAnalyzer.h"
2323#include " FWCore/Framework/interface/Event.h"
2424#include " FWCore/ParameterSet/interface/ParameterSet.h"
2525#include " FWCore/ServiceRegistry/interface/Service.h"
3030#include < vector>
3131#include < TTree.h>
3232
33- class ShallowTree : public edm ::EDAnalyzer {
33+ class ShallowTree : public edm ::one:: EDAnalyzer<edm::one::SharedResources> {
3434private:
35- void beginJob () override ;
3635 void analyze (const edm::Event&, const edm::EventSetup&) override ;
37- void endJob () override {}
3836
3937 template <class T >
4038 void eat (edm::BranchDescription const * desc) {
You can’t perform that action at this time.
0 commit comments