1 #ifndef MCMatchSelector_h 2 #define MCMatchSelector_h 13 template<
typename T1,
typename T2>
18 std::vector<int> ids =
20 for ( std::vector<int>::const_iterator
i=ids.begin();
21 i!=ids.end(); ++
i )
ids_.insert(*
i);
24 for ( std::vector<int>::const_iterator
i=status.begin();
29 if (
checkCharge_ && c.charge() != mc.charge() )
return false;
30 if ( !
ids_.empty() ) {
31 if (
ids_.find(
abs(mc.pdgId()))==
ids_.end() )
return false;
33 if (
status_.empty() )
return true;
T getParameter(std::string const &) const
bool operator()(const T1 &c, const T2 &mc) const
true if match is possible
MCMatchSelector(const edm::ParameterSet &cfg)
Abs< T >::type abs(const T &t)