18 using namespace reco ;
43 GsfPFRecTrackCollection::const_iterator gsfPfRecTrack ;
44 for ( gsfPfRecTrack=gsfPfRecTrackCollection->begin() ;
45 gsfPfRecTrack!=gsfPfRecTrackCollection->end() ;
48 const GsfTrackRef gsfTrackRef = gsfPfRecTrack->gsfTrackRef() ;
55 for (
unsigned int i=0 ;
i<gsfTrackCollection->size() ; ++
i )
62 event.put(electrons) ;
70 {
delete eleCore ;
return ; }
81 electrons->push_back(*eleCore) ;
84 {
edm::LogWarning(
"GsfElectronCoreEcalDrivenProducer")<<
"Seed CaloCluster is not a SuperCluster, unexpected..." ; }
void initEvent(edm::Event &event, const edm::EventSetup &setup)
bool ecalDrivenSeed() const
void produceEcalDrivenCore(const reco::GsfTrackRef &gsfTrackRef, reco::GsfElectronCoreCollection *electrons)
edm::Handle< reco::GsfTrackCollection > gsfTracksH_
void setSuperCluster(const SuperClusterRef &scl)
bool isNull() const
Checks for null.
std::vector< GsfPFRecTrack > GsfPFRecTrackCollection
collection of GsfPFRecTrack objects
virtual ~GsfElectronCoreEcalDrivenProducer()
std::vector< GsfElectronCore > GsfElectronCoreCollection
std::vector< GsfTrack > GsfTrackCollection
collection of GsfTracks
virtual void produce(edm::Event &, const edm::EventSetup &)
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
REF castTo() const
cast to a concrete type
T const * product() const
edm::Handle< reco::GsfPFRecTrackCollection > gsfPfRecTracksH_
GsfElectronCoreEcalDrivenProducer(const edm::ParameterSet &conf)
T const * get() const
Returns C++ pointer to the item.
void fillElectronCore(reco::GsfElectronCore *)
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")