16 #include "boost/bind.hpp"
36 virtual void endJob()
override;
62 cut_(iConfig.existsAs<std::
string>(
"cut") ? iConfig.getParameter<std::
string>(
"cut") :
""),
63 filter_(iConfig.existsAs<bool>(
"filter") ? iConfig.getParameter<bool>(
"filter") :
false),
64 sortDescendingBy_(iConfig.existsAs<std::
string>(
"sortDescendingBy") ? iConfig.getParameter<std::
string>(
"sortDescendingBy") :
""),
65 sortFunction_(sortDescendingBy_.
size()>0 ? sortDescendingBy_ :
"pt"),
66 maxProbes_(iConfig.existsAs<int32_t>(
"maxProbes") ? iConfig.getParameter<int32_t>(
"maxProbes") : -1),
67 probeFiller_(new tnp::BaseTreeFiller(
"probe_tree", iConfig, consumesCollector()))
78 if(!probes.
isValid())
return result;
81 typedef std::pair<reco::CandidateBaseRef, double> Pair;
82 std::vector<Pair> selectedProbes;
83 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.
virtual void endJob() override
U second(std::pair< T, U > const &p)
virtual bool filter(edm::Event &, const edm::EventSetup &) override
ParameterSet const & getProcessParameterSet()
StringCutObjectSelector< reco::Candidate, true > cut_
The selector object.
std::auto_ptr< tnp::BaseTreeFiller > probeFiller_
The object that actually computes variables and fills the tree for the probe.
std::string sortDescendingBy_
Name of the reco::Candidate function used for sorting.
volatile std::atomic< bool > shutdown_flag false
tuple size
Write out results.
bool filter_
Specifies whether this module should filter.
edm::EDGetTokenT< reco::CandidateView > probesToken_
InputTag to the collection of all probes.