73 LogDebug(
"") <<
" Welcome to SiStripElectronProducer " ;
130 algo_p->
prepareEvent(trackerHandle, rphiHitsHandle, stereoHitsHandle, matchedHitsHandle, magneticFieldHandle);
137 int siStripElectCands = 0 ;
139 std::ostringstream str;
143 str <<
"Starting loop over superclusters."<<
"\n" << std::endl;
144 for (
unsigned int i = 0;
i < superClusterHandle.
product()->size();
i++) {
149 str <<
"Supercluster energy: " << energy <<
", FOUND an electron." <<
"\n" << std::endl;
150 ++siStripElectCands ;
153 str <<
"Supercluster energy: " << energy <<
", DID NOT FIND an electron."<<
"\n" << std::endl;
156 str <<
"Ending loop over superclusters." <<
"\n" << std::endl;
158 str <<
" Found " << siStripElectCands
159 <<
" SiStripElectron Candidates before track fit "
160 <<
"\n" << std::endl ;
162 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_
bool findElectron(reco::SiStripElectronCollection &electronOut, TrackCandidateCollection &trackCandidateOut, const reco::SuperClusterRef &superclusterIn)
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
std::string trackCandidatesLabel_
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)