template<typename C, typename Selector, typename StoreContainer = std::vector<const typename C::value_type *>>
class Selection< C, Selector, StoreContainer >
Definition at line 8 of file Selection.h.
template<typename C, typename Selector, typename StoreContainer = std::vector<const typename C::value_type *>>
Definition at line 174 of file Selections.h.
References begin, Filter::cached_decision_, edm::Event::cacheIdentifier(), KineDebug3::count(), end, edm::EventID::event(), Filter::eventCacheID_, ALCARECOTkAlBeamHalo_cff::filter, edm::EventBase::id(), Filter::name(), Selection< C, Selector, StoreContainer >::Count::nCumulative_, Selection< C, Selector, StoreContainer >::Count::nPass_, Selection< C, Selector, StoreContainer >::Count::nSeen_, reco::print(), edm::EventID::run(), AlCaHLTBitMon_QueryRunRegistry::string, and heppy_report::summary.
180 std::map<std::string, bool> ret;
186 bool decision=(*filter)->accept(iEvent);
187 bool inverted=(*filter).inverted();
188 if (inverted) decision=!decision;
190 if (decision) count.nPass_++;
191 global=global && decision;
192 if (global) count.nCumulative_++;
197 summary<<std::setw(20)<<
name().substr(0,19)<<
" : " 198 <<std::setw(10)<<iEvent.
id().
run()<<
" : " 199 <<std::setw(10)<<iEvent.
id().
event();
202 summary<<
" : "<<std::setw(10)<<(ret[fName]?
"pass":
"reject");
EventNumber_t event() const
edm::Event::CacheIdentifier_t eventCacheID_
const_iterator begin() const
bool makeDetailledPrintout_
CacheIdentifier_t cacheIdentifier() const
const std::string & name()
std::map< std::string, Count > counts_
void print(bool description=true)
const_iterator end() const
std::vector< SFilter >::iterator iterator
std::string detailledPrintoutCategory_
template<typename C, typename Selector, typename StoreContainer = std::vector<const typename C::value_type *>>
Definition at line 225 of file Selections.h.
References begin, python.rootplot.argparse::category, KineDebug3::count(), gather_cfg::cout, Filter::description(), end, ALCARECOTkAlBeamHalo_cff::filter, objects.autophobj::float, Filter::name(), Selection< C, Selector, StoreContainer >::Count::nCumulative_, Selection< C, Selector, StoreContainer >::Count::nPass_, Selection< C, Selector, StoreContainer >::Count::nSeen_, AlCaHLTBitMon_QueryRunRegistry::string, and heppy_report::summary.
228 unsigned int maxFnameSize = 20;
230 if ((*filter)->name().size() > maxFnameSize) maxFnameSize = (*filter)->name().size()+1;
236 summary<<
" Summary table for selection: "<<
name()<<
" with: "<<
nSeen_<<
" events run."<<std::endl;
241 summary<<
"filter: "<<std::right<<std::setw(10)<<fName<<
"\n" 242 <<(*filter)->descriptionText()<<
"\n";
245 summary<<
" filter stand-alone pass: "<<std::endl;
246 summary<<std::right<<std::setw(maxFnameSize)<<
"total read"<<
": " 247 <<std::right<<std::setw(10)<<
nSeen_<<std::endl;
251 if ((*filter).inverted()) fName=
'!'+fName;
252 summary<<std::right<<std::setw(maxFnameSize)<<fName<<
": " 253 <<std::right<<std::setw(10)<<count.nPass_<<
" passed events. " 254 <<std::right<<std::setw(10)<<std::setprecision (5)<<(count.nPass_/(
float)count.nSeen_)*100.<<
" [%]"<<std::endl;
256 summary<<
" filter cumulative pass:"<<std::endl;
257 summary<<std::right<<std::setw(maxFnameSize)<<
"total read"<<
": " 258 <<std::right<<std::setw(10)<<
nSeen_<<std::endl;
259 unsigned int lastCount=
nSeen_;
262 const Count & count=
counts_[fName];
263 if ((*filter).inverted()) fName=
'!'+fName;
264 summary<<std::right<<std::setw(maxFnameSize)<<fName<<
": " 265 <<std::right<<std::setw(10)<<count.nCumulative_<<
" passed events. " 266 <<std::right<<std::setw(10)<<std::setprecision (5)<<(count.nCumulative_/(
float)count.nSeen_)*100.<<
" [%]";
268 summary<<
" (to previous count) "<<std::right<<std::setw(10)<<std::setprecision (5)<<(count.nCumulative_/(
float)lastCount)*100.<<
" [%]";
271 lastCount = count.nCumulative_;
273 summary<<
"-------------------------------------\n";
const_iterator begin() const
const std::vector< std::string > description()
const std::string & name()
std::map< std::string, Count > counts_
const_iterator end() const
std::vector< SFilter >::iterator iterator