|
| AlCaHcalNoiseProducer (const edm::ParameterSet &) |
|
void | produce (edm::Event &, const edm::EventSetup &) override |
|
| ~AlCaHcalNoiseProducer () override |
|
| EDProducer () |
|
SerialTaskQueue * | globalLuminosityBlocksQueue () |
|
SerialTaskQueue * | globalRunsQueue () |
|
ModuleDescription const & | moduleDescription () const |
|
| ~EDProducer () 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) |
|
|
typedef EDProducer | ModuleType |
|
using | ModuleToResolverIndicies = std::unordered_multimap< std::string, std::tuple< edm::TypeID const *, const char *, edm::ProductResolverIndex > > |
|
typedef ProductRegistryHelper::TypeLabelList | TypeLabelList |
|
typedef ProductLabels | Labels |
|
static const std::string & | baseType () |
|
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
|
static void | prevalidate (ConfigurationDescriptions &descriptions) |
|
static bool | wantsGlobalLuminosityBlocks () |
|
static bool | wantsGlobalRuns () |
|
static bool | wantsStreamLuminosityBlocks () |
|
static bool | wantsStreamRuns () |
|
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 42 of file AlCaHcalNoiseProducer.h.
Definition at line 25 of file AlCaHcalNoiseProducer.cc.
43 for (
unsigned i = 0;
i != nLabels;
i++)
47 produces<HBHERecHitCollection>(
"HBHERecHitCollectionFHN");
48 produces<HORecHitCollection>(
"HORecHitCollectionFHN");
49 produces<HFRecHitCollection>(
"HFRecHitCollectionFHN");
51 produces<EcalRecHitCollection>(
"EcalRecHitCollectionFHN");
52 produces<EcalRecHitCollection>(
"PSEcalRecHitCollectionFHN");
54 produces<FEDRawDataCollection>(
"HcalFEDsFHN");
References ecalLabels_, edm::ParameterSet::getParameter(), mps_fire::i, JetHCALminEnergyFraction_, JetMinE_, MetCut_, tok_hbhe_, tok_hf_, tok_ho_, tok_jets_, tok_met_, tok_ps_, tok_raw_, tok_tower_, toks_ecal_, useJet_, and useMet_.
Implements edm::EDProducer.
Definition at line 60 of file AlCaHcalNoiseProducer.cc.
61 bool acceptEvent =
false;
65 bool isAnomalous_BasedOnMET =
false;
66 bool isAnomalous_BasedOnEnergyFraction =
false;
75 isAnomalous_BasedOnMET =
true;
85 std::vector<CaloTower> TowerContainer;
86 std::vector<reco::CaloJet> JetContainer;
87 TowerContainer.clear();
91 for (reco::CaloJetCollection::const_iterator calojetIter = calojetHandle->begin();
92 calojetIter != calojetHandle->end();
94 if (((calojetIter->et()) * cosh(calojetIter->eta()) >
JetMinE_) &&
96 JetContainer.push_back(*calojetIter);
97 double maxTowerE = 0.0;
99 double dR =
deltaR((*calojetIter).eta(), (*calojetIter).phi(), (*kal).eta(), (*kal).phi());
100 if ((
dR < 0.50) && (kal->p() > maxTowerE)) {
101 maxTowerE = kal->p();
105 TowerContainer.push_back(seedTower);
108 if (!JetContainer.empty()) {
110 isAnomalous_BasedOnEnergyFraction =
true;
114 acceptEvent = ((
useMet_ && isAnomalous_BasedOnMET) || (
useJet_ && isAnomalous_BasedOnEnergyFraction));
120 auto miniHBHERecHitCollection = std::make_unique<HBHERecHitCollection>();
121 auto miniHORecHitCollection = std::make_unique<HORecHitCollection>();
122 auto miniHFRecHitCollection = std::make_unique<HFRecHitCollection>();
124 auto outputEColl = std::make_unique<EcalRecHitCollection>();
125 auto outputESColl = std::make_unique<EcalRecHitCollection>();
127 auto outputFEDs = std::make_unique<FEDRawDataCollection>();
144 auto tmpEcalRecHitCollection = std::make_unique<EcalRecHitCollection>();
146 std::vector<edm::EDGetTokenT<EcalRecHitCollection> >::const_iterator
i;
151 tmpEcalRecHitCollection->push_back(*
recHit);
160 miniHBHERecHitCollection->
push_back(*hbheItr);
164 miniHORecHitCollection->
push_back(*hoItr);
169 miniHFRecHitCollection->
push_back(*hfItr);
174 for (std::vector<EcalRecHit>::const_iterator ehit = tmpEcalRecHitCollection->begin();
175 ehit != tmpEcalRecHitCollection->end();
177 outputEColl->push_back(*ehit);
192 std::vector<int> selFEDs;
194 selFEDs.push_back(
i);
205 bool rightFED =
false;
206 for (uint32_t
k = 0;
k < selFEDs.size();
k++) {
207 if (
j == selFEDs[
k]) {
219 if (fedDataProd.
size() != 0) {
225 unsigned char* dataProd = fedDataProd.
data();
226 const unsigned char*
data = fedData.
data();
227 for (
unsigned int k = 0;
k <
size; ++
k) {
236 iEvent.put(
std::move(miniHBHERecHitCollection),
"HBHERecHitCollectionFHN");
237 iEvent.put(
std::move(miniHORecHitCollection),
"HORecHitCollectionFHN");
238 iEvent.put(
std::move(miniHFRecHitCollection),
"HFRecHitCollectionFHN");
References edm::SortedCollection< T, SORT >::begin(), FEDRawData::data(), data, PbPb_ZMuSkimMuonDPG_cff::deltaR, HGC3DClusterGenMatchSelector_cfi::dR, edm::SortedCollection< T, SORT >::end(), FEDRawDataCollection::FEDData(), photonIsolationHIProducer_cfi::hbhe, photonIsolationHIProducer_cfi::hf, photonIsolationHIProducer_cfi::ho, mps_fire::i, iEvent, dqmiolumiharvest::j, JetHCALminEnergyFraction_, JetMinE_, dqmdumpme::k, FEDNumbering::MAXFEDID, FEDNumbering::MAXHCALFEDID, BTaggingMonitor_cfi::met, MetCut_, FEDNumbering::MINHCALFEDID, eostools::move(), nAnomalousEvents, nEvents, edm::Handle< T >::product(), edm::SortedCollection< T, SORT >::push_back(), rpcPointValidation_cfi::recHit, FEDRawData::resize(), FEDRawData::size(), findQualityFiles::size, tok_hbhe_, tok_hf_, tok_ho_, tok_jets_, tok_met_, tok_ps_, tok_raw_, tok_tower_, toks_ecal_, useJet_, and useMet_.