34 maskSource_(MaskSource::EventSetup),
35 deadSource_(MaskSource::EventSetup) {
37 produces<RPCRecHitCollection>();
40 theRPCMaskedStripsObj = std::make_unique<RPCMaskedStrips>();
41 theRPCDeadStripsObj = std::make_unique<RPCDeadStrips>();
49 std::cerr <<
"Masked Strips File cannot not be opened" << std::endl;
56 MaskVec.push_back(Item);
67 std::cerr <<
"Dead Strips File cannot not be opened" << std::endl;
74 DeadVec.push_back(Item);
89 std::vector<RPCMaskedStrips::MaskItem>::iterator posVec;
90 for (posVec =
MaskVec.begin(); posVec !=
MaskVec.end(); ++posVec) {
92 Item.
rawId = (*posVec).rawId;
93 Item.
strip = (*posVec).strip;
106 std::vector<RPCDeadStrips::DeadItem>::iterator posVec;
107 for (posVec =
DeadVec.begin(); posVec !=
DeadVec.end(); ++posVec) {
109 Item.
rawId = (*posVec).rawId;
110 Item.
strip = (*posVec).strip;
129 auto recHitCollection = std::make_unique<RPCRecHitCollection>();
133 for (
auto rpcdgIt = digis->begin(); rpcdgIt != digis->end(); ++rpcdgIt) {
135 const RPCDetId& rpcId = (*rpcdgIt).first;
139 if (roll ==
nullptr) {
140 edm::LogError(
"BadDigiInput") <<
"Failed to find RPCRoll for ID " << rpcId;
149 const int rawId = rpcId.
rawId();
151 if (tomask.rawId == rawId) {
152 const int bit = tomask.strip;
158 if (tomask.rawId == rawId) {
159 const int bit = tomask.strip;