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);
92 void dbId(
const DetId& detId,
int& fedId,
int& smId,
int& ruId,
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()
virtual ~EcalDccWeightBuilder()
std::map< DetId, std::vector< int > > encodedWeights_
double decodeWeight(int W)
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()
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 analyze(const edm::Event &event, const edm::EventSetup &es)
static const int ecalDccFedIdMax
void computeAllWeights(bool withIntercalib)
const EcalElectronicsMapping * ecalElectronicsMap_
static const int ecalDccFedIdMin