Description: <one line="" class="" summary>="">
Usage: <usage>
Definition at line 35 of file SiStripElectronProducer.h.
Definition at line 115 of file SiStripElectronProducer.cc.
References algo_p, randomXiThetaGunProducer_cfi::energy, reco::CaloCluster::energy(), SiStripElectronAlgo::findElectron(), edm::EventSetup::get(), edm::Event::getByToken(), mps_fire::i, LogDebug, matched_sistrips2dtag_, eostools::move(), SiStripElectronAlgo::prepareEvent(), edm::Handle< T >::product(), edm::Event::put(), rphi_sistrips2dtag_, SimDataFormats::CaloAnalysis::sc, siStripElectronsLabel_, stereo_sistrips2dtag_, str, superClustertag_, and trackCandidatesLabel_.
137 algo_p->
prepareEvent(trackerHandle, rphiHitsHandle, stereoHitsHandle, matchedHitsHandle, magneticFieldHandle);
140 auto electronOut = std::make_unique<reco::SiStripElectronCollection>();
141 auto trackCandidateOut = std::make_unique<TrackCandidateCollection>();
149 int siStripElectCands = 0 ;
151 std::ostringstream
str;
155 str <<
"Starting loop over superclusters."<<
"\n" << std::endl;
156 for (
unsigned int i = 0;
i < superClusterHandle.
product()->size();
i++) {
161 str <<
"Supercluster energy: " << energy <<
", FOUND an electron." <<
"\n" << std::endl;
162 ++siStripElectCands ;
165 str <<
"Supercluster energy: " << energy <<
", DID NOT FIND an electron."<<
"\n" << std::endl;
168 str <<
"Ending loop over superclusters." <<
"\n" << std::endl;
170 str <<
" Found " << siStripElectCands
171 <<
" SiStripElectron Candidates before track fit " 172 <<
"\n" << std::endl ;
174 LogDebug(
"SiStripElectronProducer") << str.str();
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
edm::EDGetTokenT< reco::SuperClusterCollection > superClustertag_
std::string siStripElectronsLabel_
edm::Ref< SuperClusterCollection > SuperClusterRef
reference to an object in a collection of SuperCluster objects
double energy() const
cluster energy
bool findElectron(reco::SiStripElectronCollection &electronOut, TrackCandidateCollection &trackCandidateOut, const reco::SuperClusterRef &superclusterIn, const TrackerTopology *tTopo)
edm::EDGetTokenT< SiStripMatchedRecHit2DCollection > matched_sistrips2dtag_
T const * product() const
std::string trackCandidatesLabel_
edm::EDGetTokenT< SiStripRecHit2DCollection > stereo_sistrips2dtag_
SiStripElectronAlgo * algo_p
edm::EDGetTokenT< SiStripRecHit2DCollection > rphi_sistrips2dtag_
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)