4 #ifndef ECALDCCWEIGHTBUILDER_CC 5 #define ECALDCCWEIGHTBUILDER_CC 69 std::vector<double>&
result);
90 void dbId(
const DetId& detId,
int&
fedId,
int& smId,
int& ruId,
int& xtalId)
const;
99 void sort(
const std::vector<T>&
a, std::vector<int>&
s,
bool decreasingOrder =
false);
136 static const int nDccs = ecalDccFedIdMax - ecalDccFedIdMin + 1;
139 #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