|
|
Go to the documentation of this file. 1 #ifndef RecoAlgos_GsfElectronSelector_h
2 #define RecoAlgos_GsfElectronSelector_h
39 TrackExtraRefProd rTrackExtras = evt.template getRefBeforePut<TrackExtraCollection>();
41 GsfTrackRefProd rTracks = evt.template getRefBeforePut<GsfTrackCollection>();
44 SuperClusterRefProd rSuperClusters = evt.template getRefBeforePut<SuperClusterCollection>();
45 size_t idx = 0, tidx = 0, hidx = 0;
46 for (
I i = begin;
i !=
end; ++
i) {
78 tx.
setHits(rHits, hidx, nHitsToAdd);
108 std::unique_ptr<TrackingRecHitCollection>
selHits_;
115 produces<reco::GsfElectronCollection>().setBranchAlias(
alias +
"GsfElectrons");
116 produces<reco::GsfElectronCoreCollection>().setBranchAlias(
alias +
"GsfElectronCores");
117 produces<reco::SuperClusterCollection>().setBranchAlias(
alias +
"SuperClusters");
118 produces<reco::GsfTrackCollection>().setBranchAlias(
alias +
"GsfTracks");
119 produces<reco::GsfTrackExtraCollection>().setBranchAlias(
alias +
"GsfTrackExtras");
120 produces<reco::TrackExtraCollection>().setBranchAlias(
alias +
"TrackExtras");
121 produces<TrackingRecHitCollection>().setBranchAlias(
alias +
"RecHits");
const math::XYZPoint & outerPosition() const
position of the outermost hit
const math::XYZVector & outerMomentum() const
momentum vector at the outermost hit position
edm::Ref< GsfTrackCollection > GsfTrackRef
persistent reference to a GsfTrack
CovarianceMatrix outerStateCovariance() const
outermost trajectory state curvilinear errors
std::unique_ptr< reco::GsfElectronCoreCollection > selElectronCores_
unsigned int outerDetId() const
DetId of the detector on which surface the outermost state is located.
GsfTrackRef gsfTrack() const override
reference to a GsfTrack
std::unique_ptr< reco::TrackExtraCollection > selTrackExtras_
edm::OrphanHandle< reco::GsfElectronCollection > put(edm::Event &evt)
FWCore Framework interface EventSetupRecordImplementation h
Helper function to determine trigger accepts.
std::vector< GsfTrackExtra > GsfTrackExtraCollection
collection of GsfTrackExtra objects
edm::RefToBase< reco::Track > TrackBaseRef
persistent reference to a Track, using views
std::vector< GsfElectron > GsfElectronCollection
collection of GsfElectron objects
reco::GsfElectronCollection collection
bool outerOk() const
return true if the outermost hit is valid
const TrackExtraRef & extra() const
reference to "extra" object
edm::Ptr< CaloCluster > CaloClusterPtr
CovarianceMatrix innerStateCovariance() const
innermost trajectory state curvilinear errors
bool innerOk() const
return true if the innermost hit is valid
std::unique_ptr< reco::GsfTrackExtraCollection > selGsfTrackExtras_
virtual GsfElectronCoreRef core() const
std::vector< SuperCluster > SuperClusterCollection
collection of SuperCluser objectr
const math::XYZVector & innerMomentum() const
momentum vector at the innermost hit position
size_t recHitsSize() const
Get number of RecHits. (Warning, this includes invalid hits, which are not physical hits).
const std::complex< double > I
std::vector< GsfElectronCore > GsfElectronCoreCollection
edm::Ref< SuperClusterCollection > SuperClusterRef
reference to an object in a collection of SuperCluster objects
std::vector< TrackExtra > TrackExtraCollection
collection of TrackExtra objects
auto recHits() const
Access to reconstructed hits on the track.
void setGsfExtra(const GsfTrackExtraRef &ref)
set reference to GSF "extra" object
edm::Ref< TrackCollection > TrackRef
persistent reference to a Track
const GsfTrackExtraRef & gsfExtra() const
reference to "extra" object
const PropagationDirection & seedDirection() const
direction of how the hits were sorted in the original seed
edm::RefVector< GsfTrackCollection > GsfTrackRefVector
vector of reference to GsfTrack in the same collection
GsfElectronCollectionStoreManager type
std::unique_ptr< reco::GsfTrackCollection > selTracks_
bool isNonnull() const
Checks for non-null.
edm::Ref< TrackExtraCollection > TrackExtraRef
persistent reference to a TrackExtra
const math::XYZPoint & innerPosition() const
position of the innermost hit
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
unsigned int innerDetId() const
DetId of the detector on which surface the innermost state is located.
std::unique_ptr< reco::GsfElectronCollection > selElectrons_
GsfElectronSelectorBase(const edm::ParameterSet &cfg)
std::unique_ptr< reco::SuperClusterCollection > selSuperClusters_
GsfElectronSelectorBase base
void setExtra(const TrackExtraRef &ref)
set reference to "extra" object
std::vector< GsfTrack > GsfTrackCollection
collection of GsfTracks
void cloneAndStore(const I &begin, const I &end, edm::Event &evt)
SuperClusterRef superCluster() const override
reference to a SuperCluster
edm::Ref< GsfTrackExtraCollection > GsfTrackExtraRef
persistent reference to a GsfTrackExtra
std::unique_ptr< TrackingRecHitCollection > selHits_
GsfElectronCollectionStoreManager(const edm::Handle< reco::GsfElectronCollection > &)
edm::Ref< GsfElectronCoreCollection > GsfElectronCoreRef