63 consumes<SiStripRecHit2DCollection>(
edm::InputTag(siHitProducer_,siRphiHitCollection_));
65 consumes<SiStripRecHit2DCollection>(
edm::InputTag(siHitProducer_,siStereoHitCollection_));
67 consumes<SiStripMatchedRecHit2DCollection>(
edm::InputTag(siHitProducer_,siMatchedHitCollection_));
69 consumes<reco::SuperClusterCollection>(
edm::InputTag(superClusterProducer_,superClusterCollection_));
79 LogDebug(
"") <<
" Welcome to SiStripElectronProducer " ;
136 algo_p->
prepareEvent(trackerHandle, rphiHitsHandle, stereoHitsHandle, matchedHitsHandle, magneticFieldHandle);
148 int siStripElectCands = 0 ;
150 std::ostringstream str;
154 str <<
"Starting loop over superclusters."<<
"\n" << std::endl;
155 for (
unsigned int i = 0;
i < superClusterHandle.
product()->size();
i++) {
160 str <<
"Supercluster energy: " << energy <<
", FOUND an electron." <<
"\n" << std::endl;
161 ++siStripElectCands ;
164 str <<
"Supercluster energy: " << energy <<
", DID NOT FIND an electron."<<
"\n" << std::endl;
167 str <<
"Ending loop over superclusters." <<
"\n" << std::endl;
169 str <<
" Found " << siStripElectCands
170 <<
" SiStripElectron Candidates before track fit "
171 <<
"\n" << std::endl ;
173 LogDebug(
"SiStripElectronProducer") << str.str();
T getParameter(std::string const &) const
bool getByToken(EDGetToken token, Handle< PROD > &result) const
std::string siRphiHitCollection_
SiStripElectronProducer(const edm::ParameterSet &)
std::vector< TrackCandidate > TrackCandidateCollection
edm::EDGetTokenT< reco::SuperClusterCollection > superClustertag_
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 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_
T const * product() const
virtual void produce(edm::Event &, const edm::EventSetup &)
edm::EDGetTokenT< SiStripRecHit2DCollection > stereo_sistrips2dtag_
SiStripElectronAlgo * algo_p
edm::EDGetTokenT< SiStripRecHit2DCollection > rphi_sistrips2dtag_
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)