CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_2_7_hltpatch1/src/Validation/HcalDigis/src/HcalSubdetDigiMonitor.cc

Go to the documentation of this file.
00001 #include "Validation/HcalDigis/src/HcalSubdetDigiMonitor.h"
00002 #include "DQMServices/Core/interface/DQMStore.h"
00003 #include "DQMServices/Core/interface/MonitorElement.h"
00004 
00005 struct HistLim
00006 {
00007   HistLim(int nbin, float mini, float maxi)
00008   : n(nbin), min(mini), max(maxi) {}
00009   int n;
00010   float min;
00011   float max;
00012 };
00013 
00014 HcalSubdetDigiMonitor::HcalSubdetDigiMonitor(DQMStore* dbe, 
00015                                              const std::string & subdet, int noise)
00016 : dbe_(dbe),
00017   subdet_(subdet),
00018   noise_(noise)
00019 {
00020 
00021   // defaults are for HB
00022 
00023   HistLim Ndigis(2600,0.,2600.);
00024   HistLim ndigis(50, 0., 50.);
00025   HistLim sime(200, 0., 1.0);
00026   HistLim digiAmp(700, -100., 600.);
00027   HistLim ratio(250, 0., 2500.);
00028   HistLim sumAmp(100, -500., 1500.);
00029 
00030   HistLim nbin(10,0.,10.);
00031 
00032   HistLim pedestal(75, 0., 15.);
00033   HistLim pedestalfC(400,-10.,30.);
00034 
00035   HistLim frac(52, -0.02, 1.02);
00036 
00037   HistLim pedLim(80, 0., 8.); 
00038   HistLim pedWidthLim(100, 0., 2.); 
00039 
00040   HistLim gainLim(120, 0.,0.6); 
00041   HistLim gainWidthLim(100, 0.,0.3); 
00042 
00043   HistLim ietaLim( 82, -41., 41.);
00044   HistLim iphiLim(72, 0., 72.);
00045 
00046   if(subdet_ == "HE")
00047     {
00048       sime        = HistLim(200, 0., 1.0);
00049       digiAmp     = HistLim(250, -100., 400.);
00050     }
00051   else if(subdet_ == "HF")
00052     {
00053       ndigis      = HistLim(500, 0., 500.);
00054       sime        = HistLim(100, 0., 100.);
00055       digiAmp     = HistLim(420, -100., 2000.);
00056       ratio       = HistLim(120, 0., 120.);
00057       pedLim      = HistLim(100, 0., 20.); 
00058       pedWidthLim = HistLim(100, 0., 5.); 
00059 
00060     }
00061   else if(subdet_ == "HO")
00062     {
00063       sime    = HistLim(200, 0., 1.0);
00064       digiAmp = HistLim(200, 0., 200.);
00065       gainLim = HistLim(150, 0., 1.5); 
00066    }
00067   
00068   Char_t histo[100];
00069   const char * sub = subdet_.c_str();
00070   if ( dbe_ ) {
00071     dbe_->setCurrentFolder("HcalDigisV/HcalDigiTask");
00072   }
00073 
00074   /*
00075   std::cout << " HcalSubdetDigiMonitor : "
00076             << "  subdet " << subdet_ 
00077             << "  noise_ " << noise_ 
00078             << std::endl;
00079   */
00080 
00081   if(noise_ == 0) {   
00082 
00083     // number of digis in each subdetector
00084         
00085     sprintf (histo, "HcalDigiTask_Ndigis_%s", sub ) ;
00086     meNdigis = book1D(histo, Ndigis);
00087 
00088     // maps of occupancies
00089     sprintf (histo, "HcalDigiTask_ieta_iphi_occupancy_map_depth1_%s", sub ) ;
00090     meOccupancy_map_depth1 = book2D(histo,  ietaLim, iphiLim);
00091 
00092     sprintf (histo, "HcalDigiTask_ieta_iphi_occupancy_map_depth2_%s", sub ) ;
00093     meOccupancy_map_depth2 = book2D(histo,  ietaLim, iphiLim);
00094 
00095     sprintf (histo, "HcalDigiTask_ieta_iphi_occupancy_map_depth3_%s", sub ) ;
00096     meOccupancy_map_depth3 = book2D(histo,  ietaLim, iphiLim);
00097 
00098     sprintf (histo, "HcalDigiTask_ieta_iphi_occupancy_map_depth4_%s", sub ) ;
00099     meOccupancy_map_depth4 = book2D(histo,  ietaLim, iphiLim);
00100 
00101     // occupancies vs ieta
00102     sprintf (histo, "HcalDigiTask_occupancy_vs_ieta_depth1_%s", sub ) ;
00103     meOccupancy_vs_ieta_depth1 = book1D(histo,  ietaLim);
00104 
00105     sprintf (histo, "HcalDigiTask_occupancy_vs_ieta_depth2_%s", sub ) ;
00106     meOccupancy_vs_ieta_depth2 = book1D(histo,  ietaLim);
00107 
00108     sprintf (histo, "HcalDigiTask_occupancy_vs_ieta_depth3_%s", sub ) ;
00109     meOccupancy_vs_ieta_depth3 = book1D(histo,  ietaLim);
00110 
00111     sprintf (histo, "HcalDigiTask_occupancy_vs_ieta_depth4_%s", sub ) ;
00112     meOccupancy_vs_ieta_depth4 = book1D(histo,  ietaLim);
00113 
00114 
00115     // maps of sum of amplitudes (sum lin.digis(4,5,6,7) - ped) all depths
00116     sprintf (histo, "HcalDigiTask_ieta_iphi_map_of_amplitudes_fC_depth1_%s", sub ) ;
00117     meAmplIetaIphi1= book2D(histo,  ietaLim, iphiLim);
00118     sprintf (histo, "HcalDigiTask_ieta_iphi_map_of_amplitudes_fC_depth2_%s", sub ) ;
00119     meAmplIetaIphi2= book2D(histo,  ietaLim, iphiLim);
00120     sprintf (histo, "HcalDigiTask_ieta_iphi_map_of_amplitudes_fC_depth3_%s", sub ) ;
00121     meAmplIetaIphi3= book2D(histo,  ietaLim, iphiLim);
00122     sprintf (histo, "HcalDigiTask_ieta_iphi_map_of_amplitudes_fC_depth4_%s", sub ) ;
00123     meAmplIetaIphi4= book2D(histo,  ietaLim, iphiLim);
00124     // just 1D of all cells' amplitudes 
00125     sprintf (histo, "HcalDigiTask_sum_all_amplitudes_%s", sub);
00126     meSumAmp = book1D(histo, sumAmp);
00127 
00128     sprintf (histo, "HcalDigiTask_number_of_amplitudes_above_10fC_%s", sub);
00129     menDigis = book1D(histo, ndigis);
00130 
00131     sprintf (histo, "HcalDigiTask_ADC0_adc_depth1_%s", sub);
00132     meADC0_depth1 = book1D(histo, pedestal);
00133     sprintf (histo, "HcalDigiTask_ADC0_adc_depth2_%s", sub);
00134     meADC0_depth2 = book1D(histo, pedestal);
00135     sprintf (histo, "HcalDigiTask_ADC0_adc_depth3_%s", sub);
00136     meADC0_depth3 = book1D(histo, pedestal);
00137     sprintf (histo, "HcalDigiTask_ADC0_adc_depth4_%s", sub);
00138     meADC0_depth4 = book1D(histo, pedestal);
00139    
00140     sprintf (histo, "HcalDigiTask_ADC0_fC_depth1_%s", sub);
00141     meADC0fC_depth1 = book1D(histo, pedestalfC);    
00142     sprintf (histo, "HcalDigiTask_ADC0_fC_depth2_%s", sub);
00143     meADC0fC_depth2 = book1D(histo, pedestalfC);
00144     sprintf (histo, "HcalDigiTask_ADC0_fC_depth3_%s", sub);
00145     meADC0fC_depth3 = book1D(histo, pedestalfC);
00146     sprintf (histo, "HcalDigiTask_ADC0_fC_depth4_%s", sub);
00147     meADC0fC_depth4 = book1D(histo, pedestalfC);
00148 
00149     sprintf (histo, "HcalDigiTask_signal_amplitude_%s", sub);
00150     meSignalAmp  = book1D(histo, digiAmp );
00151     sprintf (histo, "HcalDigiTask_signal_amplitude_depth1_%s", sub);
00152     meSignalAmp1 = book1D(histo, digiAmp );
00153     sprintf (histo, "HcalDigiTask_signal_amplitude_depth2_%s", sub);
00154     meSignalAmp2 = book1D(histo, digiAmp );
00155     sprintf (histo, "HcalDigiTask_signal_amplitude_depth3_%s", sub);
00156     meSignalAmp3 = book1D(histo, digiAmp );
00157     sprintf (histo, "HcalDigiTask_signal_amplitude_depth4_%s", sub);
00158     meSignalAmp4 = book1D(histo, digiAmp );
00159 
00160   
00161     sprintf (histo, "HcalDigiTask_signal_amplitude_vs_bin_all_depths_%s", sub);
00162     meSignalTimeSlice = book2D(histo, nbin, digiAmp);
00163 
00164     sprintf (histo, "HcalDigiTask_all_amplitudes_vs_bin_%s", sub);
00165     meAll10slices = book2D(histo, nbin, digiAmp);
00166 
00167     sprintf (histo, "HcalDigiTask_all_amplitudes_vs_bin_1D_%s", sub);
00168     meAll10slices1D = book1D(histo, nbin);
00169 
00170     sprintf (histo, "HcalDigiTask_bin_5_frac_%s", sub);
00171     meBin5Frac = book1D(histo, frac);
00172     sprintf (histo, "HcalDigiTask_bin_6_7_frac_%s", sub);
00173     meBin67Frac = book1D(histo, frac);
00174 
00175     
00176     sprintf (histo, "HcalDigiTask_amplitude_vs_simhits_%s", sub);
00177     meDigiSimhit = book2D(histo, sime, digiAmp);
00178     sprintf (histo, "HcalDigiTask_amplitude_vs_simhits_depth1_%s", sub);
00179     meDigiSimhit1 = book2D(histo, sime, digiAmp);
00180     sprintf (histo, "HcalDigiTask_amplitude_vs_simhits_depth2_%s", sub);
00181     meDigiSimhit2 = book2D(histo, sime, digiAmp);
00182     sprintf (histo, "HcalDigiTask_amplitude_vs_simhits_depth3_%s", sub);
00183     meDigiSimhit3 = book2D(histo, sime, digiAmp);
00184     sprintf (histo, "HcalDigiTask_amplitude_vs_simhits_depth4_%s", sub);
00185     meDigiSimhit4 = book2D(histo, sime, digiAmp);
00186   
00187     sprintf (histo, "HcalDigiTask_amplitude_vs_simhits_profile_%s", sub);
00188     meDigiSimhitProfile = bookProfile(histo, sime, digiAmp);
00189     sprintf (histo, "HcalDigiTask_amplitude_vs_simhits_profile_depth1_%s",sub);
00190     meDigiSimhitProfile1 = bookProfile(histo, sime, digiAmp);
00191     sprintf (histo, "HcalDigiTask_amplitude_vs_simhits_profile_depth2_%s",sub);
00192     meDigiSimhitProfile2 = bookProfile(histo, sime, digiAmp);
00193     sprintf (histo, "HcalDigiTask_amplitude_vs_simhits_profile_depth3_%s",sub);
00194     meDigiSimhitProfile3 = bookProfile(histo, sime, digiAmp);
00195     sprintf (histo, "HcalDigiTask_amplitude_vs_simhits_profile_depth4_%s",sub);
00196     meDigiSimhitProfile4 = bookProfile(histo, sime, digiAmp);
00197   
00198     sprintf (histo, "HcalDigiTask_ratio_amplitude_vs_simhits_%s", sub);
00199     meRatioDigiSimhit = book1D(histo, ratio);
00200     sprintf (histo, "HcalDigiTask_ratio_amplitude_vs_simhits_depth1_%s", sub);
00201     meRatioDigiSimhit1 = book1D(histo, ratio);
00202     sprintf (histo, "HcalDigiTask_ratio_amplitude_vs_simhits_depth2_%s", sub);
00203     meRatioDigiSimhit2 = book1D(histo, ratio);
00204     sprintf (histo, "HcalDigiTask_ratio_amplitude_vs_simhits_depth3_%s", sub);
00205     meRatioDigiSimhit3 = book1D(histo, ratio);
00206     sprintf (histo, "HcalDigiTask_ratio_amplitude_vs_simhits_depth4_%s", sub);
00207     meRatioDigiSimhit4 = book1D(histo, ratio);
00208 
00209   }
00210   else {  // noise only  
00211     
00212     // EVENT "1" distributions of all cells properties 
00213     
00214          
00215     if(subdet_ == "HB" || subdet_ == "HE" || subdet_ == "HF") {
00216       sprintf (histo, "HcalDigiTask_gain_capId0_Depth1_%s", sub);
00217       meGain0Depth1 = book1D(histo,gainLim);
00218       sprintf (histo, "HcalDigiTask_gain_capId1_Depth1_%s", sub);
00219       meGain1Depth1 = book1D(histo,gainLim);
00220       sprintf (histo, "HcalDigiTask_gain_capId2_Depth1_%s", sub);
00221       meGain2Depth1 = book1D(histo,gainLim);
00222       sprintf (histo, "HcalDigiTask_gain_capId3_Depth1_%s", sub);
00223       meGain3Depth1 = book1D(histo,gainLim);
00224 
00225       sprintf (histo, "HcalDigiTask_gain_capId0_Depth2_%s", sub);
00226       meGain0Depth2 = book1D(histo,gainLim);
00227       sprintf (histo, "HcalDigiTask_gain_capId1_Depth2_%s", sub);
00228       meGain1Depth2 = book1D(histo,gainLim);
00229       sprintf (histo, "HcalDigiTask_gain_capId2_Depth2_%s", sub);
00230       meGain2Depth2 = book1D(histo,gainLim);
00231       sprintf (histo, "HcalDigiTask_gain_capId3_Depth2_%s", sub);
00232       meGain3Depth2 = book1D(histo,gainLim);
00233 
00234       sprintf (histo, "HcalDigiTask_gainWidth_capId0_Depth1_%s", sub);
00235       meGainWidth0Depth1 = book1D(histo,gainWidthLim);
00236       sprintf (histo, "HcalDigiTask_gainWidth_capId1_Depth1_%s", sub);
00237       meGainWidth1Depth1 = book1D(histo,gainWidthLim);
00238       sprintf (histo, "HcalDigiTask_gainWidth_capId2_Depth1_%s", sub);
00239       meGainWidth2Depth1 = book1D(histo,gainWidthLim);    
00240       sprintf (histo, "HcalDigiTask_gainWidth_capId3_Depth1_%s", sub);
00241       meGainWidth3Depth1 = book1D(histo,gainWidthLim);
00242     
00243       sprintf (histo, "HcalDigiTask_gainWidth_capId0_Depth2_%s", sub);
00244       meGainWidth0Depth2 = book1D(histo,gainWidthLim);
00245       sprintf (histo, "HcalDigiTask_gainWidth_capId1_Depth2_%s", sub);
00246       meGainWidth1Depth2 = book1D(histo,gainWidthLim);
00247       sprintf (histo, "HcalDigiTask_gainWidth_capId2_Depth2_%s", sub);
00248       meGainWidth2Depth2 = book1D(histo,gainWidthLim);    
00249       sprintf (histo, "HcalDigiTask_gainWidth_capId3_Depth2_%s", sub);
00250       meGainWidth3Depth2 = book1D(histo,gainWidthLim);
00251     
00252       sprintf (histo, "HcalDigiTask_pedestal_capId0_Depth1_%s", sub);
00253       mePed0Depth1 = book1D(histo,pedLim);
00254       sprintf (histo, "HcalDigiTask_pedestal_capId1_Depth1_%s", sub);
00255       mePed1Depth1 = book1D(histo,pedLim);
00256       sprintf (histo, "HcalDigiTask_pedestal_capId2_Depth1_%s", sub);
00257       mePed2Depth1 = book1D(histo,pedLim);
00258       sprintf (histo, "HcalDigiTask_pedestal_capId3_Depth1_%s", sub);
00259       mePed3Depth1 = book1D(histo,pedLim);
00260 
00261       sprintf (histo, "HcalDigiTask_pedestal_capId0_Depth2_%s", sub);
00262       mePed0Depth2 = book1D(histo,pedLim);
00263       sprintf (histo, "HcalDigiTask_pedestal_capId1_Depth2_%s", sub);
00264       mePed1Depth2 = book1D(histo,pedLim);
00265       sprintf (histo, "HcalDigiTask_pedestal_capId2_Depth2_%s", sub);
00266       mePed2Depth2 = book1D(histo,pedLim);
00267       sprintf (histo, "HcalDigiTask_pedestal_capId3_Depth2_%s", sub);
00268       mePed3Depth2 = book1D(histo,pedLim);
00269 
00270       sprintf (histo, "HcalDigiTask_pedestal_width_capId0_Depth1_%s", sub);
00271       mePedWidth0Depth1 = book1D(histo,pedWidthLim);
00272       sprintf (histo, "HcalDigiTask_pedestal_width_capId1_Depth1_%s", sub);
00273       mePedWidth1Depth1 = book1D(histo,pedWidthLim);
00274       sprintf (histo, "HcalDigiTask_pedestal_width_capId2_Depth1_%s", sub);
00275       mePedWidth2Depth1 = book1D(histo,pedWidthLim);
00276       sprintf (histo, "HcalDigiTask_pedestal_width_capId3_Depth1_%s", sub);
00277       mePedWidth3Depth1 = book1D(histo,pedWidthLim);
00278 
00279       sprintf (histo, "HcalDigiTask_pedestal_width_capId0_Depth2_%s", sub);
00280       mePedWidth0Depth2 = book1D(histo,pedWidthLim);
00281       sprintf (histo, "HcalDigiTask_pedestal_width_capId1_Depth2_%s", sub);
00282       mePedWidth1Depth2 = book1D(histo,pedWidthLim);
00283       sprintf (histo, "HcalDigiTask_pedestal_width_capId2_Depth2_%s", sub);
00284       mePedWidth2Depth2 = book1D(histo,pedWidthLim);
00285       sprintf (histo, "HcalDigiTask_pedestal_width_capId3_Depth2_%s", sub);
00286       mePedWidth3Depth2 = book1D(histo,pedWidthLim);
00287 
00288 
00289     }
00290 
00291     if(subdet_ == "HE") {
00292       sprintf (histo, "HcalDigiTask_gain_capId0_Depth3_%s", sub);
00293       meGain0Depth3 = book1D(histo,gainLim);
00294       sprintf (histo, "HcalDigiTask_gain_capId1_Depth3_%s", sub);
00295       meGain1Depth3 = book1D(histo,gainLim);
00296       sprintf (histo, "HcalDigiTask_gain_capId2_Depth3_%s", sub);
00297       meGain2Depth3 = book1D(histo,gainLim);
00298       sprintf (histo, "HcalDigiTask_gain_capId3_Depth3_%s", sub);
00299       meGain3Depth3 = book1D(histo,gainLim);
00300 
00301       sprintf (histo, "HcalDigiTask_gainWidth_capId0_Depth3_%s", sub);
00302       meGainWidth0Depth3 = book1D(histo,gainWidthLim);
00303       sprintf (histo, "HcalDigiTask_gainWidth_capId1_Depth3_%s", sub);
00304       meGainWidth1Depth3 = book1D(histo,gainWidthLim);
00305       sprintf (histo, "HcalDigiTask_gainWidth_capId2_Depth3_%s", sub);
00306       meGainWidth2Depth3 = book1D(histo,gainWidthLim);    
00307       sprintf (histo, "HcalDigiTask_gainWidth_capId3_Depth3_%s", sub);
00308       meGainWidth3Depth3 = book1D(histo,gainWidthLim);
00309     
00310       sprintf (histo, "HcalDigiTask_pedestal_capId0_Depth3_%s", sub);
00311       mePed0Depth3 = book1D(histo,pedLim);
00312       sprintf (histo, "HcalDigiTask_pedestal_capId1_Depth3_%s", sub);
00313       mePed1Depth3 = book1D(histo,pedLim);
00314       sprintf (histo, "HcalDigiTask_pedestal_capId2_Depth3_%s", sub);
00315       mePed2Depth3 = book1D(histo,pedLim);
00316       sprintf (histo, "HcalDigiTask_pedestal_capId3_Depth3_%s", sub);
00317       mePed3Depth3 = book1D(histo,pedLim);
00318 
00319       sprintf (histo, "HcalDigiTask_pedestal_width_capId0_Depth3_%s", sub);
00320       mePedWidth0Depth3 = book1D(histo,pedWidthLim);
00321       sprintf (histo, "HcalDigiTask_pedestal_width_capId1_Depth3_%s", sub);
00322       mePedWidth1Depth3 = book1D(histo,pedWidthLim);
00323       sprintf (histo, "HcalDigiTask_pedestal_width_capId2_Depth3_%s", sub);
00324       mePedWidth2Depth3 = book1D(histo,pedWidthLim);
00325       sprintf (histo, "HcalDigiTask_pedestal_width_capId3_Depth3_%s", sub);
00326       mePedWidth3Depth3 = book1D(histo,pedWidthLim);
00327 
00328     }
00329 
00330     if(subdet_ == "HO") {
00331       sprintf (histo, "HcalDigiTask_gain_capId0_Depth4_%s", sub);
00332       meGain0Depth4 = book1D(histo,gainLim);
00333       sprintf (histo, "HcalDigiTask_gain_capId1_Depth4_%s", sub);
00334       meGain1Depth4 = book1D(histo,gainLim);
00335       sprintf (histo, "HcalDigiTask_gain_capId2_Depth4_%s", sub);
00336       meGain2Depth4 = book1D(histo,gainLim);
00337       sprintf (histo, "HcalDigiTask_gain_capId3_Depth4_%s", sub);
00338       meGain3Depth4 = book1D(histo,gainLim);
00339 
00340       sprintf (histo, "HcalDigiTask_gainWidth_capId0_Depth4_%s", sub);
00341       meGainWidth0Depth4 = book1D(histo,gainWidthLim);
00342       sprintf (histo, "HcalDigiTask_gainWidth_capId1_Depth4_%s", sub);
00343       meGainWidth1Depth4 = book1D(histo,gainWidthLim);
00344       sprintf (histo, "HcalDigiTask_gainWidth_capId2_Depth4_%s", sub);
00345       meGainWidth2Depth4 = book1D(histo,gainWidthLim);    
00346       sprintf (histo, "HcalDigiTask_gainWidth_capId3_Depth4_%s", sub);
00347       meGainWidth3Depth4 = book1D(histo,gainWidthLim);
00348 
00349     
00350       sprintf (histo, "HcalDigiTask_pedestal_capId0_Depth4_%s", sub);
00351       mePed0Depth4 = book1D(histo,pedLim);
00352       sprintf (histo, "HcalDigiTask_pedestal_capId1_Depth4_%s", sub);
00353       mePed1Depth4 = book1D(histo,pedLim);
00354       sprintf (histo, "HcalDigiTask_pedestal_capId2_Depth4_%s", sub);
00355       mePed2Depth4 = book1D(histo,pedLim);
00356       sprintf (histo, "HcalDigiTask_pedestal_capId3_Depth4_%s", sub);
00357       mePed3Depth4 = book1D(histo,pedLim);
00358 
00359       sprintf (histo, "HcalDigiTask_pedestal_width_capId0_Depth4_%s", sub);
00360       mePedWidth0Depth4 = book1D(histo,pedWidthLim);
00361       sprintf (histo, "HcalDigiTask_pedestal_width_capId1_Depth4_%s", sub);
00362       mePedWidth1Depth4 = book1D(histo,pedWidthLim);
00363       sprintf (histo, "HcalDigiTask_pedestal_width_capId2_Depth4_%s", sub);
00364       mePedWidth2Depth4 = book1D(histo,pedWidthLim);
00365       sprintf (histo, "HcalDigiTask_pedestal_width_capId3_Depth4_%s", sub);
00366       mePedWidth3Depth4 = book1D(histo,pedWidthLim);
00367 
00368     }
00369 
00370     sprintf (histo, "HcalDigiTask_gainMap_Depth1_%s", sub);
00371     meGainMap1 = book2D(histo, ietaLim, iphiLim);
00372     sprintf (histo, "HcalDigiTask_gainMap_Depth2_%s", sub);
00373     meGainMap2 = book2D(histo, ietaLim, iphiLim);
00374     sprintf (histo, "HcalDigiTask_gainMap_Depth3_%s", sub);
00375     meGainMap3 = book2D(histo, ietaLim, iphiLim);
00376     sprintf (histo, "HcalDigiTask_gainMap_Depth4_%s", sub);
00377     meGainMap4 = book2D(histo, ietaLim, iphiLim);
00378     
00379     sprintf (histo, "HcalDigiTask_pwidthMap_Depth1_%s", sub);
00380     mePwidthMap1 = book2D(histo, ietaLim, iphiLim);
00381     sprintf (histo, "HcalDigiTask_pwidthMap_Depth2_%s", sub);
00382     mePwidthMap2 = book2D(histo, ietaLim, iphiLim);
00383     sprintf (histo, "HcalDigiTask_pwidthMap_Depth3_%s", sub);
00384     mePwidthMap3 = book2D(histo, ietaLim, iphiLim);
00385     sprintf (histo, "HcalDigiTask_pwidthMap_Depth4_%s", sub);
00386     mePwidthMap4 = book2D(histo, ietaLim, iphiLim);
00387  
00388   } //end of noise-only
00389 }
00390 
00391 
00392 MonitorElement * HcalSubdetDigiMonitor::book1D(const std::string & name, 
00393                                     HcalSubdetDigiMonitor::HistLim lim)
00394 {
00395   return dbe_->book1D(name, name, lim.n, lim.min, lim.max);
00396 }
00397 
00398 
00399 MonitorElement * HcalSubdetDigiMonitor::book2D(const std::string & name,
00400                                     HcalSubdetDigiMonitor::HistLim lim1,
00401                                     HcalSubdetDigiMonitor::HistLim lim2)
00402 {
00403   return dbe_->book2D(name, name, lim1.n, lim1.min, lim1.max,
00404                                   lim2.n, lim2.min, lim2.max);
00405 }
00406 
00407 MonitorElement * HcalSubdetDigiMonitor::bookProfile(const std::string & name,
00408                                     HcalSubdetDigiMonitor::HistLim lim1,
00409                                     HcalSubdetDigiMonitor::HistLim lim2)
00410 {
00411   return dbe_->bookProfile(name, name, lim1.n, lim1.min, lim1.max,
00412                                   lim2.n, lim2.min, lim2.max);
00413 }
00414 
00415 
00416