Skip to content
Snippets Groups Projects
Commit 30e633f5 authored by Marcel Rieger's avatar Marcel Rieger
Browse files

Merge branch fix_edanalyzer into DNN_DL.

parents b37b67a9 fcd2ff93
No related branches found
No related tags found
No related merge requests found
...@@ -41,7 +41,7 @@ public: ...@@ -41,7 +41,7 @@ public:
// Hypothesis // Hypothesis
enum 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_0W2H2T, // Default SL MEM: Integrate over light jets
SL_1W2H2T, // Default SL MEM: Integrate over light jets SL_1W2H2T, // Default SL MEM: Integrate over light jets
SL_2W2H2T, // Fully reconstructed hypothesis 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);
...@@ -10,7 +10,7 @@ action() { ...@@ -10,7 +10,7 @@ action() {
cd src/TTH cd src/TTH
# get the MEM code # get the MEM code
git clone https://gitlab.cern.ch/jpata/MEIntegratorStandalone.git MEIntegratorStandalone --branch master git clone https://gitlab.cern.ch/jpata/MEIntegratorStandalone.git MEIntegratorStandalone --branch v0.4
# copy the OpenLoops ME libraries # copy the OpenLoops ME libraries
cp -R MEIntegratorStandalone/libs/* ../../lib/$SCRAM_ARCH/ cp -R MEIntegratorStandalone/libs/* ../../lib/$SCRAM_ARCH/
......
...@@ -22,7 +22,7 @@ void MEMClassifier::setup_mem( ...@@ -22,7 +22,7 @@ void MEMClassifier::setup_mem(
switch (hypo) { switch (hypo) {
case DEBUG: { case HYPO_DEBUG: {
break; 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