|
| 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 |
|
ESProxyIndex const * | esGetTokenIndices (edm::Transition iTrans) const |
|
std::vector< ESProxyIndex > 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 |
|
bool | registeredToConsumeMany (TypeID const &, 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::ESRecordsToProxyIndices const &) |
|
virtual | ~EDConsumerBase () noexcept(false) |
|
|
typedef EDProducerBase | ModuleType |
|
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 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) |
|
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, dqmMemoryStats::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);
127 for (std::vector<reco::Track>::const_iterator ittrk =
Tracks->begin(), edtrk =
Tracks->end(); ittrk != edtrk;
130 LogDebug(
"AlignmentPrescaler") <<
"Loop on hits of track #" << (ittrk -
Tracks->begin()) << std::endl;
133 bool firstTakenHit =
false;
135 for (
auto const&
hit : ittrk->recHits()) {
136 if (!
hit->isValid()) {
140 uint32_t tmpdetid =
hit->geographicalId().rawId();
141 tpresc_->GetEntryWithIndex(tmpdetid);
146 int subdetId =
hit->geographicalId().subdetId();
149 bool isOverlapHit =
false;
159 const std::type_info&
type =
typeid(*hit);
167 if (stripType == 1) {
170 if (stripHit1D !=
nullptr) {
172 tmpflag = InValMap[stripclust];
173 tmpflag.SetDetId(
hit->geographicalId());
174 if (tmpflag.isOverlap())
177 <<
"~*~*~* Prescale (1D) for module " << tmpflag.detId().rawId() <<
"(" 178 << InValMap[stripclust].detId().rawId() <<
") is " <<
hitPrescFactor_ << std::flush;
179 if (tmpflag.isOverlap())
180 LogDebug(
"AlignmentPrescaler") <<
" (it is Overlap)";
182 }
else if (stripType == 2) {
184 if (stripHit2D !=
nullptr) {
186 tmpflag = InValMap[stripclust];
187 tmpflag.SetDetId(
hit->geographicalId());
188 if (tmpflag.isOverlap())
191 <<
"~*~*~* Prescale (2D) for module " << tmpflag.detId().rawId() <<
"(" 192 << InValMap[stripclust].detId().rawId() <<
") is " <<
hitPrescFactor_ << std::flush;
193 if (tmpflag.isOverlap())
194 LogDebug(
"AlignmentPrescaler") <<
" (it is Overlap)" << endl;
203 tmpflag = InValMap[pixclust];
204 tmpflag.SetDetId(
hit->geographicalId());
205 if (tmpflag.isOverlap())
212 LogDebug(
"AlignmentPrescaler") <<
" DetId=" << tmpdetid <<
" is Overlap! " << flush;
220 LogDebug(
"AlignmentPrescaler") <<
" DetId=" << tmpdetid <<
" taken!" << flush;
221 tmpflag.SetTakenFlag();
224 if (stripType == 1) {
226 InValMap[stripclust] = tmpflag;
227 }
else if (stripType == 2) {
229 InValMap[stripclust] = tmpflag;
231 std::cout <<
"Unknown type of strip hit" << std::endl;
234 InValMap[pixclust] = tmpflag;
237 if (!firstTakenHit) {
238 firstTakenHit =
true;
239 LogDebug(
"AlignmentPrescaler") <<
"Index of the track iterator is " << ittrk -
Tracks->begin();
245 trackflags[ittrk -
Tracks->begin()] = ntakenhits;
250 auto OutVM = std::make_unique<AliClusterValueMap>();
255 auto trkVM = std::make_unique<AliTrackTakenClusterValueMap>();
257 trkmapfiller.insert(
Tracks, trackflags.begin(), trackflags.end());
ClusterRef cluster() const
float overlapPrescFactor_
edm::EDGetTokenT< AliClusterValueMap > aliClusterToken_
edm::EDGetTokenT< reco::TrackCollection > tracksToken_
ClusterRef cluster() const