|
| AlignmentPrescaler (const edm::ParameterSet &iConfig) |
|
void | beginJob () override |
|
void | endJob () override |
|
void | produce (edm::Event &iEvent, const edm::EventSetup &iSetup) override |
|
| ~AlignmentPrescaler () override |
|
| EDProducer ()=default |
|
| EDProducer (const EDProducer &)=delete |
|
SerialTaskQueue * | globalLuminosityBlocksQueue () final |
|
SerialTaskQueue * | globalRunsQueue () final |
|
bool | hasAbilityToProduceInBeginLumis () const final |
|
bool | hasAbilityToProduceInBeginProcessBlocks () const final |
|
bool | hasAbilityToProduceInBeginRuns () const final |
|
bool | hasAbilityToProduceInEndLumis () const final |
|
bool | hasAbilityToProduceInEndProcessBlocks () const final |
|
bool | hasAbilityToProduceInEndRuns () const final |
|
const EDProducer & | operator= (const EDProducer &)=delete |
|
bool | wantsGlobalLuminosityBlocks () const final |
|
bool | wantsGlobalRuns () const final |
|
bool | wantsInputProcessBlocks () const final |
|
bool | wantsProcessBlocks () const final |
|
| EDProducerBase () |
|
ModuleDescription const & | moduleDescription () const |
|
bool | wantsStreamLuminosityBlocks () const |
|
bool | wantsStreamRuns () 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) |
|
Definition at line 38 of file AlignmentPrescaler.cc.
Implements edm::one::EDProducerBase.
Definition at line 111 of file AlignmentPrescaler.cc.
References aliClusterToken_, SiStripRecHit1D::cluster(), SiStripRecHit2D::cluster(), gather_cfg::cout, nano_mu_digi_cff::float, hitPrescFactor_, iEvent, LogDebug, eostools::move(), myrand_, overlapPrescFactor_, pixelClusterTagInfos_cfi::pixelhit, findQualityFiles::rr, tpresc_, gather_cfg::Tracks, and tracksToken_.
112 LogDebug(
"AlignmentPrescaler") <<
"\n\n#################\n### Starting the AlignmentPrescaler::produce ; Event: " 113 <<
iEvent.id().run() <<
", " <<
iEvent.id().event() << std::endl;
122 std::vector<int> trackflags(
Tracks->size(), 0);
125 for (std::vector<reco::Track>::const_iterator ittrk =
Tracks->begin(), edtrk =
Tracks->end(); ittrk != edtrk;
128 LogDebug(
"AlignmentPrescaler") <<
"Loop on hits of track #" << (ittrk -
Tracks->begin()) << std::endl;
130 bool firstTakenHit =
false;
132 for (
auto const&
hit : ittrk->recHits()) {
133 if (!
hit->isValid()) {
136 uint32_t tmpdetid =
hit->geographicalId().rawId();
137 tpresc_->GetEntryWithIndex(tmpdetid);
142 int subdetId =
hit->geographicalId().subdetId();
145 bool isOverlapHit =
false;
155 const std::type_info&
type =
typeid(*hit);
163 if (stripType == 1) {
166 if (stripHit1D !=
nullptr) {
168 tmpflag = InValMap[stripclust];
169 tmpflag.SetDetId(
hit->geographicalId());
170 if (tmpflag.isOverlap())
173 <<
"~*~*~* Prescale (1D) for module " << tmpflag.detId().rawId() <<
"(" 174 << InValMap[stripclust].detId().rawId() <<
") is " <<
hitPrescFactor_ << std::flush;
175 if (tmpflag.isOverlap())
176 LogDebug(
"AlignmentPrescaler") <<
" (it is Overlap)";
178 }
else if (stripType == 2) {
180 if (stripHit2D !=
nullptr) {
182 tmpflag = InValMap[stripclust];
183 tmpflag.SetDetId(
hit->geographicalId());
184 if (tmpflag.isOverlap())
187 <<
"~*~*~* Prescale (2D) for module " << tmpflag.detId().rawId() <<
"(" 188 << InValMap[stripclust].detId().rawId() <<
") is " <<
hitPrescFactor_ << std::flush;
189 if (tmpflag.isOverlap())
190 LogDebug(
"AlignmentPrescaler") <<
" (it is Overlap)" << endl;
198 tmpflag = InValMap[pixclust];
199 tmpflag.SetDetId(
hit->geographicalId());
200 if (tmpflag.isOverlap())
207 LogDebug(
"AlignmentPrescaler") <<
" DetId=" << tmpdetid <<
" is Overlap! " << flush;
215 LogDebug(
"AlignmentPrescaler") <<
" DetId=" << tmpdetid <<
" taken!" << flush;
216 tmpflag.SetTakenFlag();
219 if (stripType == 1) {
221 InValMap[stripclust] = tmpflag;
222 }
else if (stripType == 2) {
224 InValMap[stripclust] = tmpflag;
226 std::cout <<
"Unknown type of strip hit" << std::endl;
229 InValMap[pixclust] = tmpflag;
232 if (!firstTakenHit) {
233 firstTakenHit =
true;
234 LogDebug(
"AlignmentPrescaler") <<
"Index of the track iterator is " << ittrk -
Tracks->begin();
239 trackflags[ittrk -
Tracks->begin()] = ntakenhits;
244 auto OutVM = std::make_unique<AliClusterValueMap>();
249 auto trkVM = std::make_unique<AliTrackTakenClusterValueMap>();
251 trkmapfiller.insert(
Tracks, trackflags.begin(), trackflags.end());
ClusterRef cluster() const
float overlapPrescFactor_
edm::EDGetTokenT< AliClusterValueMap > aliClusterToken_
edm::EDGetTokenT< reco::TrackCollection > tracksToken_
ClusterRef cluster() const