1 #ifndef CalibCalorimetry_EcalTPGTools_EcalTPGParamBuilder_h 2 #define CalibCalorimetry_EcalTPGTools_EcalTPGParamBuilder_h 107 std::pair<std::string, int>
getCrate(
int tcc);
unsigned int TPmode_FenixEBStripOutput_
std::string weight_even_idMapFile_
bool TPmode_DisableEBEvenPeakFinder_
std::map< int, std::vector< int > > phases_EB_
bool useTransparencyCorr_
unsigned int TPmode_FenixEBStripInfobit2_
bool TPmode_EnableEEOddFilter_
unsigned int TPmode_FenixEBTcpInfobit1_
edm::ESGetToken< EcalIntercalibConstants, EcalIntercalibConstantsRcd > ecalIntercalibConstantsToken_
unsigned int TPmode_FenixEBTcpOutput_
static constexpr uint NWEIGHTS
bool TPmode_EnableEBOddFilter_
bool TPmode_EnableEBOddPeakFinder_
edm::ESGetToken< EcalElectronicsMapping, EcalMappingRcd > ecalmappingToken_
double TTF_highThreshold_EB_
unsigned int SFGVB_Threshold_
std::pair< std::string, int > getCrate(int tcc)
int getGCTRegionPhi(int ttphi)
std::string TimingPhases_EE_
std::string getDet(int tcc)
std::string Transparency_Corr_
bool weight_unbias_recovery_
edm::ESGetToken< EcalLaserAPDPNRatios, EcalLaserAPDPNRatiosRcd > ecalLaserAPDPNRatiosToken_
std::string weight_even_weightGroupFile_
unsigned int TPmode_FenixEEStripOutput_
unsigned int FG_lut_tower_EE_
edm::ESGetToken< CaloSubdetectorGeometry, EcalBarrelGeometryRecord > theBarrelGeometryToken_
std::string TimingDelays_EE_
const CaloSubdetectorGeometry * theEndcapGeometry_
double FG_lowThreshold_EB_
std::ofstream * out_file_
std::map< int, std::vector< int > > delays_EB_
edm::ESGetToken< EcalLaserAlphas, EcalLaserAlphasRcd > ecalLaserAlphasToken_
int SFGVB_SpikeKillingThreshold_
edm::ESGetToken< EcalGainRatios, EcalGainRatiosRcd > ecalGainRatiosToken_
std::vector< unsigned int > computeWeights(EcalShapeBase &shape, TH1F *histo)
double TTF_lowThreshold_EE_
~EcalTPGParamBuilder() override
std::map< int, std::vector< int > > delays_EE_
std::string TimingDelays_EB_
const EcalElectronicsMapping * theMapping_
void computeLUT(int *lut, std::string det="EB")
bool useTransverseEnergy_
EcalTPGParamBuilder(edm::ParameterSet const &pSet)
edm::ESGetToken< EcalADCToGeVConstant, EcalADCToGeVConstantRcd > ecalADCToGeVConstantToken_
void analyze(const edm::Event &evt, const edm::EventSetup &evtSetup) override
bool weight_even_computeFromShape_
double LUT_stochastic_EE_
unsigned int TPmode_FenixEEStripInfobit2_
std::ofstream * geomFile_
bool TPmode_DisableEEEvenPeakFinder_
void computeFineGrainEEParameters(uint &threshold, uint &lut_strip, uint &lut_tower)
const EcalTrigTowerConstituentsMap * eTTmap_
edm::ESGetToken< EcalTrigTowerConstituentsMap, IdealGeometryRecord > eTTmapToken_
bool computeLinearizerParam(double theta, double gainRatio, double calibCoeff, std::string subdet, int &mult, int &shift)
unsigned int pedestal_offset_
const CaloSubdetectorGeometry * theBarrelGeometry_
bool TPmode_EnableEEOddPeakFinder_
bool useInterCalibration_
unsigned int TPmode_FenixEETcpInfobit1_
bool weight_useDoubleWeights_
bool realignBaseline(linStruc &lin, float forceBase12, int cmsswid)
unsigned int TPmode_FenixEETcpOutput_
unsigned tccId(DetId const &, EcalElectronicsMapping const *)
edm::ESGetToken< EcalPedestals, EcalPedestalsRcd > ecalPedestalsToken_
double TTF_highThreshold_EE_
std::string weight_odd_idMapFile_
std::string TimingPhases_EB_
double LUT_stochastic_EB_
edm::ESGetToken< CaloSubdetectorGeometry, EcalEndcapGeometryRecord > theEndcapGeometryToken_
static unsigned int const shift
std::string weight_odd_weightGroupFile_
unsigned int complement2_
int getGCTRegionEta(int tteta)
std::map< int, double > Transparency_Correction_
unsigned int FG_lut_strip_EE_
int getEtaSlice(int tccId, int towerInTCC)
double FG_highThreshold_EB_
std::map< int, std::vector< int > > phases_EE_
double TTF_lowThreshold_EB_
bool checkIfOK(EcalPedestals::Item item)
void computeFineGrainEBParameters(uint &lowRatio, uint &highRatio, uint &lowThreshold, uint &highThreshold, uint &lut)
void getCoeff(coeffStruc &coeff, const EcalGainRatioMap &gainMap, uint rawId)
int uncodeWeight(double weight, int complement2=7)