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");
133 typename StoreManagerTrait = ::helper::GsfElectronCollectionStoreManagerTrait,
137 typename PostProcessor = ::helper::NullPostProcessor<reco::GsfElectronCollection> >
edm::Ref< GsfTrackCollection > GsfTrackRef
persistent reference to a GsfTrack
CollectionStoreManager< OutputCollection > type
edm::Ref< GsfElectronCoreCollection > GsfElectronCoreRef
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
size_t recHitsSize() const
Get number of RecHits. (Warning, this includes invalid hits, which are not physical hits)...
reco::GsfElectronCollection collection
CovarianceMatrix outerStateCovariance() const
outermost trajectory state curvilinear errors
const math::XYZPoint & outerPosition() const
position of the outermost hit
const math::XYZVector & outerMomentum() const
momentum vector at the outermost hit position
void setGsfExtra(const GsfTrackExtraRef &ref)
set reference to GSF "extra" object
std::vector< GsfTrackExtra > GsfTrackExtraCollection
collection of GsfTrackExtra objects
bool isNonnull() const
Checks for non-null.
std::unique_ptr< reco::GsfTrackCollection > selTracks_
std::unique_ptr< reco::GsfElectronCollection > selElectrons_
edm::Ref< TrackExtraCollection > TrackExtraRef
persistent reference to a TrackExtra
edm::Ptr< CaloCluster > CaloClusterPtr
edm::OrphanHandle< reco::GsfElectronCollection > put(edm::Event &evt)
std::unique_ptr< TrackingRecHitCollection > selHits_
void cloneAndStore(const I &begin, const I &end, edm::Event &evt)
edm::Ref< SuperClusterCollection > SuperClusterRef
reference to an object in a collection of SuperCluster objects
std::vector< GsfElectron > GsfElectronCollection
collection of GsfElectron objects
CovarianceMatrix innerStateCovariance() const
innermost trajectory state curvilinear errors
auto recHits() const
Access to reconstructed hits on the track.
GsfTrackRef gsfTrack() const override
reference to a GsfTrack
edm::RefToBase< reco::Track > TrackBaseRef
persistent reference to a Track, using views
std::vector< SuperCluster > SuperClusterCollection
collection of SuperCluser objectr
GsfElectronSelectorBase base
std::vector< GsfElectronCore > GsfElectronCoreCollection
std::vector< GsfTrack > GsfTrackCollection
collection of GsfTracks
GsfElectronCollectionStoreManager type
std::unique_ptr< reco::TrackExtraCollection > selTrackExtras_
const std::complex< double > I
edm::RefVector< GsfTrackCollection > GsfTrackRefVector
vector of reference to GsfTrack in the same collection
unsigned int innerDetId() const
DetId of the detector on which surface the innermost state is located.
GsfElectronCollectionStoreManager(const edm::Handle< reco::GsfElectronCollection > &)
virtual GsfElectronCoreRef core() const
std::unique_ptr< reco::SuperClusterCollection > selSuperClusters_
edm::Ref< GsfTrackExtraCollection > GsfTrackExtraRef
persistent reference to a GsfTrackExtra
bool innerOk() const
return true if the innermost hit is valid
const PropagationDirection & seedDirection() const
direction of how the hits were sorted in the original seed
std::vector< TrackExtra > TrackExtraCollection
collection of TrackExtra objects
void setExtra(const TrackExtraRef &ref)
set reference to "extra" object
ObjectSelectorBase< OutputCollection, EdmFilter > base
const GsfTrackExtraRef & gsfExtra() const
reference to "extra" object
edm::Ref< TrackCollection > TrackRef
persistent reference to a Track
unsigned int outerDetId() const
DetId of the detector on which surface the outermost state is located.
std::unique_ptr< reco::GsfTrackExtraCollection > selGsfTrackExtras_
std::unique_ptr< reco::GsfElectronCoreCollection > selElectronCores_
GsfElectronSelectorBase(const edm::ParameterSet &cfg)
const math::XYZVector & innerMomentum() const
momentum vector at the innermost hit position
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
const math::XYZPoint & innerPosition() const
position of the innermost hit
SuperClusterRef superCluster() const override
reference to a SuperCluster
bool outerOk() const
return true if the outermost hit is valid
const TrackExtraRef & extra() const
reference to "extra" object