19 using namespace reco ;
59 GsfPFRecTrackCollection::const_iterator gsfPfRecTrack ;
60 for ( gsfPfRecTrack=gsfPfRecTrackCollection->begin() ;
61 gsfPfRecTrack!=gsfPfRecTrackCollection->end() ;
64 const GsfTrackRef gsfTrackRef = gsfPfRecTrack->gsfTrackRef() ;
71 for (
unsigned int i=0 ;
i<gsfTrackCollection->size() ; ++
i )
80 GsfElectronCoreCollection::const_iterator edCoreIter ;
82 ( edCoreIter = edCoresCollection->begin() ;
83 edCoreIter != edCoresCollection->end() ;
85 { electrons.push_back(edCoreIter->clone()) ; }
89 GsfElectronCoreCollection::const_iterator pfCoreIter ;
90 std::list<GsfElectronCore *>::iterator eleCore ;
92 for ( eleCore = electrons.begin() ; eleCore != electrons.end() ; eleCore++ )
97 ( pfCoreIter = pfCoresCollection->begin() ;
98 pfCoreIter != pfCoresCollection->end() ;
101 if (pfCoreIter->gsfTrack()==(*eleCore)->gsfTrack())
105 edm::LogWarning(
"GsfElectronCoreProducer")<<
"associated pfGsfElectronCore already found" ;
110 (*eleCore)->setPflowSuperCluster(pfCoreIter->pflowSuperCluster()) ;
118 for ( eleCore = electrons.begin() ; eleCore != electrons.end() ; eleCore++ )
120 if ((*eleCore)->superCluster().isNull())
121 {
LogDebug(
"GsfElectronCoreProducer")<<
"GsfTrack with no associated SuperCluster at all." ; }
123 { collection->push_back(**eleCore) ; }
126 event.put(collection) ;
133 {
delete eleCore ;
return ; }
135 electrons.push_back(eleCore) ;
void initEvent(edm::Event &event, const edm::EventSetup &setup)
T getParameter(std::string const &) const
bool ecalDrivenSeed() const
virtual ~GsfElectronCoreProducer()
edm::Handle< reco::GsfElectronCoreCollection > edCoresH_
void produceTrackerDrivenCore(const reco::GsfTrackRef &gsfTrackRef, std::list< reco::GsfElectronCore * > &electrons)
virtual void produce(edm::Event &, const edm::EventSetup &)
edm::Handle< reco::GsfTrackCollection > gsfTracksH_
std::vector< GsfPFRecTrack > GsfPFRecTrackCollection
collection of GsfPFRecTrack objects
std::vector< GsfElectronCore > GsfElectronCoreCollection
std::vector< GsfTrack > GsfTrackCollection
collection of GsfTracks
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
GsfElectronCoreProducer(const edm::ParameterSet &)
edm::InputTag pfCoresTag_
T const * product() const
edm::Handle< reco::GsfPFRecTrackCollection > gsfPfRecTracksH_
edm::Handle< reco::GsfElectronCoreCollection > pfCoresH_
edm::InputTag edCoresTag_
void fillElectronCore(reco::GsfElectronCore *)
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")