57 desc.
add<
int>(
"minADCHBHE",10);
58 desc.
add<
int>(
"minADCHF",10);
59 desc.
add<
double>(
"minFracDiffHBHELaser",0.3);
60 desc.
add<
double>(
"minFracHFLaser",0.3);
62 descriptions.
add(
"hltHcalLaserMisfireFilter",desc);
75 double badrbxfracHBHE(0), goodrbxfracHBHE(0), allrbxfracHF(0);
77 int NgoodHBHE= 2592*2-NbadHBHE;
87 for (
int i=0;
i<digi.
size();
i++)
95 if (myid.
iphi()>=15 && myid.
iphi()<=18) isbad=
true;
96 else if (myid.
iphi()>=27 && myid.
iphi()<=34) isbad=
true;
101 badrbxfracHBHE += 1.;
102 }
else goodrbxfracHBHE += 1.;
105 goodrbxfracHBHE /= NgoodHBHE;
106 badrbxfracHBHE /= NbadHBHE;
113 if(digi[
i].
adc() > maxdigiHF) maxdigiHF = digi[
i].
adc();
114 if (maxdigiHF >
minADCHF_) passCut =
true;
120 allrbxfracHF /= NallHF;
124 <<
"******************************************************************\n" 125 <<
"goodrbxfracHBHE: " << goodrbxfracHBHE <<
" badrbxfracHBHE: " 126 << badrbxfracHBHE <<
" Size " << hbhe_digi->
size() <<
"\n" 127 <<
"allrbxfracHF: " << allrbxfracHF <<
" Size " << hf_digi->
size()
128 <<
"\n******************************************************************";
int samples() const
total number of samples in the digi
HLTHcalLaserMisfireFilter(const edm::ParameterSet &)
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
HcalSubdetector subdet() const
get the subdetector
ParameterDescriptionBase * addUntracked(U const &iLabel, T const &value)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
int size() const
total number of samples in the digi
const_iterator begin() const
#define DEFINE_FWK_MODULE(type)
int ieta() const
get the cell ieta
~HLTHcalLaserMisfireFilter() override
constexpr int adc(sample_type sample)
get the ADC sample (12 bits)
ParameterDescriptionBase * add(U const &iLabel, T const &value)
constexpr int adc() const
get the ADC sample
const_iterator end() const
bool filter(edm::StreamID, edm::Event &, const edm::EventSetup &) const override
int iphi() const
get the cell iphi
double minFracDiffHBHELaser_
edm::EDGetTokenT< HBHEDigiCollection > inputTokenHBHE_
HcalQIESample const & sample(int i) const
access a sample
edm::EDGetTokenT< QIE10DigiCollection > inputTokenHF_
void add(std::string const &label, ParameterSetDescription const &psetDescription)
const_iterator end() const
const HcalDetId & id() const
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
const_iterator begin() const