CMS 3D CMS Logo

EcalSelectiveReadoutProducer.h
Go to the documentation of this file.
1 #ifndef ECALZEROSUPPRESSIONPRODUCER_H
2 #define ECALZEROSUPPRESSIONPRODUCER_H
3 
10 
11 #include <memory>
12 #include <vector>
13 
15 public:
20 
25 
30  void produce(edm::Event& event, const edm::EventSetup& eventSetup) override;
31 
38  static void printSrFlags(std::ostream& os,
39  const EBSrFlagCollection& ebSrFlags,
40  const EESrFlagCollection& eeSrFlags,
41  int iEvent = -1,
42  bool withHeader = true);
43 
44 private:
50  void checkWeights(const edm::Event& evt, const edm::ProductID& noZSDigiId) const;
51 
57  bool getBinOfMax(const edm::Event& evt, const edm::ProductID& noZsDigiId, int& binOfMax) const;
58 
60 
62 
64 
68  void checkGeometry(const edm::EventSetup& eventSetup);
69  void checkTriggerMap(const edm::EventSetup& eventSetup);
70  void checkElecMap(const edm::EventSetup& eventSetup);
71 
73 
79  static void checkValidity(const EcalSRSettings& settings);
80 
81  void printTTFlags(const EcalTrigPrimDigiCollection& tp, std::ostream& os) const;
82 
83 private:
84  std::unique_ptr<EcalSelectiveReadoutSuppressor> suppressor_;
85  std::string digiProducer_; // name of module/plugin/producer making digis
86  std::string ebdigiCollection_; // secondary name given to collection of input digis
87  std::string eedigiCollection_; // secondary name given to collection of input digis
88  std::string ebSRPdigiCollection_; // secondary name given to collection of suppressed digis
89  std::string eeSRPdigiCollection_; // secondary name given to collection of suppressed digis
90  std::string ebSrFlagCollection_; // secondary name given to collection of SR flag digis
91  std::string eeSrFlagCollection_; // secondary name given to collection of SR flag digis
92  std::string trigPrimProducer_; // name of module/plugin/producer making triggere primitives
93  std::string trigPrimCollection_; // name of module/plugin/producer making triggere primitives
94 
95  // store the pointer, so we don't have to update it every event
100 
102 
104 
108 
112 
117 
121 
126 
131 
136  int iEvent_;
137 
141  std::unique_ptr<EcalSRSettings> settingsFromFile_;
142 
143  // Tokens for consumes collection:
144 
148 };
149 
150 #endif
EcalElectronicsMapping
Definition: EcalElectronicsMapping.h:28
EcalSelectiveReadoutProducer::settingsFromFile_
std::unique_ptr< EcalSRSettings > settingsFromFile_
Definition: EcalSelectiveReadoutProducer.h:141
EDProducer.h
EcalSelectiveReadoutProducer::checkWeights
void checkWeights(const edm::Event &evt, const edm::ProductID &noZSDigiId) const
Definition: EcalSelectiveReadoutProducer.cc:292
EcalSelectiveReadoutProducer::printTTFlags
void printTTFlags(const EcalTrigPrimDigiCollection &tp, std::ostream &os) const
Definition: EcalSelectiveReadoutProducer.cc:247
EcalSelectiveReadoutProducer::digiProducer_
std::string digiProducer_
Definition: EcalSelectiveReadoutProducer.h:85
CalibrationSummaryClient_cfi.params
params
Definition: CalibrationSummaryClient_cfi.py:14
edm::EDGetTokenT< EBDigiCollection >
EcalSelectiveReadoutProducer::EE_token
edm::EDGetTokenT< EEDigiCollection > EE_token
Definition: EcalSelectiveReadoutProducer.h:146
EcalSelectiveReadoutProducer::trigPrimCollection_
std::string trigPrimCollection_
Definition: EcalSelectiveReadoutProducer.h:93
edm::SortedCollection
Definition: SortedCollection.h:49
EcalSelectiveReadoutProducer::getBinOfMax
bool getBinOfMax(const edm::Event &evt, const edm::ProductID &noZsDigiId, int &binOfMax) const
Definition: EcalSelectiveReadoutProducer.cc:339
edm::one::EDProducer
Definition: EDProducer.h:30
EcalSelectiveReadoutProducer::useFullReadout_
bool useFullReadout_
Definition: EcalSelectiveReadoutProducer.h:130
EcalSelectiveReadoutProducer::EcalSelectiveReadoutProducer
EcalSelectiveReadoutProducer(const edm::ParameterSet &params)
Definition: EcalSelectiveReadoutProducer.cc:20
EcalSelectiveReadoutProducer::printSrFlags
static void printSrFlags(std::ostream &os, const EBSrFlagCollection &ebSrFlags, const EESrFlagCollection &eeSrFlags, int iEvent=-1, bool withHeader=true)
Definition: EcalSelectiveReadoutProducer.cc:356
EcalSRSettings.h
EcalSelectiveReadoutProducer::EcTP_token
edm::EDGetTokenT< EcalTrigPrimDigiCollection > EcTP_token
Definition: EcalSelectiveReadoutProducer.h:147
EcalSelectiveReadoutProducer::getTrigPrims
const EcalTrigPrimDigiCollection * getTrigPrims(edm::Event &event) const
Definition: EcalSelectiveReadoutProducer.cc:202
EcalSelectiveReadoutProducer::ebdigiCollection_
std::string ebdigiCollection_
Definition: EcalSelectiveReadoutProducer.h:86
CaloGeometry
Definition: CaloGeometry.h:21
EcalSelectiveReadoutProducer::checkValidity
static void checkValidity(const EcalSRSettings &settings)
Definition: EcalSelectiveReadoutProducer.cc:496
EcalSelectiveReadoutProducer::produceDigis_
bool produceDigis_
Definition: EcalSelectiveReadoutProducer.h:116
EcalSelectiveReadoutProducer::writeSrFlags_
bool writeSrFlags_
Definition: EcalSelectiveReadoutProducer.h:111
EcalSelectiveReadoutProducer::~EcalSelectiveReadoutProducer
~EcalSelectiveReadoutProducer() override
Definition: EcalSelectiveReadoutProducer.cc:80
EcalDigiCollections.h
ProductID.h
EcalSelectiveReadoutProducer::ebSrFlagCollection_
std::string ebSrFlagCollection_
Definition: EcalSelectiveReadoutProducer.h:90
cmsswSequenceInfo.tp
tp
Definition: cmsswSequenceInfo.py:17
EcalSelectiveReadoutProducer::trigPrimProducer_
std::string trigPrimProducer_
Definition: EcalSelectiveReadoutProducer.h:92
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
EcalTrigTowerConstituentsMap
Definition: EcalTrigTowerConstituentsMap.h:19
EcalSelectiveReadoutProducer::eeSRPdigiCollection_
std::string eeSRPdigiCollection_
Definition: EcalSelectiveReadoutProducer.h:89
edm::ParameterSet
Definition: ParameterSet.h:36
EcalSelectiveReadoutProducer::getEBDigis
const EBDigiCollection * getEBDigis(edm::Event &event)
Definition: EcalSelectiveReadoutProducer.cc:176
EcalSelectiveReadoutProducer::suppressor_
std::unique_ptr< EcalSelectiveReadoutSuppressor > suppressor_
Definition: EcalSelectiveReadoutProducer.h:84
EBDigiCollection
Definition: EcalDigiCollections.h:32
EcalSelectiveReadoutSuppressor.h
EcalSelectiveReadoutProducer::eeSrFlagCollection_
std::string eeSrFlagCollection_
Definition: EcalSelectiveReadoutProducer.h:91
EEDigiCollection
Definition: EcalDigiCollections.h:45
EcalSelectiveReadoutProducer::eedigiCollection_
std::string eedigiCollection_
Definition: EcalSelectiveReadoutProducer.h:87
EcalSelectiveReadoutProducer::dumpFlags_
int dumpFlags_
Definition: EcalSelectiveReadoutProducer.h:107
iEvent
int iEvent
Definition: GenABIO.cc:224
EcalSelectiveReadoutProducer::ebSRPdigiCollection_
std::string ebSRPdigiCollection_
Definition: EcalSelectiveReadoutProducer.h:88
EcalSelectiveReadoutProducer::produce
void produce(edm::Event &event, const edm::EventSetup &eventSetup) override
Definition: EcalSelectiveReadoutProducer.cc:82
edm::EventSetup
Definition: EventSetup.h:57
EcalSelectiveReadoutProducer::theGeometry
const CaloGeometry * theGeometry
Definition: EcalSelectiveReadoutProducer.h:96
EcalSelectiveReadoutProducer::firstCallEB_
bool firstCallEB_
Definition: EcalSelectiveReadoutProducer.h:134
EcalSelectiveReadoutProducer::iEvent_
int iEvent_
Definition: EcalSelectiveReadoutProducer.h:136
EcalSelectiveReadoutProducer::EB_token
edm::EDGetTokenT< EBDigiCollection > EB_token
Definition: EcalSelectiveReadoutProducer.h:145
EcalSelectiveReadoutProducer::firstCallEE_
bool firstCallEE_
Definition: EcalSelectiveReadoutProducer.h:135
EcalSRSettings
Definition: EcalSRSettings.h:29
EcalSelectiveReadoutProducer::checkTriggerMap
void checkTriggerMap(const edm::EventSetup &eventSetup)
Definition: EcalSelectiveReadoutProducer.cc:221
EcalSelectiveReadoutProducer::trigPrimBypass_
bool trigPrimBypass_
Definition: EcalSelectiveReadoutProducer.h:101
EcalSelectiveReadoutProducer
Definition: EcalSelectiveReadoutProducer.h:14
EcalSelectiveReadoutProducer::checkGeometry
void checkGeometry(const edm::EventSetup &eventSetup)
Definition: EcalSelectiveReadoutProducer.cc:208
EcalSelectiveReadoutProducer::checkElecMap
void checkElecMap(const edm::EventSetup &eventSetup)
Definition: EcalSelectiveReadoutProducer.cc:234
EcalSelectiveReadoutProducer::settings_
const EcalSRSettings * settings_
Definition: EcalSelectiveReadoutProducer.h:120
EcalSelectiveReadoutProducer::getEEDigis
const EEDigiCollection * getEEDigis(edm::Event &event)
Definition: EcalSelectiveReadoutProducer.cc:189
EcalSelectiveReadoutProducer::trigPrimBypassMode_
int trigPrimBypassMode_
Definition: EcalSelectiveReadoutProducer.h:103
ConsumesCollector.h
EcalSelectiveReadoutProducer::theElecMap
const EcalElectronicsMapping * theElecMap
Definition: EcalSelectiveReadoutProducer.h:98
EcalSelectiveReadoutProducer::theTriggerTowerMap
const EcalTrigTowerConstituentsMap * theTriggerTowerMap
Definition: EcalSelectiveReadoutProducer.h:97
event
Definition: event.py:1
EcalSelectiveReadoutProducer::params_
edm::ParameterSet params_
Definition: EcalSelectiveReadoutProducer.h:99
edm::Event
Definition: Event.h:73
edm::ProductID
Definition: ProductID.h:27
EcalSelectiveReadoutProducer::useCondDb_
bool useCondDb_
Definition: EcalSelectiveReadoutProducer.h:125