|
| L1TrackVertexAssociationProducer (const edm::ParameterSet &) |
|
| ~L1TrackVertexAssociationProducer () override |
|
| EDProducer ()=default |
|
| EDProducer (const EDProducer &)=delete |
|
bool | hasAbilityToProduceInBeginLumis () const final |
|
bool | hasAbilityToProduceInBeginProcessBlocks () const final |
|
bool | hasAbilityToProduceInBeginRuns () const final |
|
bool | hasAbilityToProduceInEndLumis () const final |
|
bool | hasAbilityToProduceInEndProcessBlocks () const final |
|
bool | hasAbilityToProduceInEndRuns () const final |
|
EDProducer & | operator= (const EDProducer &)=delete |
|
bool | wantsGlobalLuminosityBlocks () const final |
|
bool | wantsGlobalRuns () const final |
|
bool | wantsInputProcessBlocks () const final |
|
bool | wantsProcessBlocks () 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 const &)=delete |
|
| EDConsumerBase (EDConsumerBase &&)=default |
|
ESResolverIndex const * | esGetTokenIndices (edm::Transition iTrans) const |
|
std::vector< ESResolverIndex > const & | esGetTokenIndicesVector (edm::Transition iTrans) const |
|
std::vector< ESRecordIndex > const & | esGetTokenRecordIndicesVector (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::array< std::vector< ModuleDescription const *> *, NumBranchTypes > &modulesAll, std::vector< ModuleProcessName > &modulesInPreviousProcesses, ProductRegistry const &preg, std::map< std::string, ModuleDescription const *> const &labelsToDesc, std::string const &processName) const |
|
EDConsumerBase const & | operator= (EDConsumerBase const &)=delete |
|
EDConsumerBase & | operator= (EDConsumerBase &&)=default |
|
bool | registeredToConsume (ProductResolverIndex, bool, BranchType) const |
|
void | selectInputProcessBlocks (ProductRegistry const &productRegistry, ProcessBlockHelperBase const &processBlockHelperBase) |
|
ProductResolverIndexAndSkipBit | uncheckedIndexFrom (EDGetToken) const |
|
void | updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet) |
|
void | updateLookup (eventsetup::ESRecordsToProductResolverIndices const &) |
|
virtual | ~EDConsumerBase () noexcept(false) |
|
|
typedef EDProducerBase | ModuleType |
|
template<typename T > |
using | BranchAliasSetterT = ProductRegistryHelper::BranchAliasSetterT< T > |
|
using | ModuleToResolverIndicies = std::unordered_multimap< std::string, std::tuple< edm::TypeID const *, const char *, edm::ProductResolverIndex > > |
|
typedef ProductRegistryHelper::TypeLabelList | TypeLabelList |
|
typedef ProductLabels | Labels |
|
template<Transition Tr = Transition::Event> |
auto | produces (std::string instanceName) noexcept |
| declare what type of product will make and with which optional label More...
|
|
template<Transition B> |
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) |
|
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 () |
|
template<typename ProductType , BranchType B> |
BranchAliasSetterT< ProductType > | produces (std::string instanceName) |
|
template<typename ProductType , BranchType B> |
BranchAliasSetterT< ProductType > | produces () |
|
template<class ProductType > |
BranchAliasSetterT< ProductType > | produces (std::string instanceName) |
|
template<typename ProductType , Transition B> |
BranchAliasSetterT< ProductType > | produces () |
|
template<Transition Tr = Transition::Event> |
auto | produces () noexcept |
|
ProducesCollector | producesCollector () |
|
template<typename ProductType , BranchType B = InEvent> |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
|
template<BranchType B = InEvent> |
EDConsumerBaseAdaptor< B > | consumes (edm::InputTag tag) noexcept |
|
EDGetToken | consumes (const TypeToGet &id, 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 ESProduct , typename ESRecord , Transition Tr = Transition::Event> |
auto | esConsumes () |
|
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> |
auto | esConsumes (ESInputTag const &tag) |
|
template<Transition Tr = Transition::Event> |
constexpr auto | esConsumes () |
|
template<Transition Tr = Transition::Event> |
auto | esConsumes (ESInputTag tag) |
|
template<Transition Tr = Transition::Event> |
ESGetTokenGeneric | esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey) |
| Used with EventSetupRecord::doGet. More...
|
|
template<typename ProductType , BranchType B = InEvent> |
EDGetTokenT< ProductType > | mayConsume (edm::InputTag const &tag) |
|
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
|
template<BranchType B> |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
|
void | resetItemsToGetFrom (BranchType iType) |
|
Description: Selects a set of L1Tracks based on a set of predefined criteria.
Implementation: Inputs: std::vector<TTTrack> - Each floating point TTTrack inside this collection inherits from a bit-accurate TTTrack_TrackWord, used for emulation purposes. Outputs: std::vector<TTTrack> - A collection of TTTracks selected from cuts on the TTTrack properties std::vector<TTTrack> - A collection of TTTracks selected from cuts on the TTTrack_TrackWord properties
Definition at line 70 of file L1TrackVertexAssociationProducer.cc.
Definition at line 219 of file L1TrackVertexAssociationProducer.cc.
References edm::RefVector< C, T, F >::begin(), debug_, edm::RefVector< C, T, F >::end(), dqm-mbProfile::log, printTrackInfo(), processEmulatedTracks_, processSimulatedTracks_, DBoxMetadataHelper::set_difference(), and HLT_2023v12_cff::track.
Referenced by produce().
226 log <<
"The original selected track collection (pt, eta, phi, nstub, bendchi2, chi2rz, chi2rphi, z0) values are " 228 for (
const auto&
track : *l1SelectedTracksHandle) {
231 log <<
"\t---\n\tNumber of tracks in this selection = " << l1SelectedTracksHandle->size() <<
"\n\n";
234 log <<
"The original selected emulated track collection (pt, eta, phi, nstub, bendchi2, chi2rz, chi2rphi, z0) " 236 for (
const auto&
track : *l1SelectedTracksEmulationHandle) {
239 log <<
"\t---\n\tNumber of tracks in this selection = " << l1SelectedTracksEmulationHandle->size() <<
"\n\n";
245 l1SelectedTracksHandle->end(),
246 l1SelectedTracksEmulationHandle->begin(),
247 l1SelectedTracksEmulationHandle->end(),
248 std::back_inserter(inSimButNotEmu));
250 l1SelectedTracksEmulationHandle->end(),
251 l1SelectedTracksHandle->begin(),
252 l1SelectedTracksHandle->end(),
253 std::back_inserter(inEmuButNotSim));
254 log <<
"The set of tracks selected via cuts on the simulated values which are not in the set of tracks selected " 255 "by cutting on the emulated values ... \n";
256 for (
const auto&
track : inSimButNotEmu) {
259 log <<
"\t---\n\tNumber of tracks in this selection = " << inSimButNotEmu.size() <<
"\n\n" 260 <<
"The set of tracks selected via cuts on the emulated values which are not in the set of tracks selected " 261 "by cutting on the simulated values ... \n";
262 for (
const auto&
track : inEmuButNotSim) {
265 log <<
"\t---\n\tNumber of tracks in this selection = " << inEmuButNotSim.size() <<
"\n\n";
268 log <<
"The selected and leading vertex associated track collection (pt, eta, phi, nstub, bendchi2, chi2rz, " 269 "chi2rphi, z0) values are ... \n";
270 for (
const auto&
track : *vTTTrackAssociatedOutput) {
273 log <<
"\t---\n\tNumber of tracks in this selection = " << vTTTrackAssociatedOutput->size() <<
"\n\n";
276 log <<
"The emulation selected and leading vertex associated track collection (pt, eta, phi, nstub, bendchi2, " 277 "chi2rz, chi2rphi, z0) values are " 279 for (
const auto&
track : *vTTTrackAssociatedEmulationOutput) {
282 log <<
"\t---\n\tNumber of tracks in this selection = " << vTTTrackAssociatedEmulationOutput->size() <<
"\n\n";
288 vTTTrackAssociatedOutput->end(),
289 vTTTrackAssociatedEmulationOutput->begin(),
290 vTTTrackAssociatedEmulationOutput->end(),
291 std::back_inserter(inSimButNotEmu));
293 vTTTrackAssociatedEmulationOutput->end(),
294 vTTTrackAssociatedOutput->begin(),
295 vTTTrackAssociatedOutput->end(),
296 std::back_inserter(inEmuButNotSim));
297 log <<
"The set of vertex associated tracks selected via cuts on the simulated values which are not in the set of " 299 "by cutting on the emulated values ... \n";
300 for (
const auto&
track : inSimButNotEmu) {
303 log <<
"\t---\n\tNumber of tracks in this selection = " << inSimButNotEmu.size() <<
"\n\n" 304 <<
"The set of vertex associated tracks selected via cuts on the emulated values which are not in the set of " 306 "by cutting on the simulated values ... \n";
307 for (
const auto&
track : inEmuButNotSim) {
310 log <<
"\t---\n\tNumber of tracks in this selection = " << inEmuButNotSim.size() <<
"\n\n";
void printTrackInfo(edm::LogInfo &log, const TTTrackType &track, bool printEmulation=false) const
const bool processEmulatedTracks_
edm::RefVector< TTTrackCollectionType > TTTrackRefCollectionType
const bool processSimulatedTracks_
Implements edm::global::EDProducerBase.
Definition at line 340 of file L1TrackVertexAssociationProducer.cc.
References debug_, deltaZMax_, deltaZMaxEtaBounds_, iEvent, l1SelectedTracksEmulationToken_, l1SelectedTracksToken_, l1VerticesEmulationToken_, l1VerticesToken_, eostools::move(), outputCollectionName_, printDebugInfo(), processEmulatedTracks_, processSimulatedTracks_, edm::refToPtr(), edm::RefVector< C, T, F >::size(), HLT_2023v12_cff::track, l1t::Vertex::z0(), and l1t::VertexWord::z0().
341 auto vTTTrackAssociatedOutput = std::make_unique<TTTrackRefCollectionType>();
342 auto vTTTrackAssociatedEmulationOutput = std::make_unique<TTTrackRefCollectionType>();
359 size_t nOutputApproximate = l1SelectedTracksHandle->size();
360 leadingVertex = l1VerticesHandle->at(0);
362 edm::LogInfo(
"L1TrackVertexAssociationProducer") <<
"leading vertex z0 = " << leadingVertex.
z0();
364 vTTTrackAssociatedOutput->reserve(nOutputApproximate);
365 for (
const auto& trackword : *l1SelectedTracksHandle) {
368 if (deltaZSel(*trackword, leadingVertex)) {
369 vTTTrackAssociatedOutput->push_back(trackword);
377 size_t nOutputApproximateEmulation = l1SelectedTracksEmulationHandle->
size();
378 leadingEmulationVertex = l1VerticesEmulationHandle->at(0);
381 <<
"leading emulation vertex z0 = " << leadingEmulationVertex.
z0();
383 vTTTrackAssociatedEmulationOutput->reserve(nOutputApproximateEmulation);
384 for (
const auto& trackword : *l1SelectedTracksEmulationHandle) {
386 if (deltaZSelEmu(*trackword, leadingEmulationVertex)) {
387 vTTTrackAssociatedEmulationOutput->push_back(trackword);
395 l1SelectedTracksEmulationHandle,
396 vTTTrackAssociatedOutput,
397 vTTTrackAssociatedEmulationOutput);
Ptr< typename C::value_type > refToPtr(Ref< C, typename C::value_type, refhelper::FindUsingAdvance< C, typename C::value_type > > const &ref)
const std::string outputCollectionName_
const bool processEmulatedTracks_
const edm::EDGetTokenT< l1t::VertexCollection > l1VerticesToken_
const edm::EDGetTokenT< TTTrackRefCollectionType > l1SelectedTracksToken_
Log< level::Info, false > LogInfo
std::vector< double > deltaZMax_
size_type size() const
Size of the RefVector.
void printDebugInfo(const edm::Handle< TTTrackRefCollectionType > &l1SelectedTracksHandle, const edm::Handle< TTTrackRefCollectionType > &l1SelectedTracksEmulationHandle, const TTTrackRefCollectionUPtr &vTTTrackAssociatedOutput, const TTTrackRefCollectionUPtr &vTTTrackAssociatedEmulationOutput) const
std::vector< double > deltaZMaxEtaBounds_
const edm::EDGetTokenT< l1t::VertexWordCollection > l1VerticesEmulationToken_
const edm::EDGetTokenT< TTTrackRefCollectionType > l1SelectedTracksEmulationToken_
const bool processSimulatedTracks_