72 LogDebug(
"") <<
" Welcome to SiStripElectronProducer " ;
129 algo_p->
prepareEvent(trackerHandle, rphiHitsHandle, stereoHitsHandle, matchedHitsHandle, magneticFieldHandle);
141 int siStripElectCands = 0 ;
143 std::ostringstream str;
147 str <<
"Starting loop over superclusters."<<
"\n" << std::endl;
148 for (
unsigned int i = 0;
i < superClusterHandle.
product()->size();
i++) {
153 str <<
"Supercluster energy: " << energy <<
", FOUND an electron." <<
"\n" << std::endl;
154 ++siStripElectCands ;
157 str <<
"Supercluster energy: " << energy <<
", DID NOT FIND an electron."<<
"\n" << std::endl;
160 str <<
"Ending loop over superclusters." <<
"\n" << std::endl;
162 str <<
" Found " << siStripElectCands
163 <<
" SiStripElectron Candidates before track fit "
164 <<
"\n" << std::endl ;
166 LogDebug(
"SiStripElectronProducer") << str.str();
T getParameter(std::string const &) const
std::string siRphiHitCollection_
SiStripElectronProducer(const edm::ParameterSet &)
std::vector< TrackCandidate > TrackCandidateCollection
std::string siHitProducer_
std::string siStereoHitCollection_
std::string siStripElectronsLabel_
edm::Ref< SuperClusterCollection > SuperClusterRef
reference to an object in a collection of SuperCluster objects
std::string siMatchedHitCollection_
std::string superClusterCollection_
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
std::vector< SiStripElectron > SiStripElectronCollection
collectin of SiStripElectron objects
~SiStripElectronProducer()
double energy() const
cluster energy
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
bool findElectron(reco::SiStripElectronCollection &electronOut, TrackCandidateCollection &trackCandidateOut, const reco::SuperClusterRef &superclusterIn, const TrackerTopology *tTopo)
std::string trackCandidatesLabel_
T const * product() const
T const * product() const
virtual void produce(edm::Event &, const edm::EventSetup &)
SiStripElectronAlgo * algo_p
std::string superClusterProducer_
void prepareEvent(const edm::ESHandle< TrackerGeometry > &tracker, const edm::Handle< SiStripRecHit2DCollection > &rphiHits, const edm::Handle< SiStripRecHit2DCollection > &stereoHits, const edm::Handle< SiStripMatchedRecHit2DCollection > &matchedHits, const edm::ESHandle< MagneticField > &magneticField)