1 #ifndef CalibCalorimetry_EcalSRTools_EcalDccWeightBuilder_h 2 #define CalibCalorimetry_EcalSRTools_EcalDccWeightBuilder_h 70 std::vector<double>&
result);
100 void sort(
const std::vector<T>&
a, std::vector<int>&
s,
bool decreasingOrder =
false);
147 #endif //CalibCalorimetry_EcalSRTools_EcalDccWeightBuilder_h not defined void writeWeightToAsciiFile()
std::map< DetId, std::vector< int > > encodedWeights_
double decodeWeight(int W)
void analyze(const edm::Event &event, const edm::EventSetup &es) override
const edm::ESGetToken< EcalElectronicsMapping, EcalMappingRcd > mappingToken_
double intercalib(const DetId &detId)
void dbId(const DetId &detId, int &fedId, int &smId, int &ruId, int &xtalId) const
std::vector< double > inputWeights_
edm::ESHandle< CaloGeometry > geom_
static const double weightScale_
const edm::ESGetToken< EcalIntercalibConstants, EcalIntercalibConstantsRcd > intercalibConstToken_
bool dccWeightsWithIntercalib_
void computeWeights(const EcalShapeBase &shape, int binOfMax, double timePhase, int iFirst0, int nWeights, int iSkip0, std::vector< double > &result)
void sort(const std::vector< T > &a, std::vector< int > &s, bool decreasingOrder=false)
std::string asciiOutputFileName_
EcalIntercalibConstantMap & calibMap_
void writeWeightToRootFile()
~EcalDccWeightBuilder() override
std::string rootOutputFileName_
const edm::ESGetToken< CaloGeometry, CaloGeometryRecord > geometryToken_
EcalIntercalibConstantMap emptyCalibMap_
void unbiasWeights(std::vector< double > &weights, std::vector< int32_t > *encodedWeigths)
EcalDccWeightBuilder(edm::ParameterSet const &ps)
int encodeWeight(double w)
void computeAllWeights(bool withIntercalib, const edm::EventSetup &es)
static const int ecalDccFedIdMax
const EcalElectronicsMapping * ecalElectronicsMap_
static const int ecalDccFedIdMin