1 #ifndef UtilAlgos_HistoAnalyzer_h
2 #define UtilAlgos_HistoAnalyzer_h
41 std::vector<ExpressionHisto<typename C::value_type>*>
vhistograms;
47 usingWeights_(par.exists(
"weights")),
51 std::vector<edm::ParameterSet>
histograms = par.template getParameter<std::vector<edm::ParameterSet> >(
"histograms");
52 std::vector<edm::ParameterSet>::const_iterator it =
histograms.begin();
53 std::vector<edm::ParameterSet>::const_iterator
end =
histograms.end();
56 for (; it !=
end; ++it) {
66 typename std::vector<ExpressionHisto<typename C::value_type>*>::iterator it = vhistograms.begin();
67 typename std::vector<ExpressionHisto<typename C::value_type>*>::iterator
end = vhistograms.end();
68 for (; it !=
end; ++it) {
77 iEvent.getByToken(srcToken_, coll);
81 iEvent.getByToken(weightsToken_, weightColl);
85 typename std::vector<ExpressionHisto<typename C::value_type>*>::iterator it = vhistograms.begin();
86 typename std::vector<ExpressionHisto<typename C::value_type>*>::iterator
end = vhistograms.end();
88 for (; it !=
end; ++it) {
90 for (
typename C::const_iterator elem = coll->begin(); elem != coll->end(); ++elem, ++
i) {
91 if (!(*it)->fill(*elem,
weight,
i)) {