77 #include "CLHEP/Matrix/Matrix.h" 94 edm::LogInfo(
"Global ADC->GeV scale: EB ") << std::setprecision(6) << agc->
getEBValue() <<
" GeV/ADC count" 95 " EE " << std::setprecision(6) << agc->
getEEValue() <<
" GeV/ADC count";
98 double r1 = (double)
std::rand()/( double(RAND_MAX)+double(1) );
99 int ieta =
int( 1 + r1*85 );
100 r1 = (double)
std::rand()/( double(RAND_MAX)+double(1) );
101 int iphi =
int( 1 + r1*20 );
104 edm::LogInfo(
"EcalTrivialObjectAnalyzer: using EBDetId: ") << ebid;
108 if( it!=myped->
end() ){
110 <<
" mean_x1: " << std::setprecision(8) << (*it).mean_x1 <<
" rms_x1: " << (*it).rms_x1
111 <<
" mean_x6: " <<(*it).mean_x6 <<
" rms_x6: " << (*it).rms_x6
112 <<
" mean_x12: " <<(*it).mean_x12 <<
" rms_x12: " << (*it).rms_x12
115 edm::LogInfo(
"No pedestal found for this xtal! something wrong with EcalPedestals in your DB? ")
127 edm::LogInfo(
"XtalGroupId.id() = ") << std::setprecision(3) << (*git).id() ;
130 edm::LogInfo(
"No group id found for this crystal. something wrong with EcalWeightXtalGroups in your DB?")
145 <<
"gain 12/6 : " << std::setprecision(4) << mgpa.
gain12Over6() <<
" gain 6/1: " << mgpa.
gain6Over1()
148 edm::LogInfo(
"No MGPA Gain Ratio found for this xtal! something wrong with EcalGainRatios in your DB? ")
160 icalconst = (*icalit);
163 <<std::setprecision(6)
167 edm::LogInfo(
"No intercalib const found for this xtal! something wrong with EcalIntercalibConstants in your DB? ")
178 if( icalitErr!=icalErr->
getMap().
end() ){
179 icalconstErr = (*icalitErr);
182 <<std::setprecision(6)
186 edm::LogInfo(
"No intercalib const found for this xtal! something wrong with EcalIntercalibErrors in your DB? ")
201 icalconst = (*icalit);
204 <<std::setprecision(6)
208 edm::LogInfo(
"No intercalib const found for this xtal! something wrong with EcalTimeCalibConstants in your DB? ")
219 if( icalitErr!=icalErr->
getMap().
end() ){
220 icalconstErr = (*icalitErr);
223 <<std::setprecision(6)
227 edm::LogInfo(
"No intercalib const found for this xtal! something wrong with EcalTimeCalibErrors in your DB? ")
250 edm::LogInfo(
"EcalTBWeightMap.size(): ") << std::setprecision(3) << wgts->
getMap().size();
257 edm::LogInfo(
"Lookup EcalWeightSet for groupid: ") << std::setprecision(3)
258 << gid.
id() <<
" and TDC id " << tdcid ;
259 EcalTBWeights::EcalTBWeightMap::const_iterator wit = wgts->
getMap().find( std::make_pair(gid,tdcid) );
261 if( wit != wgts->
getMap().end() ) {
263 edm::LogInfo(
"check size of data members in EcalWeightSet") ;
275 CLHEP::HepMatrix clmat1(3,10,0);
276 CLHEP::HepMatrix clmat2(3,10,0);
277 for(
int irow=0; irow<3; irow++) {
278 for(
int icol=0; icol<10; icol++) {
279 clmat1[irow][icol] = mat1(irow,icol);
280 clmat2[irow][icol] = mat2(irow,icol);
283 edm::LogInfo(
"weight matrix before gain switch:") << clmat1;
284 edm::LogInfo(
"weight matrix after gain switch:") << clmat2;
287 edm::LogInfo(
"No weights found for EcalGroupId: ") << gid.
id() <<
" and EcalTDCId: " << tdcid ;
295 for ( EcalFunctionParameters::const_iterator it = paramLocalCont->
params().begin(); it != paramLocalCont->
params().end(); ++it ) {
303 for ( EcalFunctionParameters::const_iterator it = paramCrack->
params().begin(); it != paramCrack->
params().end(); ++it ) {
311 for ( EcalFunctionParameters::const_iterator it = paramEnergyCorrection->
params().begin(); it != paramEnergyCorrection->
params().end(); ++it ) {
319 for ( EcalFunctionParameters::const_iterator it = paramEnergyUncertainty->
params().begin(); it != paramEnergyUncertainty->
params().end(); ++it ) {
326 edm::LogInfo(
"EnergyCorrectionObjectSpecificParameters:");
327 for ( EcalFunctionParameters::const_iterator it = paramEnergyCorrectionObjectSpecific->
params().begin(); it != paramEnergyCorrectionObjectSpecific->
params().end(); ++it ) {
344 <<std::setprecision(6)
348 edm::LogInfo(
"No laser alpha found for this xtal! something wrong with EcalLaserAlphas in your DB? ")
361 <<std::setprecision(6)
365 edm::LogInfo(
"No laser apd/pn ref found for this xtal! something wrong with EcalLaserAPDPNRatiosRef in your DB? ")
379 lratioconst = (*lratioit);
383 << std::setprecision(6)
384 << lratioconst.
p1 <<
" " << lratioconst.
p2 387 edm::LogInfo(
"No laser apd/pn ratio found for this xtal! something wrong with EcalLaserAPDPNRatios in your DB? ")
394 for (
int i=1;
i<=92;
i++) {
397 << ltimestamp.
t1.
value() <<
" " << ltimestamp.
t2.
value() <<
" : " ;
411 <<std::setprecision(6)
415 edm::LogInfo(
"No channel status found for this xtal! something wrong with EcalChannelStatus in your DB? ")
EventNumber_t event() const
const self & getMap() const
Code getStatusCode() const
return decoded status
constexpr uint32_t rawId() const
get the raw id
const unsigned int id() const
const EcalLaserAPDPNRatiosMap & getLaserMap() const
EcalFunctionParameters & params()
void analyze(const edm::Event &e, const edm::EventSetup &c) override
float getEcalSampleMaskRecordEE() const
float EcalIntercalibError
const EcalLaserTimeStampMap & getTimeMap() const
std::vector< Item >::const_iterator const_iterator
float gain12Over6() const
float EcalTimeCalibConstant
float getEcalSampleMaskRecordEB() const
const_iterator find(uint32_t rawId) const
const EcalTBWeightMap & getMap() const
math::Matrix< 3, 10 >::type EcalWeightMatrix
const_iterator end() const
T const * product() const
TimeValue_t value() const
float EcalIntercalibConstant