Skip to content

Commit 4671911

Browse files
committed
make ShallowTree an edm::one::EDAnalyzer
1 parent 2c77c10 commit 4671911

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

CalibTracker/SiStripCommon/plugins/ShallowTree.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
#include <TBranch.h>
99

1010
ShallowTree::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() {}

CalibTracker/SiStripCommon/plugins/ShallowTree.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
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"
@@ -30,11 +30,9 @@
3030
#include <vector>
3131
#include <TTree.h>
3232

33-
class ShallowTree : public edm::EDAnalyzer {
33+
class ShallowTree : public edm::one::EDAnalyzer<edm::one::SharedResources> {
3434
private:
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) {

0 commit comments

Comments
 (0)