Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
CommonClassifier
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Michael Wassmer
CommonClassifier
Commits
cdeed5b3
Commit
cdeed5b3
authored
8 years ago
by
Joosep Pata
Browse files
Options
Downloads
Patches
Plain Diff
fix edanalyzer compilation
parent
74176fe2
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
interface/MEMClassifier.h
+1
-1
1 addition, 1 deletion
interface/MEMClassifier.h
plugins/BuildFile.xml
+6
-0
6 additions, 0 deletions
plugins/BuildFile.xml
plugins/TestAnalyzer.cc
+107
-0
107 additions, 0 deletions
plugins/TestAnalyzer.cc
src/MEMClassifier.cc
+1
-1
1 addition, 1 deletion
src/MEMClassifier.cc
with
115 additions
and
2 deletions
interface/MEMClassifier.h
+
1
−
1
View file @
cdeed5b3
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
plugins/BuildFile.xml
0 → 100644
+
6
−
0
View file @
cdeed5b3
<use
name=
"gsl"
/>
<use
name=
"FWCore/Framework"
/>
<use
name=
"FWCore/PluginManager"
/>
<use
name=
"FWCore/ParameterSet"
/>
<use
name=
"TTH/MEIntegratorStandalone"
/>
<flags
EDM_PLUGIN=
"1"
/>
This diff is collapsed.
Click to expand it.
plugins/TestAnalyzer.cc
0 → 100644
+
107
−
0
View file @
cdeed5b3
// 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
);
This diff is collapsed.
Click to expand it.
src/MEMClassifier.cc
+
1
−
1
View file @
cdeed5b3
...
...
@@ -22,7 +22,7 @@ void MEMClassifier::setup_mem(
switch
(
hypo
)
{
case
DEBUG
:
{
case
HYPO_
DEBUG
:
{
break
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment