Skip to content
Snippets Groups Projects
Commit cdeed5b3 authored by Joosep Pata's avatar Joosep Pata
Browse files

fix edanalyzer compilation

parent 74176fe2
No related branches found
No related tags found
No related merge requests found
......@@ -41,7 +41,7 @@ public:
// Hypothesis
enum Hypothesis {
DEBUG, // Don't run the MEM. Print debug info
HYPO_DEBUG, // Don't run the MEM. Print debug info
SL_0W2H2T, // Default SL MEM: Integrate over light jets
SL_1W2H2T, // Default SL MEM: Integrate over light jets
SL_2W2H2T, // Fully reconstructed hypothesis
......
<use name="gsl"/>
<use name="FWCore/Framework"/>
<use name="FWCore/PluginManager"/>
<use name="FWCore/ParameterSet"/>
<use name="TTH/MEIntegratorStandalone"/>
<flags EDM_PLUGIN="1"/>
// system include files
#include <memory>
// user include files
#include "FWCore/Framework/interface/Frameworkfwd.h"
#include "FWCore/Framework/interface/one/EDAnalyzer.h"
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/Framework/interface/MakerMacros.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "TTH/CommonClassifier/interface/MEMClassifier.h"
class TestAnalyzer : public edm::one::EDAnalyzer<edm::one::SharedResources> {
public:
explicit TestAnalyzer(const edm::ParameterSet&);
~TestAnalyzer();
static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
private:
virtual void beginJob() override;
virtual void analyze(const edm::Event&, const edm::EventSetup&) override;
virtual void endJob() override;
// ----------member data ---------------------------
};
//
// constants, enums and typedefs
//
//
// static data member definitions
//
//
// constructors and destructor
//
TestAnalyzer::TestAnalyzer(const edm::ParameterSet& iConfig)
{
//now do what ever initialization is needed
usesResource("TFileService");
}
TestAnalyzer::~TestAnalyzer()
{
// do anything here that needs to be done at desctruction time
// (e.g. close files, deallocate resources etc.)
}
//
// member functions
//
// ------------ method called for each event ------------
void
TestAnalyzer::analyze(const edm::Event& iEvent, const edm::EventSetup& iSetup)
{
using namespace edm;
#ifdef THIS_IS_AN_EVENT_EXAMPLE
Handle<ExampleData> pIn;
iEvent.getByLabel("example",pIn);
#endif
#ifdef THIS_IS_AN_EVENTSETUP_EXAMPLE
ESHandle<SetupData> pSetup;
iSetup.get<SetupRecord>().get(pSetup);
#endif
}
// ------------ method called once each job just before starting event loop ------------
void
TestAnalyzer::beginJob()
{
}
// ------------ method called once each job just after ending the event loop ------------
void
TestAnalyzer::endJob()
{
}
// ------------ method fills 'descriptions' with the allowed parameters for the module ------------
void
TestAnalyzer::fillDescriptions(edm::ConfigurationDescriptions& descriptions) {
//The following says we do not know what parameters are allowed so do no validation
// Please change this to state exactly what you do use, even if it is no parameters
edm::ParameterSetDescription desc;
desc.setUnknown();
descriptions.addDefault(desc);
}
//define this as a plug-in
DEFINE_FWK_MODULE(TestAnalyzer);
......@@ -22,7 +22,7 @@ void MEMClassifier::setup_mem(
switch (hypo) {
case DEBUG: {
case HYPO_DEBUG: {
break;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment