-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,19 +4,20 @@ | |
#include <map> | ||
|
||
#include <memory> | ||
#include <FWCore/Framework/interface/global/EDAnalyzer.h> | ||
#include <FWCore/Framework/interface/stream/EDAnalyzer.h> | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
atishelmanch
Author
Owner
|
||
|
||
class Timestamp; | ||
|
||
class EcalStatusAnalyzer : public edm::global::EDAnalyzer<> { | ||
class EcalStatusAnalyzer : public edm::stream::EDAnalyzer<> { | ||
public: | ||
explicit EcalStatusAnalyzer(const edm::ParameterSet& iConfig); | ||
~EcalStatusAnalyzer() override; | ||
|
||
// void analyze(edm::StreamID, const edm::Event& e, const edm::EventSetup& c) override; | ||
void analyze(edm::StreamID, const edm::Event& e, const edm::EventSetup& c) const override ; | ||
void beginJob() override; | ||
void endJob() override; | ||
void analyze(const edm::Event& e, const edm::EventSetup& c); | ||
//void analyze(edm::StreamID, const edm::Event& e, const edm::EventSetup& c); | ||
//void analyze(edm::StreamID, const edm::Event& e, const edm::EventSetup& c) const override ; | ||
void beginJob(); | ||
void endJob(); | ||
|
||
enum EcalLaserColorType { | ||
iBLUE = 0, | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,7 @@ | |
#include <vector> | ||
|
||
#include "FWCore/Framework/interface/Frameworkfwd.h" | ||
#include "FWCore/Framework/interface/EDAnalyzer.h" | ||
#include <FWCore/Framework/interface/stream/EDAnalyzer.h> | ||
This comment has been minimized.
Sorry, something went wrong.
thomreis
|
||
#include "FWCore/Utilities/interface/InputTag.h" | ||
|
||
#include "DataFormats/FEDRawData/interface/FEDRawDataCollection.h" | ||
|
@@ -41,7 +41,7 @@ | |
* the each output file.Once a file is completed (see above), it is renamed | ||
* without the enclosing .part suffix. | ||
*/ | ||
class LaserSorter : public edm::EDAnalyzer { | ||
class LaserSorter : public edm::stream::EDAnalyzer<> { | ||
//inner classes | ||
private: | ||
struct IndexRecord { | ||
|
@@ -121,8 +121,8 @@ class LaserSorter : public edm::EDAnalyzer { | |
//methods | ||
public: | ||
void analyze(const edm::Event&, const edm::EventSetup&) override; | ||
void endJob() override; | ||
void beginJob() override; | ||
void endJob() ; | ||
This comment has been minimized.
Sorry, something went wrong.
thomreis
|
||
void beginJob() ; | ||
void beginRun(edm::Run const&, edm::EventSetup const&) override; | ||
|
||
private: | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
|
||
// user include files | ||
#include "FWCore/Framework/interface/Frameworkfwd.h" | ||
#include "FWCore/Framework/interface/EDAnalyzer.h" | ||
#include "FWCore/Framework/interface/one/EDAnalyzer.h" | ||
|
||
#include "FWCore/Framework/interface/Event.h" | ||
#include "FWCore/Framework/interface/MakerMacros.h" | ||
|
@@ -12,14 +12,14 @@ | |
|
||
using namespace std; | ||
|
||
class EcalTPGParamReaderFromDB : public edm::EDAnalyzer { | ||
class EcalTPGParamReaderFromDB : public edm::one::EDAnalyzer<> { | ||
public: | ||
explicit EcalTPGParamReaderFromDB(const edm::ParameterSet&); | ||
~EcalTPGParamReaderFromDB() override; | ||
|
||
private: | ||
void beginJob() override; | ||
void analyze(const edm::Event&, const edm::EventSetup&) override; | ||
void analyze(const edm::Event&, const edm::EventSetup&); | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
atishelmanch
Author
Owner
|
||
void endJob() override; | ||
|
||
std::string host; | ||
|
@@ -48,10 +48,6 @@ EcalTPGParamReaderFromDB::~EcalTPGParamReaderFromDB() {} | |
void EcalTPGParamReaderFromDB::analyze(const edm::Event& ev, const edm::EventSetup& es) { | ||
EcalTPGDBApp app(sid, user, pass); | ||
|
||
//int i ; | ||
//app.readTPGPedestals(i); | ||
//app.writeTPGLUT(); | ||
//app.writeTPGWeights(); | ||
} | ||
|
||
void EcalTPGParamReaderFromDB::beginJob() {} | ||
|
2 comments
on commit f383597
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@thomreis - In light of cms-AlCaDB/AlCaTools#41, these past few commits contain a first pass at updating the deprecated ECAL modules found from the most recent static analyzer report: [Link]. The main purpose so far is to touch the modules to be updated, but there may be room for improvement as far as choosing one
, stream
or global
for the class types [Reference].
What do you think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks Abe,
I realise now that I made comments only on this commit until now. I will move to the full branch.
Why did you make this a stream::EDAnalyzer?
global::EDAnalyzer
would be already a thread save module so I do not think there is need to change this module.