CMS 3D CMS Logo

EcalSelectiveReadoutProducer.h
Go to the documentation of this file.
1 #ifndef ECALZEROSUPPRESSIONPRODUCER_H
2 #define ECALZEROSUPPRESSIONPRODUCER_H
3 
14 
15 #include <memory>
16 #include <vector>
17 
19 public:
24 
29 
34  void produce(edm::Event& event, const edm::EventSetup& eventSetup) override;
35 
42  static void printSrFlags(std::ostream& os,
43  const EBSrFlagCollection& ebSrFlags,
44  const EESrFlagCollection& eeSrFlags,
45  int iEvent = -1,
46  bool withHeader = true);
47 
48 private:
54  void checkWeights(const edm::Event& evt, const edm::ProductID& noZSDigiId) const;
55 
61  bool getBinOfMax(const edm::Event& evt, const edm::ProductID& noZsDigiId, int& binOfMax) const;
62 
64 
66 
68 
72  void checkGeometry(const edm::EventSetup& eventSetup);
73  void checkTriggerMap(const edm::EventSetup& eventSetup);
74  void checkElecMap(const edm::EventSetup& eventSetup);
75 
77 
83  static void checkValidity(const EcalSRSettings& settings);
84 
85  void printTTFlags(const EcalTrigPrimDigiCollection& tp, std::ostream& os) const;
86 
87 private:
88  std::unique_ptr<EcalSelectiveReadoutSuppressor> suppressor_;
89  std::string digiProducer_; // name of module/plugin/producer making digis
90  std::string ebdigiCollection_; // secondary name given to collection of input digis
91  std::string eedigiCollection_; // secondary name given to collection of input digis
92  std::string ebSRPdigiCollection_; // secondary name given to collection of suppressed digis
93  std::string eeSRPdigiCollection_; // secondary name given to collection of suppressed digis
94  std::string ebSrFlagCollection_; // secondary name given to collection of SR flag digis
95  std::string eeSrFlagCollection_; // secondary name given to collection of SR flag digis
96  std::string trigPrimProducer_; // name of module/plugin/producer making triggere primitives
97  std::string trigPrimCollection_; // name of module/plugin/producer making triggere primitives
98 
99  // store the pointer, so we don't have to update it every event
104 
106 
108 
112 
116 
121 
125 
130 
135 
140  int iEvent_;
141 
145  std::unique_ptr<EcalSRSettings> settingsFromFile_;
146 
147  // Tokens for consumes collection:
148 
156 };
157 
158 #endif
EcalElectronicsMapping
Definition: EcalElectronicsMapping.h:28
EcalSelectiveReadoutProducer::settingsFromFile_
std::unique_ptr< EcalSRSettings > settingsFromFile_
Definition: EcalSelectiveReadoutProducer.h:145
EDProducer.h
EcalSelectiveReadoutProducer::checkWeights
void checkWeights(const edm::Event &evt, const edm::ProductID &noZSDigiId) const
Definition: EcalSelectiveReadoutProducer.cc:291
EcalSelectiveReadoutProducer::printTTFlags
void printTTFlags(const EcalTrigPrimDigiCollection &tp, std::ostream &os) const
Definition: EcalSelectiveReadoutProducer.cc:246
EcalSRSettingsRcd.h
EcalSelectiveReadoutProducer::digiProducer_
std::string digiProducer_
Definition: EcalSelectiveReadoutProducer.h:89
CalibrationSummaryClient_cfi.params
params
Definition: CalibrationSummaryClient_cfi.py:14
edm::EDGetTokenT< EBDigiCollection >
EcalSelectiveReadoutProducer::EE_token
edm::EDGetTokenT< EEDigiCollection > EE_token
Definition: EcalSelectiveReadoutProducer.h:150
EcalSelectiveReadoutProducer::trigPrimCollection_
std::string trigPrimCollection_
Definition: EcalSelectiveReadoutProducer.h:97
edm::SortedCollection
Definition: SortedCollection.h:49
EcalSelectiveReadoutProducer::getBinOfMax
bool getBinOfMax(const edm::Event &evt, const edm::ProductID &noZsDigiId, int &binOfMax) const
Definition: EcalSelectiveReadoutProducer.cc:338
edm::one::EDProducer
Definition: EDProducer.h:30
EcalSelectiveReadoutProducer::useFullReadout_
bool useFullReadout_
Definition: EcalSelectiveReadoutProducer.h:134
EcalSelectiveReadoutProducer::EcalSelectiveReadoutProducer
EcalSelectiveReadoutProducer(const edm::ParameterSet &params)
Definition: EcalSelectiveReadoutProducer.cc:19
ESGetToken.h
EcalSelectiveReadoutProducer::printSrFlags
static void printSrFlags(std::ostream &os, const EBSrFlagCollection &ebSrFlags, const EESrFlagCollection &eeSrFlags, int iEvent=-1, bool withHeader=true)
Definition: EcalSelectiveReadoutProducer.cc:355
EcalSRSettings.h
EcalSelectiveReadoutProducer::EcTP_token
edm::EDGetTokenT< EcalTrigPrimDigiCollection > EcTP_token
Definition: EcalSelectiveReadoutProducer.h:151
EcalSelectiveReadoutProducer::getTrigPrims
const EcalTrigPrimDigiCollection * getTrigPrims(edm::Event &event) const
Definition: EcalSelectiveReadoutProducer.cc:204
EcalSelectiveReadoutProducer::ebdigiCollection_
std::string ebdigiCollection_
Definition: EcalSelectiveReadoutProducer.h:90
CaloGeometry
Definition: CaloGeometry.h:21
EcalSelectiveReadoutProducer::checkValidity
static void checkValidity(const EcalSRSettings &settings)
Definition: EcalSelectiveReadoutProducer.cc:495
EcalSelectiveReadoutProducer::produceDigis_
bool produceDigis_
Definition: EcalSelectiveReadoutProducer.h:120
EcalSelectiveReadoutProducer::writeSrFlags_
bool writeSrFlags_
Definition: EcalSelectiveReadoutProducer.h:115
EcalSelectiveReadoutProducer::~EcalSelectiveReadoutProducer
~EcalSelectiveReadoutProducer() override
Definition: EcalSelectiveReadoutProducer.cc:87
EcalMappingRcd.h
EcalDigiCollections.h
ProductID.h
EcalSelectiveReadoutProducer::ebSrFlagCollection_
std::string ebSrFlagCollection_
Definition: EcalSelectiveReadoutProducer.h:94
cmsswSequenceInfo.tp
tp
Definition: cmsswSequenceInfo.py:17
EcalSelectiveReadoutProducer::trigPrimProducer_
std::string trigPrimProducer_
Definition: EcalSelectiveReadoutProducer.h:96
CaloGeometryRecord.h
EcalTrigTowerConstituentsMap
Definition: EcalTrigTowerConstituentsMap.h:19
EcalSelectiveReadoutProducer::eeSRPdigiCollection_
std::string eeSRPdigiCollection_
Definition: EcalSelectiveReadoutProducer.h:93
edm::ParameterSet
Definition: ParameterSet.h:47
EcalSelectiveReadoutProducer::getEBDigis
const EBDigiCollection * getEBDigis(edm::Event &event)
Definition: EcalSelectiveReadoutProducer.cc:178
EcalSelectiveReadoutProducer::suppressor_
std::unique_ptr< EcalSelectiveReadoutSuppressor > suppressor_
Definition: EcalSelectiveReadoutProducer.h:88
EBDigiCollection
Definition: EcalDigiCollections.h:56
EcalSelectiveReadoutSuppressor.h
EcalSelectiveReadoutProducer::eeSrFlagCollection_
std::string eeSrFlagCollection_
Definition: EcalSelectiveReadoutProducer.h:95
EEDigiCollection
Definition: EcalDigiCollections.h:69
EcalSelectiveReadoutProducer::eedigiCollection_
std::string eedigiCollection_
Definition: EcalSelectiveReadoutProducer.h:91
EcalSelectiveReadoutProducer::dumpFlags_
int dumpFlags_
Definition: EcalSelectiveReadoutProducer.h:111
iEvent
int iEvent
Definition: GenABIO.cc:224
EcalSelectiveReadoutProducer::hSr_token_
edm::ESGetToken< EcalSRSettings, EcalSRSettingsRcd > hSr_token_
Definition: EcalSelectiveReadoutProducer.h:152
EcalSelectiveReadoutProducer::ebSRPdigiCollection_
std::string ebSRPdigiCollection_
Definition: EcalSelectiveReadoutProducer.h:92
EcalSelectiveReadoutProducer::produce
void produce(edm::Event &event, const edm::EventSetup &eventSetup) override
Definition: EcalSelectiveReadoutProducer.cc:89
edm::EventSetup
Definition: EventSetup.h:58
EcalSelectiveReadoutProducer::theGeometry
const CaloGeometry * theGeometry
Definition: EcalSelectiveReadoutProducer.h:100
EcalSelectiveReadoutProducer::firstCallEB_
bool firstCallEB_
Definition: EcalSelectiveReadoutProducer.h:138
edm::ESGetToken< EcalSRSettings, EcalSRSettingsRcd >
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
EcalSelectiveReadoutProducer::iEvent_
int iEvent_
Definition: EcalSelectiveReadoutProducer.h:140
EcalSelectiveReadoutProducer::EB_token
edm::EDGetTokenT< EBDigiCollection > EB_token
Definition: EcalSelectiveReadoutProducer.h:149
EcalSelectiveReadoutProducer::firstCallEE_
bool firstCallEE_
Definition: EcalSelectiveReadoutProducer.h:139
EcalSRSettings
Definition: EcalSRSettings.h:27
EcalSelectiveReadoutProducer::eTTmap_token_
edm::ESGetToken< EcalTrigTowerConstituentsMap, IdealGeometryRecord > eTTmap_token_
Definition: EcalSelectiveReadoutProducer.h:154
EcalSelectiveReadoutProducer::checkTriggerMap
void checkTriggerMap(const edm::EventSetup &eventSetup)
Definition: EcalSelectiveReadoutProducer.cc:222
EcalSelectiveReadoutProducer::trigPrimBypass_
bool trigPrimBypass_
Definition: EcalSelectiveReadoutProducer.h:105
EcalSelectiveReadoutProducer
Definition: EcalSelectiveReadoutProducer.h:18
EcalSelectiveReadoutProducer::checkGeometry
void checkGeometry(const edm::EventSetup &eventSetup)
Definition: EcalSelectiveReadoutProducer.cc:210
EcalSelectiveReadoutProducer::checkElecMap
void checkElecMap(const edm::EventSetup &eventSetup)
Definition: EcalSelectiveReadoutProducer.cc:234
EcalSelectiveReadoutProducer::settings_
const EcalSRSettings * settings_
Definition: EcalSelectiveReadoutProducer.h:124
EcalSelectiveReadoutProducer::eElecmap_token_
edm::ESGetToken< EcalElectronicsMapping, EcalMappingRcd > eElecmap_token_
Definition: EcalSelectiveReadoutProducer.h:155
EcalSelectiveReadoutProducer::getEEDigis
const EEDigiCollection * getEEDigis(edm::Event &event)
Definition: EcalSelectiveReadoutProducer.cc:191
EcalSelectiveReadoutProducer::trigPrimBypassMode_
int trigPrimBypassMode_
Definition: EcalSelectiveReadoutProducer.h:107
EcalSelectiveReadoutProducer::geom_token_
edm::ESGetToken< CaloGeometry, CaloGeometryRecord > geom_token_
Definition: EcalSelectiveReadoutProducer.h:153
ConsumesCollector.h
EcalSelectiveReadoutProducer::theElecMap
const EcalElectronicsMapping * theElecMap
Definition: EcalSelectiveReadoutProducer.h:102
EcalSelectiveReadoutProducer::theTriggerTowerMap
const EcalTrigTowerConstituentsMap * theTriggerTowerMap
Definition: EcalSelectiveReadoutProducer.h:101
event
Definition: event.py:1
EcalSelectiveReadoutProducer::params_
edm::ParameterSet params_
Definition: EcalSelectiveReadoutProducer.h:103
edm::Event
Definition: Event.h:73
edm::ProductID
Definition: ProductID.h:27
EcalSelectiveReadoutProducer::useCondDb_
bool useCondDb_
Definition: EcalSelectiveReadoutProducer.h:129