20 double hitEnergyMinimum,
21 int hitMultiplicityThreshold,
22 const std::vector<edm::ParameterSet>& pulseShapeParameterSets
34 for (
unsigned int iPSet=0;iPSet<pulseShapeParameterSets.size();iPSet++) {
36 std::vector<double> params=pset.
getParameter<std::vector<double> >(
"pulseShapeParameters");
79 double nominal_charge_total=0.0;
80 double charge_max3=-100.0;
81 double charge_late3=-100.0;
82 unsigned int slice_max3=0;
89 for (
unsigned int iSlice=0;iSlice<
size;iSlice++)
95 if (iSlice<2)
continue;
97 double qsum3=digi[iSlice].nominal_fC() + digi[iSlice-1].nominal_fC() + digi[iSlice-2].nominal_fC() - 3*
nominalPedestal_;
98 if (qsum3>charge_max3) {
104 if ((4+slice_max3)>size)
return;
105 charge_late3=digi[slice_max3+1].nominal_fC() + digi[slice_max3+2].nominal_fC() + digi[slice_max3+3].nominal_fC() - 3*
nominalPedestal_;
T getParameter(std::string const &) const
const DetId & detid() const
int size() const
total number of samples in the digi
std::vector< int > hpdMultiplicity_
void setFlagField(uint32_t value, int base, int width=1)
unsigned int samplesToAdd_
def gen
run2 Cosmic #### Run 256259 @ 0T 2015C### Run 272133 @ 3.8T 2016B###
MVATrainerComputer * calib
unsigned int firstSample_
static const int maxRmIndex
HcalLogicalMap createMap(const HcalTopology *topo, unsigned int mapIOV=4)
std::vector< HBHERecHit >::iterator iterator
const_iterator end() const
const HcalFrontEndId getHcalFrontEndId(const DetId &)
int hitMultiplicityThreshold_
std::vector< std::vector< double > > pulseShapeParameters_
void SetFlagsFromRecHits(const HcalTopology *topo, HBHERecHitCollection &rec)
virtual void adc2fC(const HBHEDataFrame &df, CaloSamples &lf) const =0
HcalLogicalMap * logicalMap_
void SetFlagsFromDigi(const HcalTopology *topo, HBHERecHit &hbhe, const HBHEDataFrame &digi, const HcalCoder &coder, const HcalCalibrations &calib, int firstSample=3, int samplesToAdd=4)
tuple size
Write out results.
const_iterator begin() const