|
|
Go to the documentation of this file.
29 lhcStatusInfoCollectionTag_() {}
42 "lhcStatusInfoCollectionTag",
edm::InputTag(
"tcdsDigis",
"tcdsRecord"));
62 bool const& ByLumiResetSwitch,
68 if (ByLumiResetSwitch) {
76 MESet& meLHCStatusByLumi(static_cast<MESet&>(
MEs_.
at(
"LHCStatusByLumi")));
93 std::vector<int>::iterator pBinFine(
109 for (EcalTPGTowerStatusMap::const_iterator ttItr(towerMap.begin()); ttItr != towerMap.end(); ++ttItr) {
110 if ((*ttItr).second > 0) {
117 for (EcalTPGStripStatusMap::const_iterator stItr(stripMap.begin()); stItr != stripMap.end(); ++stItr) {
118 if ((*stItr).second > 0) {
181 template <
typename DigiCollection>
183 for (
typename DigiCollection::const_iterator digiItr(_digis.begin()); digiItr != _digis.end(); ++digiItr) {
198 MESet& meEtSummaryByLumi(
MEs_.
at(
"EtSummaryByLumi"));
205 MESet& meTTFlags4ByLumi(
MEs_.
at(
"TTFlags4ByLumi"));
211 double nTP[] = {0., 0., 0.};
215 float et(tpItr->compressedEt());
220 else if (ttid.zside() < 0)
232 int interest(tpItr->ttFlag() & 0x3);
249 int ttF(tpItr->ttFlag());
274 for (EcalTPGTowerStatusMap::const_iterator ttItr(TTStatusMap.begin()); ttItr != TTStatusMap.end(); ++ttItr) {
276 if (ttItr->second > 0)
283 for (EcalTPGStripStatusMap::const_iterator stItr(StripStatusMap.begin()); stItr != StripStatusMap.end(); ++stItr) {
288 if (stItr->second > 0)
305 int et(tpItr->compressedEt());
309 for (
int iDigi(0); iDigi < 5; iDigi++) {
310 float sampleEt((*tpItr)[iDigi].compressedEt());
312 if (sampleEt >
maxEt) {
330 int realEt(realItr->compressedEt());
333 int ttF(realItr->ttFlag());
334 if ((ttF == 1 || ttF == 3) &&
338 if (tpItr->fineGrain() != realItr->fineGrain())
343 std::vector<int> matchedIndex(0);
346 for (
int iDigi(0); iDigi < 5; iDigi++) {
347 if ((*tpItr)[iDigi].compressedEt() == realEt) {
350 matchedIndex.push_back(iDigi + 1);
355 matchedIndex.clear();
356 matchedIndex.push_back(3);
361 if (matchedIndex.empty())
362 matchedIndex.push_back(0);
369 for (std::vector<int>::iterator matchItr(matchedIndex.begin()); matchItr != matchedIndex.end();
T const * product() const
void addDependencies(DependencySet &) override
std::map< uint32_t, uint16_t > EcalTPGStripStatusMap
void beginEvent(edm::Event const &, edm::EventSetup const &, bool const &, bool &) override
std::vector< int > bxBinEdges_
const std::map< uint32_t, uint16_t > & getMap() const
edm::EDGetTokenT< TCDSRecord > lhcStatusInfoRecordToken_
std::vector< T >::const_iterator const_iterator
int bunchCrossing() const
Ecal trigger electronics identification [32:20] Unused (so far) [19:13] TCC id [12:6] TT id [5:3] pse...
int tccId() const
get the DCC (Ecal Local DCC value not global one) id
virtual void fill(EcalDQMSetupObjects const, DetId const &, double=1., double=1., double=1.)
std::map< uint32_t, unsigned > towerReadouts_
std::vector< int > bxBinEdgesFine_
const EcalElectronicsMapping * GetElectronicsMap()
int ttId() const
get the tower id
void setTokens(edm::ConsumesCollector &) override
const std::map< uint32_t, uint16_t > & getMap() const
virtual void reset(EcalElectronicsMapping const *, double=0., double=0., double=0.)
const uint16_t getBeamMode() const
std::map< uint32_t, uint16_t > EcalTPGTowerStatusMap
const_iterator begin() const
void runOnRealTPs(EcalTrigPrimDigiCollection const &)
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
const EcalTrigTowerConstituentsMap * GetTrigTowerMap()
Ecal readout channel identification [32:20] Unused (so far) [19:13] DCC id [12:6] tower [5:3] strip [...
CaloTowerDetId towerOf(reco::CaloCluster const &cluster, CaloTowerConstituentsMap const &towerMap)
void runOnEmulTPs(EcalTrigPrimDigiCollection const &)
void setParams(edm::ParameterSet const &) override
edm::ESHandle< EcalTPGStripStatus > StripStatusRcd
const_iterator end() const
MESet & at(const std::string &key)
std::pair< typename Association::data_type::first_type, double > match(Reference key, Association association, bool bestMatchByMaxValue)
Generic matching function.
void push_back(Dependency const &_d)
void erase(const std::string &key)
edm::InputTag lhcStatusInfoCollectionTag_
const EcalDQMSetupObjects getEcalDQMSetupObjects()
iterator find(key_type k)
constexpr uint32_t rawId() const
get the raw id
std::vector< DetId > constituentsOf(const EcalTrigTowerDetId &id) const
Get the constituent detids for this tower id.
void runOnDigis(DigiCollection const &)
void beginRun(edm::Run const &, edm::EventSetup const &) override
Class to contain information from TCDS FED.
EcalTrigPrimDigiCollection const * realTps_
const BSTRecord & getBST() const
#define DEFINE_ECALDQM_WORKER(TYPE)
edm::ESHandle< EcalTPGTowerStatus > TTStatusRcd