|
float | CorrectedEta (float eta, float zv) const |
|
| L1TkEmParticleProducer (const edm::ParameterSet &) |
|
| ~L1TkEmParticleProducer () override |
|
| EDProducer ()=default |
|
bool | hasAbilityToProduceInBeginLumis () const final |
|
bool | hasAbilityToProduceInBeginRuns () const final |
|
bool | hasAbilityToProduceInEndLumis () const final |
|
bool | hasAbilityToProduceInEndRuns () const final |
|
bool | wantsGlobalLuminosityBlocks () const final |
|
bool | wantsGlobalRuns () const final |
|
bool | wantsStreamLuminosityBlocks () const final |
|
bool | wantsStreamRuns () const final |
|
| EDProducerBase () |
|
ModuleDescription const & | moduleDescription () const |
|
| ~EDProducerBase () override |
|
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
|
std::vector< edm::ProductResolverIndex > const & | indiciesForPutProducts (BranchType iBranchType) const |
|
| ProducerBase () |
|
std::vector< edm::ProductResolverIndex > const & | putTokenIndexToProductResolverIndex () const |
|
std::vector< bool > const & | recordProvenanceList () const |
|
void | registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &) |
|
std::function< void(BranchDescription const &)> | registrationCallback () const |
| used by the fwk to register list of products More...
|
|
void | resolvePutIndicies (BranchType iBranchType, ModuleToResolverIndicies const &iIndicies, std::string const &moduleLabel) |
|
TypeLabelList const & | typeLabelList () const |
| used by the fwk to register the list of products of this module More...
|
|
| ~ProducerBase () noexcept(false) override |
|
std::vector< ConsumesInfo > | consumesInfo () const |
|
void | convertCurrentProcessAlias (std::string const &processName) |
| Convert "@currentProcess" in InputTag process names to the actual current process name. More...
|
|
| EDConsumerBase () |
|
| EDConsumerBase (EDConsumerBase &&)=default |
|
| EDConsumerBase (EDConsumerBase const &)=delete |
|
ESProxyIndex const * | esGetTokenIndices (edm::Transition iTrans) const |
|
ProductResolverIndexAndSkipBit | indexFrom (EDGetToken, BranchType, TypeID const &) const |
|
void | itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const |
|
void | itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const |
|
std::vector< ProductResolverIndexAndSkipBit > const & | itemsToGetFrom (BranchType iType) const |
|
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
|
void | modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const |
|
EDConsumerBase & | operator= (EDConsumerBase &&)=default |
|
EDConsumerBase const & | operator= (EDConsumerBase const &)=delete |
|
bool | registeredToConsume (ProductResolverIndex, bool, BranchType) const |
|
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
|
ProductResolverIndexAndSkipBit | uncheckedIndexFrom (EDGetToken) const |
|
void | updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet) |
|
void | updateLookup (eventsetup::ESRecordsToProxyIndices const &) |
|
virtual | ~EDConsumerBase () noexcept(false) |
|
|
template<class ProductType > |
BranchAliasSetterT< ProductType > | produces () |
| declare what type of product will make and with which optional label More...
|
|
template<typename ProductType , BranchType B> |
BranchAliasSetterT< ProductType > | produces () |
|
template<typename ProductType , Transition B> |
BranchAliasSetterT< ProductType > | produces () |
|
BranchAliasSetter | produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true) |
|
template<BranchType B> |
BranchAliasSetter | produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true) |
|
template<Transition B> |
BranchAliasSetter | produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true) |
|
template<typename ProductType , Transition B> |
BranchAliasSetterT< ProductType > | produces (std::string instanceName) |
|
template<class ProductType > |
BranchAliasSetterT< ProductType > | produces (std::string instanceName) |
|
template<typename ProductType , BranchType B> |
BranchAliasSetterT< ProductType > | produces (std::string instanceName) |
|
ProducesCollector | producesCollector () |
|
EDGetToken | consumes (const TypeToGet &id, edm::InputTag const &tag) |
|
template<typename ProductType , BranchType B = InEvent> |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
|
template<BranchType B> |
EDGetToken | consumes (TypeToGet const &id, edm::InputTag const &tag) |
|
ConsumesCollector | consumesCollector () |
| Use a ConsumesCollector to gather consumes information from helper functions. More...
|
|
template<typename ProductType , BranchType B = InEvent> |
void | consumesMany () |
|
void | consumesMany (const TypeToGet &id) |
|
template<BranchType B> |
void | consumesMany (const TypeToGet &id) |
|
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> |
auto | esConsumes () |
|
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> |
auto | esConsumes (ESInputTag const &tag) |
|
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
|
template<BranchType B> |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
|
template<typename ProductType , BranchType B = InEvent> |
EDGetTokenT< ProductType > | mayConsume (edm::InputTag const &tag) |
|
Definition at line 46 of file L1TkEmParticleProducer.cc.
Implements edm::global::EDProducerBase.
Definition at line 118 of file L1TkEmParticleProducer.cc.
121 auto result = std::make_unique<TkEmCollection>();
134 float zvtxL1tk = -999;
138 if (!L1VertexHandle.
isValid()) {
140 <<
"Warning: TkPrimaryVertexCollection not found in the event. Won't use any PrimaryVertex constraint."
142 primaryVtxConstrain =
false;
144 std::vector<TkPrimaryVertex>::const_iterator vtxIter = L1VertexHandle->begin();
147 zvtxL1tk = vtxIter->zvertex();
150 if (!L1TTTrackHandle.
isValid()) {
151 LogError(
"L1TkEmParticleProducer") <<
"\nWarning: L1TTTrackCollectionType not found in the event. Exit."
159 LogError(
"L1TkEmParticleProducer") <<
"\nWarning: L1EmCollection not found in the event. Exit." << std::endl;
164 for (egIter = eGammaCollection.
begin(0); egIter != eGammaCollection.
end(0); ++egIter)
169 float eta = egIter->eta();
175 float phi = egIter->phi();
176 float et = egIter->et();
184 float trkisol = -999;
187 float trkisolPV = -999;
189 for (
const auto&
track : *L1TTTrackHandle) {
190 float Pt =
track.momentum().perp();
191 float Eta =
track.momentum().eta();
193 float z =
track.POCA().z();
203 if (dr < dRMax_ && dr >=
dRMin_) {
212 if (dr < dRMax_ && dr >=
dRMin_) {
220 trkisolPV = sumPtPV /
et;
228 if (primaryVtxConstrain) {
References funct::abs(), BXVector< T >::begin(), hltPixelTracks_cff::chi2, chi2Max_, CorrectedEta(), reco::deltaR(), deltaZMax_, flavorHistoryFilter_cfi::dr, dRMin_, egToken_, BXVector< T >::end(), EgHLTOffHistBins_cfi::et, PVValHelper::eta, etMin_, iEvent, isoCut_, edm::HandleBase::isValid(), label_, eostools::move(), phi, VtxSmearedParameters_cfi::Phi, primaryVtxConstrain_, edm::Handle< T >::product(), pTMinTra_, relativeIsolation_, mps_fire::result, TtFullHadEvtBuilder_cfi::sumPt, HLT_2018_cff::track, trackToken_, vertexToken_, z, and zMax_.