#include <CaloTauSelectorDefinition.h>
Definition at line 14 of file CaloTauSelectorDefinition.h.
CaloTauSelectorDefinition::~CaloTauSelectorDefinition |
( |
| ) |
|
|
inline |
Definition at line 39 of file CaloTauSelectorDefinition.h.
References cut_, discriminators_, discriminatorsPSets_, discriminatorTokens_, edm::Event::getByToken(), edm::HandleBase::isValid(), combine::key, CaloTauSelectorDefinition::TDiscCutPair::m_cut, CaloTauSelectorDefinition::TDiscCutPair::m_discHandle, and selected_.
45 assert(
hc.isValid() );
50 std::vector< edm::EDGetTokenT<reco::CaloTauDiscriminator> >::iterator itToken =
discriminatorTokens_.begin();
58 if(!(e.
getByToken( *itToken, disc.m_discHandle))) assert(0);
59 disc.m_cut = it->getParameter<
double>(
"selectionCut");
62 assert( disc.m_discHandle->size() ==
hc->size());
67 static bool passedAllCuts;
68 for( collection::const_iterator calotau =
hc->begin();
80 if ( (*(discIt->m_discHandle))[calotauRef] <= discIt->m_cut)
81 passedAllCuts =
false;
84 if (
cut_ ) passedAllCuts &= (*cut_)(*calotau);
bool getByToken(EDGetToken token, Handle< PROD > &result) const
StringCutObjectSelector< reco::CaloTau > * cut_
TDiscCutPairVec discriminators_
std::vector< edm::EDGetTokenT< reco::CaloTauDiscriminator > > discriminatorTokens_
std::vector< edm::ParameterSet > discriminatorsPSets_
size_t CaloTauSelectorDefinition::size |
( |
void |
| ) |
const |
|
inline |
container CaloTauSelectorDefinition::selected_ |
|
private |