26 swissCrossMaxThreshold_(3.),
28 trigTypeToME_{0, 1, 2, 3, 4},
29 L1GlobalTriggerReadoutRecordTag_(),
30 L1MuGMTReadoutCollectionTag_(),
31 L1GlobalTriggerReadoutRecordToken_(),
32 L1MuGMTReadoutCollectionToken_() {}
62 MESetMulti& occupancy(static_cast<MESetMulti&>(
MEs_.
at(
"SCSeedOccupancyTrig")));
64 repl[
"trig"] = triggerTypeNames[iT];
100 bool hcal_top =
false;
101 bool hcal_bot =
false;
103 std::vector<int> valid_phi;
104 if ((psb.
aData(4) & 0x3f) >= 1) {
105 valid_phi.push_back((psb.
aData(4) >> 10) & 0x1f);
107 if ((psb.
bData(4) & 0x3f) >= 1) {
108 valid_phi.push_back((psb.
bData(4) >> 10) & 0x1f);
110 if ((psb.
aData(5) & 0x3f) >= 1) {
111 valid_phi.push_back((psb.
aData(5) >> 10) & 0x1f);
113 if ((psb.
bData(5) & 0x3f) >= 1) {
114 valid_phi.push_back((psb.
bData(5) >> 10) & 0x1f);
116 std::vector<int>::const_iterator
iphi;
117 for (
iphi = valid_phi.begin();
iphi != valid_phi.end();
iphi++) {
123 if (hcal_top && hcal_bot)
130 std::vector<L1MuGMTReadoutRecord>
const& records(l1MuHndl->
getRecords());
132 for (
unsigned iR(0); iR != records.size(); ++iR) {
133 if (records[iR].getBxInEvent() != 0)
139 std::vector<L1MuRegionalCand> dtBXCands(records[iR].getDTBXCands());
140 for (iC = 0; iC != dtBXCands.size(); ++iC)
141 if (!dtBXCands[iC].
empty())
143 if (iC != dtBXCands.size())
147 std::vector<L1MuRegionalCand> brlRPCCands(records[iR].getBrlRPCCands());
148 for (iC = 0; iC != brlRPCCands.size(); ++iC)
149 if (!brlRPCCands[iC].
empty())
151 if (iC != brlRPCCands.size())
155 std::vector<L1MuRegionalCand> cscCands(records[iR].getCSCCands());
156 for (iC = 0; iC != cscCands.size(); ++iC)
157 if (!cscCands[iC].
empty())
159 if (iC != cscCands.size())
167 MESet& meExclusiveTriggers(
MEs_.
at(
"ExclusiveTriggers"));
186 for (
unsigned iFED(0); iFED !=
nDCC; iFED++) {
198 switch (_collection) {
215 MESet& meBCEtMapProjEta(
MEs_.
at(
"BCEtMapProjEta"));
216 MESet& meBCEtMapProjPhi(
MEs_.
at(
"BCEtMapProjPhi"));
218 MESet& meBCOccupancyProjEta(
MEs_.
at(
"BCOccupancyProjEta"));
219 MESet& meBCOccupancyProjPhi(
MEs_.
at(
"BCOccupancyProjPhi"));
223 MESet& meBCSizeMapProjEta(
MEs_.
at(
"BCSizeMapProjEta"));
224 MESet& meBCSizeMapProjPhi(
MEs_.
at(
"BCSizeMapProjPhi"));
234 if (bcItr->caloID().detectors() != 0) {
249 id = subgeom->getClosestCell(gp);
255 float energy(bcItr->energy());
258 float et(
energy / std::cosh(posEta));
275 float size(bcItr->size());
371 MESet& meSCClusterVsSeed(
MEs_.
at(
"SCClusterVsSeed"));
372 MESet& meSCSeedOccupancy(
MEs_.
at(
"SCSeedOccupancy"));
373 MESet& meSingleCrystalCluster(
MEs_.
at(
"SingleCrystalCluster"));
395 for (reco::SuperClusterCollection::const_iterator scItr(_scs.begin()); scItr != _scs.end(); ++scItr) {
396 DetId seedId(scItr->seed()->seed());
405 seedId = subgeom->getClosestCell(gp);
408 if (seedId.null() || (seedId.subdetId() != subdet))
412 if (seedItr ==
hits->end())
417 float energy(scItr->energy());
418 float rawEnergy(scItr->rawEnergy());
419 float size(scItr->size());
442 if (scItr->size() == 1)
445 float e3x3(EcalClusterTools::e3x3(*scItr->seed(),
hits,
GetTopology()));
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
void runOnBasicClusters(edm::View< reco::CaloCluster > const &, Collections)
#define DEFINE_ECALDQM_WORKER(TYPE)
T const & getData(const ESGetToken< T, R > &iToken) const noexcept(false)
void endEvent(edm::Event const &, edm::EventSetup const &) override
edm::LuminosityBlockNumber_t iLumi
const cms_uint16_t aData(int iA) const
get/set A_DATA_CH_IA
void addDependencies(DependencySet &) override
MESet & at(const std::string &key)
EcalRecHitCollection const * ebHits_
std::vector< EcalRecHit >::const_iterator const_iterator
edm::EDGetTokenT< L1GlobalTriggerReadoutRecord > L1GlobalTriggerReadoutRecordToken_
const DecisionWord & decisionWord(int bxInEventValue) const
bool getByToken(EDGetToken token, Handle< PROD > &result) const
CaloTopology const * GetTopology()
CaloGeometry const * GetGeometry()
void fill(EcalDQMSetupObjects const edso, DetId const &_id, double _xyw=1., double _yw=1., double _w=1.) override
const cms_uint16_t bData(int iB) const
get/set B_DATA_CH_IB
std::vector< std::string > egTriggerAlgos_
std::vector< SuperCluster > SuperClusterCollection
collection of SuperCluser objectr
float swissCrossMaxThreshold_
std::vector< bool > DecisionWord
typedefs
virtual void fill(EcalDQMSetupObjects const, DetId const &, double=1., double=1., double=1.)
unsigned trigTypeToME_[nTriggerTypes]
bool filterRunType(short const *) override
void beginEvent(edm::Event const &, edm::EventSetup const &, bool const &, bool &) override
EcalRecHitCollection const * eeHits_
EcalDQMSetupObjects const getEcalDQMSetupObjects()
edm::EDGetTokenT< L1MuGMTReadoutCollection > L1MuGMTReadoutCollectionToken_
unsigned getIndex(PathReplacements const &) const
std::vector< L1MuGMTReadoutRecord > const & getRecords() const
void runOnRecHits(EcalRecHitCollection const &, Collections)
const L1GtPsbWord gtPsbWord(cms_uint16_t boardIdValue, int bxInEventValue) const
get / set PSB word (record) in the GT readout record
XYZPointD XYZPoint
point in space with cartesian internal representation
void setTokens(edm::ConsumesCollector &) override
void runOnSuperClusters(reco::SuperClusterCollection const &, Collections)
edm::InputTag L1GlobalTriggerReadoutRecordTag_
boost::indirect_iterator< typename seq_t::const_iterator > const_iterator
static int position[264][3]
std::bitset< nTriggerTypes > triggered_
const_iterator begin() const
edm::InputTag L1MuGMTReadoutCollectionTag_
std::map< std::string, std::string > PathReplacements
void push_back(Dependency const &_d)
double phi(EBDetId const &)
const_iterator end() const
void erase(const std::string &key)
void setParams(edm::ParameterSet const &) override
edm::ESGetToken< L1GtTriggerMenu, L1GtTriggerMenuRcd > menuRcd