34 produces<RPCRecHitCollection>();
37 const string theAlgoName = config.
getParameter<
string>(
"recAlgo");
46 if (maskSource ==
"File") {
51 std::cerr <<
"Masked Strips File cannot not be opened" << std::endl;
63 if (deadSource ==
"File") {
68 std::cerr <<
"Dead Strips File cannot not be opened" << std::endl;
91 std::vector<RPCMaskedStrips::MaskItem>::iterator posVec;
92 for ( posVec =
MaskVec.begin(); posVec !=
MaskVec.end(); ++posVec ) {
94 Item.
rawId = (*posVec).rawId;
95 Item.
strip = (*posVec).strip;
109 std::vector<RPCDeadStrips::DeadItem>::iterator posVec;
110 for ( posVec =
DeadVec.begin(); posVec !=
DeadVec.end(); ++posVec ) {
112 Item.
rawId = (*posVec).rawId;
113 Item.
strip = (*posVec).strip;
133 auto recHitCollection = std::make_unique<RPCRecHitCollection>();
137 for (
auto rpcdgIt = digis->begin(); rpcdgIt != digis->end(); ++rpcdgIt ) {
139 const RPCDetId& rpcId = (*rpcdgIt).first;
142 const RPCRoll* roll = rpcGeom->roll(rpcId);
144 edm::LogError(
"BadDigiInput")<<
"Failed to find RPCRoll for ID "<<rpcId;
153 const int rawId = rpcId.
rawId();
155 if ( tomask.rawId == rawId ) {
156 const int bit = tomask.strip;
162 if ( tomask.rawId == rawId ) {
163 const int bit = tomask.strip;
171 if(recHits.
size() > 0)
172 recHitCollection->put(rpcId, recHits.
begin(), recHits.
end());
T getParameter(std::string const &) const
std::vector< MaskItem > MaskVec
std::unique_ptr< RPCRecHitBaseAlgo > theAlgo
virtual void beginRun(const edm::Run &, const edm::EventSetup &) override
enum RPCRecHitProducer::MaskSource deadSource_
uint32_t rawId() const
get the raw id
virtual void produce(edm::Event &event, const edm::EventSetup &setup) override
The method which produces the rechits.
const edm::EDGetTokenT< RPCDigiCollection > theRPCDigiLabel
std::bitset< maskSIZE > RollMask
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
std::unique_ptr< RPCMaskedStrips > theRPCMaskedStripsObj
std::vector< RPCDeadStrips::DeadItem > DeadVec
RPCRecHitProducer(const edm::ParameterSet &config)
Constructor.
T const * product() const
enum RPCRecHitProducer::MaskSource maskSource_
std::vector< DeadItem > DeadVec
std::vector< RPCMaskedStrips::MaskItem > MaskVec
std::pair< const_iterator, const_iterator > Range
std::string fullPath() const
T get(const Candidate &c)
std::unique_ptr< RPCDeadStrips > theRPCDeadStripsObj