16 #include "boost/bind.hpp" 65 maxProbes_(iConfig.existsAs<int32_t>(
"maxProbes") ? iConfig.getParameter<int32_t>(
"maxProbes") : -1),
77 if(!probes.
isValid())
return result;
80 typedef std::pair<reco::CandidateBaseRef, double> Pair;
81 std::vector<Pair> selectedProbes;
82 for (
size_t i = 0;
i < probes->
size(); ++
i){
StringObjectFunction< reco::Candidate, true > sortFunction_
The StringObjectFunction itself.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
ProbeTreeProducer(const edm::ParameterSet &)
#define DEFINE_FWK_MODULE(type)
int32_t maxProbes_
The number of first probes used to fill the tree.
ParameterSet const & getProcessParameterSetContainingModule(ModuleDescription const &moduleDescription)
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
RefToBase< value_type > refAt(size_type i) const
~ProbeTreeProducer() override
U second(std::pair< T, U > const &p)
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
bool filter(edm::Event &, const edm::EventSetup &) override
std::unique_ptr< tnp::BaseTreeFiller > probeFiller_
The object that actually computes variables and fills the tree for the probe.
StringCutObjectSelector< reco::Candidate, true > cut_
The selector object.
ModuleDescription const & moduleDescription() const
std::string sortDescendingBy_
Name of the reco::Candidate function used for sorting.
bool filter_
Specifies whether this module should filter.
edm::View< Candidate > CandidateView
view of a collection containing candidates
edm::EDGetTokenT< reco::CandidateView > probesToken_
InputTag to the collection of all probes.