7 #include "DataFormats/TestObjects/interface/Thing.h" 8 #include "DataFormats/TestObjects/interface/ThingCollection.h" 9 #include "DataFormats/TestObjects/interface/TrackOfThings.h" 37 bool choose(
unsigned int iIndex, edmtest::Thing
const& iItem);
63 desc.add<
unsigned int>(
"offsetToThinnedKey");
64 desc.add<
unsigned int>(
"offsetToValue", 0);
65 desc.add<
unsigned int>(
"expectedCollectionSize");
66 desc.add<
int>(
"slimmedValueFactor", 1);
81 throw cms::Exception(
"TestFailure") <<
"ThinningThingSelector::preChoose, collection size = " << tc->size()
94 if (static_cast<unsigned>(iItem.a % 10) !=
static_cast<unsigned>(expected % 10)) {
95 throw cms::Exception(
"TestFailure") <<
"ThinningThingSelector::choose, item content = " << iItem.a
96 <<
" index = " << iIndex <<
" expected " << expected;
std::set< unsigned int > keysToSave_
uint32_t cc[maxCellsPerHit]
unsigned int offsetToThinnedKey_
static void fillPSetDescription(edm::ParameterSetDescription &desc)
unsigned int offsetToValue_
#define DEFINE_FWK_MODULE(type)
unsigned int expectedCollectionSize_
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
edm::ThinningProducer< edmtest::ThingCollection, edmtest::ThinningThingSelector > ThinningThingProducer
edm::EDGetTokenT< TrackOfThingsCollection > trackToken_
ThinningThingSelector(edm::ParameterSet const &pset, edm::ConsumesCollector &&cc)
edm::ESGetToken< edmtest::WhatsIt, GadgetRcd > whatsItToken_
bool choose(unsigned int iIndex, edmtest::Thing const &iItem)
void preChoose(edm::Handle< edmtest::ThingCollection > tc, edm::Event const &event, edm::EventSetup const &es)