60 probesTag_(iConfig.getParameter<edm::InputTag>(
"src")),
61 cut_(iConfig.existsAs<std::string>(
"cut") ? iConfig.getParameter<std::string>(
"cut") :
""),
62 filter_(iConfig.existsAs<bool>(
"filter") ? iConfig.getParameter<bool>(
"filter") :
false),
63 sortDescendingBy_(iConfig.existsAs<std::string>(
"sortDescendingBy") ? iConfig.getParameter<std::string>(
"sortDescendingBy") :
""),
64 sortFunction_(sortDescendingBy_.
size()>0 ? sortDescendingBy_ :
"pt"),
65 maxProbes_(iConfig.existsAs<int32_t>(
"maxProbes") ? iConfig.getParameter<int32_t>(
"maxProbes") : -1),
66 probeFiller_(new tnp::BaseTreeFiller(
"probe_tree", iConfig))
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.
ProbeTreeProducer(const edm::ParameterSet &)
#define DEFINE_FWK_MODULE(type)
int32_t maxProbes_
The number of first probes used to fill the tree.
U second(std::pair< T, U > const &p)
edm::InputTag probesTag_
InputTag to the collection of all probes.
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
ParameterSet const & getProcessParameterSet()
StringCutObjectSelector< reco::Candidate, true > cut_
The selector object.
virtual bool filter(edm::Event &, const edm::EventSetup &)
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.
tuple size
Write out results.
bool filter_
Specifies whether this module should filter.