4 #ifndef ECALDCCWEIGHTBUILDER_CC 5 #define ECALDCCWEIGHTBUILDER_CC 69 int iFirst0,
int nWeights,
int iSkip0,
70 std::vector<double>&
result);
79 std::vector<int32_t>* encodedWeigths);
102 void sort(
const std::vector<T>&
a,
104 bool decreasingOrder =
false);
142 static const int nDccs = ecalDccFedIdMax-ecalDccFedIdMin+1;
145 #endif //ECALDCCWEIGHTBUILDER_CC 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
double intercalib(const DetId &detId)
std::vector< double > inputWeights_
edm::ESHandle< CaloGeometry > geom_
static const double weightScale_
void dbId(const DetId &detId, int &fedId, int &smId, int &ruId, int &xtalId) const
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_
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