CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
SiStripClusterizer.cc
Go to the documentation of this file.
5 #include "boost/foreach.hpp"
6 
9  : inputTags( conf.getParameter<std::vector<edm::InputTag> >("DigiProducersList") ),
10  algorithm( StripClusterizerAlgorithmFactory::create(conf.getParameter<edm::ParameterSet>("Clusterizer")) ) {
11  produces< edmNew::DetSetVector<SiStripCluster> > ();
12 }
13 
16 
17  std::auto_ptr< edmNew::DetSetVector<SiStripCluster> > output(new edmNew::DetSetVector<SiStripCluster>());
18  output->reserve(10000,4*10000);
19 
22 
23  algorithm->initialize(es);
24 
25  BOOST_FOREACH( const edm::InputTag& tag, inputTags) {
26  if( findInput( tag, inputOld, event) ) algorithm->clusterize(*inputOld, *output);
27  else if( findInput( tag, inputNew, event) ) algorithm->clusterize(*inputNew, *output);
28  else edm::LogError("Input Not Found") << "[SiStripClusterizer::produce] " << tag;
29  }
30 
31  LogDebug("Output") << output->dataSize() << " clusters from "
32  << output->size() << " modules";
33  event.put(output);
34 }
35 
36 template<class T>
37 inline
40  e.getByLabel( tag, handle);
41  return handle.isValid();
42 }
#define LogDebug(id)
< trclass="colgroup">< tdclass="colgroup"colspan=5 > Ecal cluster collections</td ></tr >< tr >< td >< ahref="classreco_1_1BasicCluster.html"> reco::BasicCluster</a ></td >< td >< ahref="DataFormats_EgammaReco.html"> reco::BasicClusterCollection</a ></td >< td >< ahref="#"> hybridSuperClusters</a ></td >< tdclass="description"> Basic clusters reconstructed with hybrid algorithm(barrel only)</td >< td >S.Rahatlou</td ></tr >< tr >< td >< a href
SiStripClusterizer(const edm::ParameterSet &conf)
const std::vector< edm::InputTag > inputTags
virtual void produce(edm::Event &, const edm::EventSetup &)
tuple handle
Definition: patZpeak.py:22
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
bool isValid() const
Definition: HandleBase.h:76
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
Definition: Event.h:356
tuple conf
Definition: dbtoconf.py:185
std::auto_ptr< StripClusterizerAlgorithm > algorithm
SurfaceDeformation * create(int type, const std::vector< double > &params)
bool findInput(const edm::InputTag &, edm::Handle< T > &, const edm::Event &)