101 desc.
add<
bool>(
"invert",
true);
102 desc.
add<
unsigned int>(
"maxRecHitsPerChamber",200);
103 descriptions.
add(
"hltCSCAcceptBusyFilter",desc);
131 unsigned int maxNRecHitsPerChamber(0);
135 const unsigned int nRings(4);
136 const unsigned int nChambers(36);
138 for(
auto & allRechit : allRechits){
139 for(
unsigned int iS = 0;iS<
nStations;++iS){
140 for(
unsigned int iR = 0;iR<nRings;++iR){
141 for(
unsigned int iC = 0;iC<nChambers;++iC){
142 allRechit[iS][iR][iC] = 0;
148 for(
auto const & it : *recHits) {
150 [it.cscDetId().endcap()-1]
151 [it.cscDetId().station()-1]
152 [it.cscDetId().ring()-1]
153 [it.cscDetId().chamber()-1];
156 for(
auto & allRechit : allRechits){
157 for(
unsigned int iS = 0;iS<
nStations;++iS){
158 for(
unsigned int iR = 0;iR<nRings;++iR){
159 for(
unsigned int iC = 0;iC<nChambers;++iC){
160 if(allRechit[iS][iR][iC] > maxNRecHitsPerChamber) {
161 maxNRecHitsPerChamber = allRechit[iS][iR][iC];
163 if(maxNRecHitsPerChamber > maxRecHitsPerChamber) {
T getParameter(std::string const &) const
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
edm::InputTag cscrechitsTag
bool AcceptManyHitsInChamber(unsigned int maxRecHitsPerChamber, const edm::Handle< CSCRecHit2DCollection > &recHits) const
#define DEFINE_FWK_MODULE(type)
~HLTCSCAcceptBusyFilter() override
bool hltFilter(edm::Event &, const edm::EventSetup &, trigger::TriggerFilterObjectWithRefs &filterproduct) const override
ParameterDescriptionBase * add(U const &iLabel, T const &value)
unsigned int maxRecHitsPerChamber
static void makeHLTFilterDescription(edm::ParameterSetDescription &desc)
static const int nEndcaps
edm::EDGetTokenT< CSCRecHit2DCollection > cscrechitsToken
void add(std::string const &label, ParameterSetDescription const &psetDescription)
HLTCSCAcceptBusyFilter(const edm::ParameterSet &)