CMS 3D CMS Logo

SingleObjectSelector.h
Go to the documentation of this file.
1 #ifndef UtilAlgos_SingleObjectSelector_h
2 #define UtilAlgos_SingleObjectSelector_h
3 /* \class SingleObjectSelector
4  *
5  * \author Luca Lista, INFN
6  */
16 
17 /* the following is just to ease transition
18  * grep -r SingleObjectSelector * | wc
19  * 209 540 22532
20  */
21 
22 template <typename InputCollection,
23  typename Selector,
24  typename EdmFilter,
27  typename PostProcessor = ::helper::NullPostProcessor<OutputCollection>,
32  : public ObjectSelectorBase<
33  SingleElementCollectionSelector<InputCollection, Selector, OutputCollection, StoreContainer, RefAdder>,
34  OutputCollection,
35  NonNullNumberSelector,
36  PostProcessor,
37  StoreManager,
38  Base,
39  typename ::reco::modules::EventSetupInit<
40  SingleElementCollectionSelector<InputCollection, Selector, OutputCollection, StoreContainer, RefAdder>>::
41  type> {
42  using Init = typename ::reco::modules::EventSetupInit<
44 
45 public:
46  // SingleObjectSelectorBase() = default;
52  PostProcessor,
53  StoreManager,
54  Base,
55  Init>(cfg) {}
57 };
58 
60 
61 template <typename InputCollection,
62  typename Selector,
65  typename PostProcessor = ::helper::NullPostProcessor<OutputCollection>>
67  Selector,
70  StoreContainer,
71  PostProcessor>;
72 
73 template <typename InputCollection,
74  typename Selector,
77  typename PostProcessor = ::helper::NullPostProcessor<OutputCollection>>
80 
81 #endif
def Base(process)
typename ::reco::modules::EventSetupInit< SingleElementCollectionSelector< InputCollection, Selector, OutputCollection, StoreContainer, RefAdder > >::type Init
Functor that operates on <T>
Definition: Selector.h:22
SingleObjectSelectorBase(const edm::ParameterSet &cfg)