Line Code
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
/* \class DummyCandSelector
 * 
 * Dummy Candidate selector module
 * 
 * module allCands = DummyCandSelector {
 *   InputTag src = myCollection
 * };
 *
 * \author: Luca Lista, INFN
 *
 */
#include "FWCore/Framework/interface/MakerMacros.h"
#include "CommonTools/UtilAlgos/interface/SingleObjectSelector.h"
#include "CommonTools/UtilAlgos/interface/DummySelector.h"
#include "CommonTools/UtilAlgos/interface/FreeFunctionSelector.h"
#include "DataFormats/Candidate/interface/Candidate.h"

typedef SingleObjectSelector<reco::CandidateView, DummySelector> DummyCandSelector;

typedef SingleObjectSelector<reco::CandidateView, FreeFunctionSelector<reco::Candidate, dummy::select> >
    DummyFunCandSelector;

DEFINE_FWK_MODULE(DummyCandSelector);
DEFINE_FWK_MODULE(DummyFunCandSelector);