1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
#ifndef CommonTools_UtilAlgos_EventSelectorBase_h
#define CommonTools_UtilAlgos_EventSelectorBase_h
/** \class EventSelectorBase
*
* Base-class for event selections in physics analyses
*
* \author Christian Veelken, UC Davis
*
* \version $Revision: 1.1 $
*
* $Id: EventSelectorBase.h,v 1.1 2009/03/03 13:07:26 llista Exp $
*
*/
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/Framework/interface/EventSetup.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
class EventSelectorBase {
public:
// constructor
explicit EventSelectorBase() {}
// destructor
virtual ~EventSelectorBase() {}
// function implementing actual cut
// ( return value = true : event passes cut
// false : event fails cut )
virtual bool operator()(edm::Event&, const edm::EventSetup&) const = 0;
};
#include "FWCore/PluginManager/interface/PluginFactory.h"
typedef edmplugin::PluginFactory<EventSelectorBase*(const edm::ParameterSet&)> EventSelectorPluginFactory;
#endif
|