4 #ifndef ECALDCCWEIGHTBUILDER_CC
5 #define ECALDCCWEIGHTBUILDER_CC
68 int binOfMax,
double timePhase,
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);
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()
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
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