1 #ifndef ECALTPGPARAMBUILDER_H
2 #define ECALTPGPARAMBUILDER_H
7 #define CMSSW_VERSION 340
30 #if (CMSSW_VERSION>=340)
33 #include "SimCalorimetry/EcalSimAlgos/interface/EcalShape.h"
78 #if (CMSSW_VERSION>=340)
83 void computeLUT(
int * lut, std::string det=
"EB") ;
90 unsigned int & lowThreshold,
unsigned int & highThreshold,
unsigned int & lut) ;
96 std::string
getDet(
int tcc) ;
97 std::pair < std::string, int >
getCrate(
int tcc) ;
edm::ESHandle< EcalTrigTowerConstituentsMap > eTTmap_
double TTF_highThreshold_EB_
unsigned int SFGVB_Threshold_
std::pair< std::string, int > getCrate(int tcc)
int getGCTRegionPhi(int ttphi)
std::string getDet(int tcc)
bool weight_unbias_recovery_
Geom::Theta< T > theta() const
unsigned int FG_lut_tower_EE_
const CaloSubdetectorGeometry * theEndcapGeometry_
double FG_lowThreshold_EB_
std::ofstream * out_file_
void computeFineGrainEBParameters(unsigned int &lowRatio, unsigned int &highRatio, unsigned int &lowThreshold, unsigned int &highThreshold, unsigned int &lut)
void getCoeff(coeffStruc &coeff, const EcalIntercalibConstantMap &calibMap, unsigned int rawId)
std::vector< unsigned int > computeWeights(EcalShapeBase &shape, TH1F *histo)
double TTF_lowThreshold_EE_
const EcalElectronicsMapping * theMapping_
void computeLUT(int *lut, std::string det="EB")
bool useTransverseEnergy_
EcalTPGParamBuilder(edm::ParameterSet const &pSet)
virtual void analyze(const edm::Event &evt, const edm::EventSetup &evtSetup)
double LUT_stochastic_EE_
std::ofstream * geomFile_
void computeFineGrainEEParameters(unsigned int &threshold, unsigned int &lut_strip, unsigned int &lut_tower)
bool realignBaseline(linStruc &lin, float forceBase12)
bool computeLinearizerParam(double theta, double gainRatio, double calibCoeff, std::string subdet, int &mult, int &shift)
unsigned int pedestal_offset_
const CaloSubdetectorGeometry * theBarrelGeometry_
bool useInterCalibration_
double TTF_highThreshold_EE_
double LUT_stochastic_EB_
static unsigned int const shift
unsigned int complement2_
int getGCTRegionEta(int tteta)
unsigned int FG_lut_strip_EE_
int getEtaSlice(int tccId, int towerInTCC)
double FG_highThreshold_EB_
double TTF_lowThreshold_EB_
bool checkIfOK(EcalPedestals::Item item)
int uncodeWeight(double weight, int complement2=7)