CMS 3D CMS Logo

GsfElectronBaseProducer.h
Go to the documentation of this file.
1 
2 #ifndef GsfElectronBaseProducer_h
3 #define GsfElectronBaseProducer_h
4 
7 
10 
14 
15 namespace reco
16  {
17  class GsfElectron ;
18  }
19 
20 namespace edm
21  {
22  class ParameterSet ;
24  }
25 
28 
29 class GsfElectronBaseProducer : public edm::stream::EDProducer< edm::GlobalCache<gsfAlgoHelpers::HeavyObjectCache> >
30  {
31  public:
32 
34 
36  ~GsfElectronBaseProducer() override ;
37 
38  static std::unique_ptr<gsfAlgoHelpers::HeavyObjectCache>
40  return std::make_unique<gsfAlgoHelpers::HeavyObjectCache>(conf);
41  }
42 
44  }
45 
46  protected:
47 
49 
50  void beginEvent( edm::Event &, const edm::EventSetup & ) ;
52  const edm::OrphanHandle<reco::GsfElectronCollection> & orphanHandle() const { return orphanHandle_;}
53 
54  // configurables
61 
62  // used to make some provenance checks
64 
65  private :
66 
67  bool isPreselected( reco::GsfElectron const& ele ) const ;
68  void setAmbiguityData( reco::GsfElectronCollection & electrons, edm::Event const& event, bool ignoreNotPreselected = true ) const ;
69 
70  // check expected configuration of previous modules
72  void checkEcalSeedingParameters( edm::ParameterSet const & ) ;
74 
76  } ;
77 
78 #endif
def fillEvent(tree, event)
Definition: ntuple.py:18
static std::unique_ptr< gsfAlgoHelpers::HeavyObjectCache > initializeGlobalCache(const edm::ParameterSet &conf)
static void globalEndJob(gsfAlgoHelpers::HeavyObjectCache const *)
std::vector< GsfElectron > GsfElectronCollection
collection of GsfElectron objects
GsfElectronAlgo::InputTagsConfiguration inputCfg_
ElectronHcalHelper::Configuration hcalCfg_
ElectronHcalHelper::Configuration hcalCfgPflow_
const edm::OrphanHandle< reco::GsfElectronCollection > & orphanHandle() const
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
GsfElectronAlgo::StrategyConfiguration strategyCfg_
edm::EDGetTokenT< edm::ValueMap< float > > pfMVA_
fixed size matrix
HLT enums.
const edm::EDPutTokenT< reco::GsfElectronCollection > electronPutToken_
const GsfElectronAlgo::CutsConfiguration cutsCfgPflow_
edm::OrphanHandle< reco::GsfElectronCollection > orphanHandle_
Definition: event.py:1
const GsfElectronAlgo::CutsConfiguration cutsCfg_