13 : doACheck_(conf.getParameter<
bool>(
"doClusterCheck")),
14 selector_(conf.getParameter<
bool>(
"doClusterCheck") && conf.existsAs<
std::
string>(
"cut")
24 if (conf.
existsAs<uint32_t>(
"DontCountDetsAboveNClusters")) {
33 desc.add<
bool>(
"doClusterCheck",
true);
34 desc.add<
unsigned>(
"MaxNumberOfStripClusters", 400000);
36 desc.add<
unsigned>(
"MaxNumberOfPixelClusters", 40000);
39 "strip < 400000 && pixel < 40000 && (strip < 50000 + 10*pixel) && (pixel < 5000 + 0.1*strip)");
63 for (; DSViter != DSViter_end; DSViter++) {
64 size_t siz = DSViter->
size();
89 for (; DSViter != DSViter_end; DSViter++) {
90 size_t siz = DSViter->
size();
100 <<
"could not get any SiPixel cluster collections of type edm::DetSetVector<SiPixelCluster> with label: " 102 totals.
pixel = 999999;
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
int stripdets
number of pixel clusters
int pixeldets
number of strip detectors with at least one cluster
T getParameter(std::string const &) const
size_t tooManyClusters(const edm::Event &e) const
edm::InputTag clusterCollectionInputTag_
StringCutObjectSelector< reco::utils::ClusterTotals > selector_
unsigned int maxNrOfStripClusters_
unsigned int maxNrOfPixelClusters_
static void fillDescriptions(edm::ParameterSetDescription &description)
bool existsAs(std::string const ¶meterName, bool trackiness=true) const
checks if a parameter exists as a given type
Log< level::Error, false > LogError
static std::string const input
int pixel
number of strip clusters
unsigned int ignoreDetsAboveNClusters_
boost::transform_iterator< IterHelp, const_IdIter > const_iterator
edm::InputTag pixelClusterCollectionInputTag_
edm::EDGetTokenT< edmNew::DetSetVector< SiPixelCluster > > token_pc
edm::EDGetTokenT< edmNew::DetSetVector< SiStripCluster > > token_sc