6 #include "boost/foreach.hpp"
12 : confClusterizer_(conf.getParameter<edm::
ParameterSet>(
"Clusterizer")),
13 inputTags( conf.getParameter<std::vector<edm::InputTag> >(
"DigiProducersList") ),
15 produces< edmNew::DetSetVector<SiStripCluster> > ();
26 output->reserve(10000,4*10000);
34 if(
findInput( token, inputOld, event) ) {
35 algorithm->clusterize(*inputOld, *output);
39 else edm::LogError(
"Input Not Found") <<
"[SiStripClusterizer::produce] ";
42 LogDebug(
"Output") << output->dataSize() <<
" clusters from "
43 << output->size() <<
" modules";
44 output->shrink_to_fit();
59 if (
input->size() == 0)
return;
65 uint32_t detId = det->id();
69 for(
int strip = 0; strip < nchannideal; ++strip)
70 if(!
quality_->IsStripBad(detId,strip)) ++nchannreal;
73 if (digis !=
input->end()) {
74 int ndigi = digis->
size();
77 else clust->setMerged(
false);
T getParameter(std::string const &) const
boost::transform_iterator< IterHelp, const_IdIter > const_iterator
SiStripClusterizer(const edm::ParameterSet &conf)
edm::ParameterSet confClusterizer_
bool existsAs(std::string const ¶meterName, bool trackiness=true) const
checks if a parameter exists as a given type
bool getByToken(EDGetToken token, Handle< PROD > &result) const
auto vector_transform(std::vector< InputType > const &input, Function predicate) -> std::vector< typename std::remove_cv< typename std::remove_reference< decltype(predicate(input.front()))>::type >::type >
bool findInput(const edm::EDGetTokenT< T > &, edm::Handle< T > &, const edm::Event &)
static std::string const input
edm::ESHandle< SiStripDetCabling > SiStripDetCabling_
const std::vector< edm::InputTag > inputTags
virtual void produce(edm::Event &, const edm::EventSetup &)
edm::ESHandle< SiStripQuality > quality_
void refineCluster(const edm::Handle< edm::DetSetVector< SiStripDigi > > &input, std::auto_ptr< edmNew::DetSetVector< SiStripCluster > > &output)
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
size_type size() const
Return the number of contained DetSets.
void beginRun(const edm::Run &run, const edm::EventSetup &es) override
std::auto_ptr< StripClusterizerAlgorithm > algorithm
collection_type::const_iterator const_iterator
float occupancyThreshold_