00001 #include "Validation/TrackerDigis/interface/SiStripDigiValid.h"
00002 #include "DataFormats/Common/interface/DetSetVector.h"
00003 #include "DataFormats/SiStripDigi/interface/SiStripDigi.h"
00004 #include "DataFormats/SiStripDetId/interface/StripSubdetector.h"
00005 #include "DataFormats/SiStripDetId/interface/TIBDetId.h"
00006 #include "DataFormats/SiStripDetId/interface/TOBDetId.h"
00007 #include "DataFormats/SiStripDetId/interface/TIDDetId.h"
00008 #include "DataFormats/SiStripDetId/interface/TECDetId.h"
00009 #include "Geometry/CommonTopologies/interface/RectangularStripTopology.h"
00010 #include "Geometry/CommonTopologies/interface/TrapezoidalStripTopology.h"
00011 #include "Geometry/Records/interface/TrackerDigiGeometryRecord.h"
00012 #include "Geometry/TrackerGeometryBuilder/interface/TrackerGeometry.h"
00013 #include "Geometry/TrackerGeometryBuilder/interface/StripGeomDetUnit.h"
00014 #include "DataFormats/GeometryVector/interface/GlobalPoint.h"
00015 #include "DataFormats/GeometryVector/interface/LocalPoint.h"
00016 #include "DQMServices/Core/interface/DQMStore.h"
00017
00018 using namespace std;
00019 using namespace edm;
00020
00021 SiStripDigiValid::SiStripDigiValid(const ParameterSet& ps):dbe_(0){
00022
00023 outputFile_ = ps.getUntrackedParameter<string>("outputFile", "stripdigihisto.root");
00024 src_ = ps.getParameter<edm::InputTag>( "src" );
00025
00026 dbe_ = Service<DQMStore>().operator->();
00027
00028 if ( dbe_ ) {
00029 dbe_->setCurrentFolder("TrackerDigisV/TrackerDigis/Strip");
00030
00031 for(int i = 0 ;i<3 ; i++) {
00032 Char_t histo[200];
00033
00034 sprintf(histo,"adc_tib_layer1_extmodule%d_zp",i+1);
00035 meAdcTIBLayer1Extzp_[i] = dbe_->book1D(histo,"Digis ADC",50,0.,300.);
00036 sprintf(histo,"adc_tib_layer1_intmodule%d_zp",i+1);
00037 meAdcTIBLayer1Intzp_[i] = dbe_->book1D(histo,"Digis ADC",50,0.,300.);
00038 sprintf(histo,"adc_tib_layer2_extmodule%d_zp",i+1);
00039 meAdcTIBLayer2Extzp_[i] = dbe_->book1D(histo,"Digis ADC",50,0.,300.);
00040 sprintf(histo,"adc_tib_layer2_intmodule%d_zp",i+1);
00041 meAdcTIBLayer2Intzp_[i] = dbe_->book1D(histo,"Digis ADC",50,0.,300.);
00042 sprintf(histo,"adc_tib_layer3_extmodule%d_zp",i+1);
00043 meAdcTIBLayer3Extzp_[i] = dbe_->book1D(histo,"Digis ADC",50,0.,300.);
00044 sprintf(histo,"adc_tib_layer3_intmodule%d_zp",i+1);
00045 meAdcTIBLayer3Intzp_[i] = dbe_->book1D(histo,"Digis ADC",50,0.,300.);
00046 sprintf(histo,"adc_tib_layer4_extmodule%d_zp",i+1);
00047 meAdcTIBLayer4Extzp_[i] = dbe_->book1D(histo,"Digis ADC",50,0.,300.);
00048 sprintf(histo,"adc_tib_layer4_intmodule%d_zp",i+1);
00049 meAdcTIBLayer4Intzp_[i] = dbe_->book1D(histo,"Digis ADC",50,0.,300.);
00050 sprintf(histo,"strip_tib_layer1_extmodule%d_zp",i+1);
00051 meStripTIBLayer1Extzp_[i] = dbe_->book1D(histo,"Digis Strip Num.",200,0.,800.);
00052 sprintf(histo,"strip_tib_layer1_intmodule%d_zp",i+1);
00053 meStripTIBLayer1Intzp_[i] = dbe_->book1D(histo,"Digis Strip Num.",200,0.,800.);
00054 sprintf(histo,"strip_tib_layer2_extmodule%d_zp",i+1);
00055 meStripTIBLayer2Extzp_[i] = dbe_->book1D(histo,"Digis Strip Num.",200,0.,800.);
00056 sprintf(histo,"strip_tib_layer2_intmodule%d_zp",i+1);
00057 meStripTIBLayer2Intzp_[i] = dbe_->book1D(histo,"Digis Strip Num.",200,0.,800.);
00058 sprintf(histo,"strip_tib_layer3_extmodule%d_zp",i+1);
00059 meStripTIBLayer3Extzp_[i] = dbe_->book1D(histo,"Digis Strip Num.",200,0.,800.);
00060 sprintf(histo,"strip_tib_layer3_intmodule%d_zp",i+1);
00061 meStripTIBLayer3Intzp_[i] = dbe_->book1D(histo,"Digis Strip Num.",200,0.,800.);
00062 sprintf(histo,"strip_tib_layer4_extmodule%d_zp",i+1);
00063 meStripTIBLayer4Extzp_[i] = dbe_->book1D(histo,"Digis Strip Num.",200,0.,800.);
00064 sprintf(histo,"strip_tib_layer4_intmodule%d_zp",i+1);
00065 meStripTIBLayer4Intzp_[i] = dbe_->book1D(histo,"Digis Strip Num.",200,0.,800.);
00066
00067 sprintf(histo,"adc_tib_layer1_extmodule%d_zm",i+1);
00068 meAdcTIBLayer1Extzm_[i] = dbe_->book1D(histo,"Digis ADC",50,0.,300.);
00069 sprintf(histo,"adc_tib_layer1_intmodule%d_zm",i+1);
00070 meAdcTIBLayer1Intzm_[i] = dbe_->book1D(histo,"Digis ADC",50,0.,300.);
00071 sprintf(histo,"adc_tib_layer2_extmodule%d_zm",i+1);
00072 meAdcTIBLayer2Extzm_[i] = dbe_->book1D(histo,"Digis ADC",50,0.,300.);
00073 sprintf(histo,"adc_tib_layer2_intmodule%d_zm",i+1);
00074 meAdcTIBLayer2Intzm_[i] = dbe_->book1D(histo,"Digis ADC",50,0.,300.);
00075 sprintf(histo,"adc_tib_layer3_extmodule%d_zm",i+1);
00076 meAdcTIBLayer3Extzm_[i] = dbe_->book1D(histo,"Digis ADC",50,0.,300.);
00077 sprintf(histo,"adc_tib_layer3_intmodule%d_zm",i+1);
00078 meAdcTIBLayer3Intzm_[i] = dbe_->book1D(histo,"Digis ADC",50,0.,300.);
00079 sprintf(histo,"adc_tib_layer4_extmodule%d_zm",i+1);
00080 meAdcTIBLayer4Extzm_[i] = dbe_->book1D(histo,"Digis ADC",50,0.,300.);
00081 sprintf(histo,"adc_tib_layer4_intmodule%d_zm",i+1);
00082 meAdcTIBLayer4Intzm_[i] = dbe_->book1D(histo,"Digis ADC",50,0.,300.);
00083 sprintf(histo,"strip_tib_layer1_extmodule%d_zm",i+1);
00084 meStripTIBLayer1Extzm_[i] = dbe_->book1D(histo,"Digis Strip Num.",200,0.,800.);
00085 sprintf(histo,"strip_tib_layer1_intmodule%d_zm",i+1);
00086 meStripTIBLayer1Intzm_[i] = dbe_->book1D(histo,"Digis Strip Num.",200,0.,800.);
00087 sprintf(histo,"strip_tib_layer2_extmodule%d_zm",i+1);
00088 meStripTIBLayer2Extzm_[i] = dbe_->book1D(histo,"Digis Strip Num.",200,0.,800.);
00089 sprintf(histo,"strip_tib_layer2_intmodule%d_zm",i+1);
00090 meStripTIBLayer2Intzm_[i] = dbe_->book1D(histo,"Digis Strip Num.",200,0.,800.);
00091 sprintf(histo,"strip_tib_layer3_extmodule%d_zm",i+1);
00092 meStripTIBLayer3Extzm_[i] = dbe_->book1D(histo,"Digis Strip Num.",200,0.,800.);
00093 sprintf(histo,"strip_tib_layer3_intmodule%d_zm",i+1);
00094 meStripTIBLayer3Intzm_[i] = dbe_->book1D(histo,"Digis Strip Num.",200,0.,800.);
00095 sprintf(histo,"strip_tib_layer4_extmodule%d_zm",i+1);
00096 meStripTIBLayer4Extzm_[i] = dbe_->book1D(histo,"Digis Strip Num.",200,0.,800.);
00097 sprintf(histo,"strip_tib_layer4_intmodule%d_zm",i+1);
00098 meStripTIBLayer4Intzm_[i] = dbe_->book1D(histo,"Digis Strip Num.",200,0.,800.);
00099
00100 }
00101
00102 for(int i = 0 ;i<6 ; i++) {
00103 Char_t histo[200];
00104
00105 sprintf(histo,"adc_tob_layer1_module%d_zp",i+1);
00106 meAdcTOBLayer1zp_[i] = dbe_->book1D(histo,"Digis ADC",10,0.,300.);
00107 sprintf(histo,"strip_tob_layer1_module%d_zp",i+1);
00108 meStripTOBLayer1zp_[i] = dbe_->book1D(histo,"Digis Strip Num.",200,0.,800.);
00109 sprintf(histo,"adc_tob_layer2_module%d_zp",i+1);
00110 meAdcTOBLayer2zp_[i] = dbe_->book1D(histo,"Digis ADC",10,0.,300.);
00111 sprintf(histo,"strip_tob_layer2_module%d_zp",i+1);
00112 meStripTOBLayer2zp_[i] = dbe_->book1D(histo,"Digis Strip Num.",200,0.,800.);
00113 sprintf(histo,"adc_tob_layer3_module%d_zp",i+1);
00114 meAdcTOBLayer3zp_[i] = dbe_->book1D(histo,"Digis ADC",10,0.,300.);
00115 sprintf(histo,"strip_tob_layer3_module%d_zp",i+1);
00116 meStripTOBLayer3zp_[i] = dbe_->book1D(histo,"Digis Strip Num.",200,0.,800.);
00117 sprintf(histo,"adc_tob_layer4_module%d_zp",i+1);
00118 meAdcTOBLayer4zp_[i] = dbe_->book1D(histo,"Digis ADC",10,0.,300.);
00119 sprintf(histo,"strip_tob_layer4_module%d_zp",i+1);
00120 meStripTOBLayer4zp_[i] = dbe_->book1D(histo,"Digis Strip Num.",200,0.,800.);
00121 sprintf(histo,"adc_tob_layer5_module%d_zp",i+1);
00122 meAdcTOBLayer5zp_[i] = dbe_->book1D(histo,"Digis ADC",10,0.,300.);
00123 sprintf(histo,"strip_tob_layer5_module%d_zp",i+1);
00124 meStripTOBLayer5zp_[i] = dbe_->book1D(histo,"Digis Strip Num.",200,0.,800.);
00125 sprintf(histo,"adc_tob_layer6_module%d_zp",i+1);
00126 meAdcTOBLayer6zp_[i] = dbe_->book1D(histo,"Digis ADC",10,0.,300.);
00127 sprintf(histo,"strip_tob_layer6_module%d_zp",i+1);
00128 meStripTOBLayer6zp_[i] = dbe_->book1D(histo,"Digis Strip Num.",200,0.,800.);
00129
00130 sprintf(histo,"adc_tob_layer1_module%d_zm",i+1);
00131 meAdcTOBLayer1zm_[i] = dbe_->book1D(histo,"Digis ADC",50,0.,300.);
00132 sprintf(histo,"strip_tob_layer1_module%d_zm",i+1);
00133 meStripTOBLayer1zm_[i] = dbe_->book1D(histo,"Digis Strip Num.",200,0.,800.);
00134 sprintf(histo,"adc_tob_layer2_module%d_zm",i+1);
00135 meAdcTOBLayer2zm_[i] = dbe_->book1D(histo,"Digis ADC",50,0.,300.);
00136 sprintf(histo,"strip_tob_layer2_module%d_zm",i+1);
00137 meStripTOBLayer2zm_[i] = dbe_->book1D(histo,"Digis Strip Num.",200,0.,800.);
00138 sprintf(histo,"adc_tob_layer3_module%d_zm",i+1);
00139 meAdcTOBLayer3zm_[i] = dbe_->book1D(histo,"Digis ADC",50,0.,300.);
00140 sprintf(histo,"strip_tob_layer3_module%d_zm",i+1);
00141 meStripTOBLayer3zm_[i] = dbe_->book1D(histo,"Digis Strip Num.",200,0.,800.);
00142 sprintf(histo,"adc_tob_layer4_module%d_zm",i+1);
00143 meAdcTOBLayer4zm_[i] = dbe_->book1D(histo,"Digis ADC",50,0.,300.);
00144 sprintf(histo,"strip_tob_layer4_module%d_zm",i+1);
00145 meStripTOBLayer4zm_[i] = dbe_->book1D(histo,"Digis Strip Num.",200,0.,800.);
00146 sprintf(histo,"adc_tob_layer5_module%d_zm",i+1);
00147 meAdcTOBLayer5zm_[i] = dbe_->book1D(histo,"Digis ADC",50,0.,300.);
00148 sprintf(histo,"strip_tob_layer5_module%d_zm",i+1);
00149 meStripTOBLayer5zm_[i] = dbe_->book1D(histo,"Digis Strip Num.",200,0.,800.);
00150 sprintf(histo,"adc_tob_layer6_module%d_zm",i+1);
00151 meAdcTOBLayer6zm_[i] = dbe_->book1D(histo,"Digis ADC",50,0.,300.);
00152 sprintf(histo,"strip_tob_layer6_module%d_zm",i+1);
00153 meStripTOBLayer6zm_[i] = dbe_->book1D(histo,"Digis Strip Num.",200,0.,800.);
00154 }
00155
00156 for(int i = 0 ;i<3 ; i++) {
00157 Char_t histo[200];
00158
00159 sprintf(histo,"adc_tid_wheel1_ring%d_zp",i+1);
00160 meAdcTIDWheel1zp_[i] = dbe_->book1D(histo,"Digis ADC",50,0.,300.);
00161 sprintf(histo,"adc_tid_wheel2_ring%d_zp",i+1);
00162 meAdcTIDWheel2zp_[i] = dbe_->book1D(histo,"Digis ADC",50,0.,300.);
00163 sprintf(histo,"adc_tid_wheel3_ring%d_zp",i+1);
00164 meAdcTIDWheel3zp_[i] = dbe_->book1D(histo,"Digis ADC",50,0.,300.);
00165 sprintf(histo,"strip_tid_wheel1_ring%d_zp",i+1);
00166 meStripTIDWheel1zp_[i] = dbe_->book1D(histo,"Digis Strip Num.",200,0.,800.);
00167 sprintf(histo,"strip_tid_wheel2_ring%d_zp",i+1);
00168 meStripTIDWheel2zp_[i] = dbe_->book1D(histo,"Digis Strip Num.",200,0.,800.);
00169 sprintf(histo,"strip_tid_wheel3_ring%d_zp",i+1);
00170 meStripTIDWheel3zp_[i] = dbe_->book1D(histo,"Digis Strip Num.",200,0.,800.);
00171
00172 sprintf(histo,"adc_tid_wheel1_ring%d_zm",i+1);
00173 meAdcTIDWheel1zm_[i] = dbe_->book1D(histo,"Digis ADC",50,0.,300.);
00174 sprintf(histo,"adc_tid_wheel2_ring%d_zm",i+1);
00175 meAdcTIDWheel2zm_[i] = dbe_->book1D(histo,"Digis ADC",50,0.,300.);
00176 sprintf(histo,"adc_tid_wheel3_ring%d_zm",i+1);
00177 meAdcTIDWheel3zm_[i] = dbe_->book1D(histo,"Digis ADC",50,0.,300.);
00178 sprintf(histo,"strip_tid_wheel1_ring%d_zm",i+1);
00179 meStripTIDWheel1zm_[i] = dbe_->book1D(histo,"Digis Strip Num.",200,0.,800.);
00180 sprintf(histo,"strip_tid_wheel2_ring%d_zm",i+1);
00181 meStripTIDWheel2zm_[i] = dbe_->book1D(histo,"Digis Strip Num.",200,0.,800.);
00182 sprintf(histo,"strip_tid_wheel3_ring%d_zm",i+1);
00183 meStripTIDWheel3zm_[i] = dbe_->book1D(histo,"Digis Strip Num.",200,0.,800.);
00184
00185 }
00186
00187 for(int i = 0 ;i<7 ; i++) {
00188 Char_t histo[200];
00189
00190 sprintf(histo,"adc_tec_wheel1_ring%d_zp",i+1);
00191 meAdcTECWheel1zp_[i] = dbe_->book1D(histo,"Digis ADC",50,0.,300.);
00192 sprintf(histo,"adc_tec_wheel2_ring%d_zp",i+1);
00193 meAdcTECWheel2zp_[i] = dbe_->book1D(histo,"Digis ADC",50,0.,300.);
00194 sprintf(histo,"adc_tec_wheel3_ring%d_zp",i+1);
00195 meAdcTECWheel3zp_[i] = dbe_->book1D(histo,"Digis ADC",50,0.,300.);
00196 sprintf(histo,"strip_tec_wheel1_ring%d_zp",i+1);
00197 meStripTECWheel1zp_[i] = dbe_->book1D(histo,"Digis Strip Num.",200,0.,800.);
00198 sprintf(histo,"strip_tec_wheel2_ring%d_zp",i+1);
00199 meStripTECWheel2zp_[i] = dbe_->book1D(histo,"Digis Strip Num.",200,0.,800.);
00200 sprintf(histo,"strip_tec_wheel3_ring%d_zp",i+1);
00201 meStripTECWheel3zp_[i] = dbe_->book1D(histo,"Digis Strip Num.",200,0.,800.);
00202
00203
00204 sprintf(histo,"adc_tec_wheel1_ring%d_zm",i+1);
00205 meAdcTECWheel1zm_[i] = dbe_->book1D(histo,"Digis ADC",50,0.,300.);
00206 sprintf(histo,"adc_tec_wheel2_ring%d_zm",i+1);
00207 meAdcTECWheel2zm_[i] = dbe_->book1D(histo,"Digis ADC",50,0.,300.);
00208 sprintf(histo,"adc_tec_wheel3_ring%d_zm",i+1);
00209 meAdcTECWheel3zm_[i] = dbe_->book1D(histo,"Digis ADC",50,0.,300.);
00210 sprintf(histo,"strip_tec_wheel1_ring%d_zm",i+1);
00211 meStripTECWheel1zm_[i] = dbe_->book1D(histo,"Digis Strip Num.",200,0.,800.);
00212 sprintf(histo,"strip_tec_wheel2_ring%d_zm",i+1);
00213 meStripTECWheel2zm_[i] = dbe_->book1D(histo,"Digis Strip Num.",200,0.,800.);
00214 sprintf(histo,"strip_tec_wheel3_ring%d_zm",i+1);
00215 meStripTECWheel3zm_[i] = dbe_->book1D(histo,"Digis Strip Num.",200,0.,800.);
00216 }
00217
00218 for(int i = 0 ;i<6 ; i++) {
00219 Char_t histo[200];
00220
00221 sprintf(histo,"adc_tec_wheel4_ring%d_zp",i+1);
00222 meAdcTECWheel4zp_[i] = dbe_->book1D(histo,"Digis ADC",50,0.,300.);
00223 sprintf(histo,"adc_tec_wheel5_ring%d_zp",i+1);
00224 meAdcTECWheel5zp_[i] = dbe_->book1D(histo,"Digis ADC",50,0.,300.);
00225 sprintf(histo,"adc_tec_wheel6_ring%d_zp",i+1);
00226 meAdcTECWheel6zp_[i] = dbe_->book1D(histo,"Digis ADC",50,0.,300.);
00227 sprintf(histo,"strip_tec_wheel4_ring%d_zp",i+1);
00228 meStripTECWheel4zp_[i] = dbe_->book1D(histo,"Digis Strip Num.",200,0.,800.);
00229 sprintf(histo,"strip_tec_wheel5_ring%d_zp",i+1);
00230 meStripTECWheel5zp_[i] = dbe_->book1D(histo,"Digis Strip Num.",200,0.,800.);
00231 sprintf(histo,"strip_tec_wheel6_ring%d_zp",i+1);
00232 meStripTECWheel6zp_[i] = dbe_->book1D(histo,"Digis Strip Num.",200,0.,800.);
00233
00234
00235 sprintf(histo,"adc_tec_wheel4_ring%d_zm",i+1);
00236 meAdcTECWheel4zm_[i] = dbe_->book1D(histo,"Digis ADC",50,0.,300.);
00237 sprintf(histo,"adc_tec_wheel5_ring%d_zm",i+1);
00238 meAdcTECWheel5zm_[i] = dbe_->book1D(histo,"Digis ADC",50,0.,300.);
00239 sprintf(histo,"adc_tec_wheel6_ring%d_zm",i+1);
00240 meAdcTECWheel6zm_[i] = dbe_->book1D(histo,"Digis ADC",50,0.,300.);
00241 sprintf(histo,"strip_tec_wheel4_ring%d_zm",i+1);
00242 meStripTECWheel4zm_[i] = dbe_->book1D(histo,"Digis Strip Num.",200,0.,800.);
00243 sprintf(histo,"strip_tec_wheel5_ring%d_zm",i+1);
00244 meStripTECWheel5zm_[i] = dbe_->book1D(histo,"Digis Strip Num.",200,0.,800.);
00245 sprintf(histo,"strip_tec_wheel6_ring%d_zm",i+1);
00246 meStripTECWheel6zm_[i] = dbe_->book1D(histo,"Digis Strip Num.",200,0.,800.);
00247 }
00248
00249 for(int i = 0 ;i<5 ; i++) {
00250 Char_t histo[200];
00251
00252 sprintf(histo,"adc_tec_wheel7_ring%d_zp",i+1);
00253 meAdcTECWheel7zp_[i] = dbe_->book1D(histo,"Digis ADC",50,0.,300.);
00254 sprintf(histo,"adc_tec_wheel8_ring%d_zp",i+1);
00255 meAdcTECWheel8zp_[i] = dbe_->book1D(histo,"Digis ADC",50,0.,300.);
00256 sprintf(histo,"strip_tec_wheel7_ring%d_zp",i+1);
00257 meStripTECWheel7zp_[i] = dbe_->book1D(histo,"Digis Strip Num.",200,0.,800.);
00258 sprintf(histo,"strip_tec_wheel8_ring%d_zp",i+1);
00259 meStripTECWheel8zp_[i] = dbe_->book1D(histo,"Digis Strip Num.",200,0.,800.);
00260
00261
00262 sprintf(histo,"adc_tec_wheel7_ring%d_zm",i+1);
00263 meAdcTECWheel7zm_[i] = dbe_->book1D(histo,"Digis ADC",50,0.,300.);
00264 sprintf(histo,"adc_tec_wheel8_ring%d_zm",i+1);
00265 meAdcTECWheel8zm_[i] = dbe_->book1D(histo,"Digis ADC",50,0.,300.);
00266 sprintf(histo,"strip_tec_wheel7_ring%d_zm",i+1);
00267 meStripTECWheel7zm_[i] = dbe_->book1D(histo,"Digis Strip Num.",200,0.,800.);
00268 sprintf(histo,"strip_tec_wheel8_ring%d_zm",i+1);
00269 meStripTECWheel8zm_[i] = dbe_->book1D(histo,"Digis Strip Num.",200,0.,800.);
00270 }
00271
00272 for(int i = 0 ;i<4 ; i++) {
00273 Char_t histo[200];
00274
00275 sprintf(histo,"adc_tec_wheel9_ring%d_zp",i+1);
00276 meAdcTECWheel9zp_[i] = dbe_->book1D(histo,"Digis ADC",50,0.,300.);
00277 sprintf(histo,"strip_tec_wheel9_ring%d_zp",i+1);
00278 meStripTECWheel9zp_[i] = dbe_->book1D(histo,"Digis Strip Num.",200,0.,800.);
00279
00280
00281 sprintf(histo,"adc_tec_wheel9_ring%d_zm",i+1);
00282 meAdcTECWheel9zm_[i] = dbe_->book1D(histo,"Digis ADC",50,0.,300.);
00283 sprintf(histo,"strip_tec_wheel9_ring%d_zm",i+1);
00284 meStripTECWheel9zm_[i] = dbe_->book1D(histo,"Digis Strip Num.",200,0.,800.);
00285 }
00286
00287
00288 for(int i = 0 ;i<4 ; i++) {
00289 Char_t histo[200];
00290 sprintf(histo,"ndigi_tib_layer_%d_zm",i+1);
00291 meNDigiTIBLayerzm_[i] = dbe_->book1D(histo, "Digi Multiplicity",100,0.,500.);
00292 sprintf(histo,"ndigi_tib_layer_%d_zp",i+1);
00293 meNDigiTIBLayerzp_[i] = dbe_->book1D(histo, "Digi Multiplicity",100,0.,500.);
00294 }
00295
00296 for(int i = 0 ;i<6 ; i++) {
00297 Char_t histo[200];
00298 sprintf(histo,"ndigi_tob_layer_%d_zm",i+1);
00299 meNDigiTOBLayerzm_[i] = dbe_->book1D(histo, "Digi Multiplicity",100,0.,500.);
00300 sprintf(histo,"ndigi_tob_layer_%d_zp",i+1);
00301 meNDigiTOBLayerzp_[i] = dbe_->book1D(histo, "Digi Multiplicity",100,0.,500.);
00302
00303 }
00304
00305 for(int i = 0 ;i<3 ; i++) {
00306 Char_t histo[200];
00307 sprintf(histo,"ndigi_tid_wheel_%d_zm",i+1);
00308 meNDigiTIDWheelzm_[i] = dbe_->book1D(histo, "Digi Multiplicity",100,0.,500.);
00309 sprintf(histo,"ndigi_tid_wheel_%d_zp",i+1);
00310 meNDigiTIDWheelzp_[i] = dbe_->book1D(histo, "Digi Multiplicity",100,0.,500.);
00311 }
00312
00313 for(int i = 0 ;i<9 ; i++) {
00314 Char_t histo[200];
00315 sprintf(histo,"ndigi_tec_wheel_%d_zm",i+1);
00316 meNDigiTECWheelzm_[i] = dbe_->book1D(histo, "Digi Multiplicity",100,0.,500.);
00317 sprintf(histo,"ndigi_tec_wheel_%d_zp",i+1);
00318 meNDigiTECWheelzp_[i] = dbe_->book1D(histo, "Digi Multiplicity",100,0.,500.);
00319
00320 }
00321 }
00322
00323 }
00324
00325 SiStripDigiValid::~SiStripDigiValid(){
00326
00327
00328 }
00329
00330
00331 void SiStripDigiValid::beginJob(const EventSetup& c){
00332
00333 }
00334
00335 void SiStripDigiValid::endJob() {
00336 if ( outputFile_.size() != 0 && dbe_ ) dbe_->save(outputFile_);
00337
00338 }
00339
00340
00341 void SiStripDigiValid::analyze(const Event& e, const EventSetup& c){
00342
00343 int ndigilayertibzp[4];
00344 int ndigilayertibzm[4];
00345
00346 for( int i = 0; i< 4; i++ ) {
00347 ndigilayertibzp[i] = 0;
00348 ndigilayertibzm[i] = 0;
00349 }
00350
00351 int ndigilayertobzp[6];
00352 int ndigilayertobzm[6];
00353
00354 for( int i = 0; i< 6; i++ ) {
00355 ndigilayertobzp[i] = 0;
00356 ndigilayertobzm[i] = 0;
00357 }
00358
00359 int ndigiwheeltidzp[3];
00360 int ndigiwheeltidzm[3];
00361
00362 for( int i = 0; i< 3; i++ ) {
00363 ndigiwheeltidzp[i] = 0;
00364 ndigiwheeltidzm[i] = 0;
00365 }
00366
00367 int ndigiwheelteczp[9];
00368 int ndigiwheelteczm[9];
00369
00370 for( int i = 0; i< 9; i++ ) {
00371 ndigiwheelteczp[i] = 0;
00372 ndigiwheelteczm[i] = 0;
00373 }
00374
00375
00376
00377
00378 ESHandle<TrackerGeometry> tracker;
00379 c.get<TrackerDigiGeometryRecord>().get( tracker );
00380
00381 std::string digiProducer = "siStripDigis";
00382 edm::Handle<edm::DetSetVector<SiStripDigi> > stripDigis;
00383 e.getByLabel(src_, stripDigis);
00384 edm::DetSetVector<SiStripDigi>::const_iterator DSViter = stripDigis->begin();
00385 for( ; DSViter != stripDigis->end(); DSViter++) {
00386 unsigned int id = DSViter->id;
00387 DetId detId(id);
00388 edm::DetSet<SiStripDigi>::const_iterator begin = DSViter->data.begin();
00389 edm::DetSet<SiStripDigi>::const_iterator end = DSViter->data.end();
00390 edm::DetSet<SiStripDigi>::const_iterator iter;
00391
00392 if(detId.subdetId()==StripSubdetector::TIB){
00393 TIBDetId tibid(id);
00394 for ( iter = begin ; iter != end; iter++ ) {
00395 if( tibid.string()[0] == 1) {
00396 ++ndigilayertibzm[tibid.layer()-1];
00397 if( tibid.layer() == 1 ) {
00398 if ( tibid.string()[1] == 1 ) {
00399 if( tibid.module() == 1 ) { meAdcTIBLayer1Intzm_[0] -> Fill((*iter).adc()); meStripTIBLayer1Intzm_[0] ->Fill((*iter).strip()); }
00400 if( tibid.module() == 2 ) { meAdcTIBLayer1Intzm_[1] -> Fill((*iter).adc()); meStripTIBLayer1Intzm_[1] ->Fill((*iter).strip()); }
00401 if( tibid.module() == 3 ) { meAdcTIBLayer1Intzm_[2] -> Fill((*iter).adc()); meStripTIBLayer1Intzm_[2] ->Fill((*iter).strip()); }
00402 }else {
00403 if( tibid.module() == 1 ) { meAdcTIBLayer1Extzm_[0] -> Fill((*iter).adc()); meStripTIBLayer1Extzm_[0] ->Fill((*iter).strip()); }
00404 if( tibid.module() == 2 ) { meAdcTIBLayer1Extzm_[1] -> Fill((*iter).adc()); meStripTIBLayer1Extzm_[1] ->Fill((*iter).strip()); }
00405 if( tibid.module() == 3 ) { meAdcTIBLayer1Extzm_[2] -> Fill((*iter).adc()); meStripTIBLayer1Extzm_[2] ->Fill((*iter).strip()); }
00406 }
00407 }
00408 if( tibid.layer() == 2 ) {
00409 if ( tibid.string()[1] == 1 ) {
00410 if( tibid.module() == 1 ) { meAdcTIBLayer2Intzm_[0] -> Fill((*iter).adc()); meStripTIBLayer2Intzm_[0] ->Fill((*iter).strip()); }
00411 if( tibid.module() == 2 ) { meAdcTIBLayer2Intzm_[1] -> Fill((*iter).adc()); meStripTIBLayer2Intzm_[1] ->Fill((*iter).strip()); }
00412 if( tibid.module() == 3 ) { meAdcTIBLayer2Intzm_[2] -> Fill((*iter).adc()); meStripTIBLayer2Intzm_[2] ->Fill((*iter).strip()); }
00413 }else {
00414 if( tibid.module() == 1 ) { meAdcTIBLayer2Extzm_[0] -> Fill((*iter).adc()); meStripTIBLayer2Extzm_[0] ->Fill((*iter).strip()); }
00415 if( tibid.module() == 2 ) { meAdcTIBLayer2Extzm_[1] -> Fill((*iter).adc()); meStripTIBLayer2Extzm_[1] ->Fill((*iter).strip()); }
00416 if( tibid.module() == 3 ) { meAdcTIBLayer2Extzm_[2] -> Fill((*iter).adc()); meStripTIBLayer2Extzm_[2] ->Fill((*iter).strip()); }
00417 }
00418 }
00419 if( tibid.layer() == 3 ) {
00420 if ( tibid.string()[1] == 1 ) {
00421 if( tibid.module() == 1 ) { meAdcTIBLayer3Intzm_[0] -> Fill((*iter).adc()); meStripTIBLayer3Intzm_[0] ->Fill((*iter).strip()); }
00422 if( tibid.module() == 2 ) { meAdcTIBLayer3Intzm_[1] -> Fill((*iter).adc()); meStripTIBLayer3Intzm_[1] ->Fill((*iter).strip()); }
00423 if( tibid.module() == 3 ) { meAdcTIBLayer3Intzm_[2] -> Fill((*iter).adc()); meStripTIBLayer3Intzm_[2] ->Fill((*iter).strip()); }
00424 }else {
00425 if( tibid.module() == 1 ) { meAdcTIBLayer3Extzm_[0] -> Fill((*iter).adc()); meStripTIBLayer3Extzm_[0] ->Fill((*iter).strip()); }
00426 if( tibid.module() == 2 ) { meAdcTIBLayer3Extzm_[1] -> Fill((*iter).adc()); meStripTIBLayer3Extzm_[1] ->Fill((*iter).strip()); }
00427 if( tibid.module() == 3 ) { meAdcTIBLayer3Extzm_[2] -> Fill((*iter).adc()); meStripTIBLayer3Extzm_[2] ->Fill((*iter).strip()); }
00428 }
00429 }
00430 if( tibid.layer() == 4 ) {
00431 if ( tibid.string()[1] == 1 ) {
00432 if( tibid.module() == 1 ) { meAdcTIBLayer4Intzm_[0] -> Fill((*iter).adc()); meStripTIBLayer4Intzm_[0] ->Fill((*iter).strip()); }
00433 if( tibid.module() == 2 ) { meAdcTIBLayer4Intzm_[1] -> Fill((*iter).adc()); meStripTIBLayer4Intzm_[1] ->Fill((*iter).strip()); }
00434 if( tibid.module() == 3 ) { meAdcTIBLayer4Intzm_[2] -> Fill((*iter).adc()); meStripTIBLayer4Intzm_[2] ->Fill((*iter).strip()); }
00435 }else {
00436 if( tibid.module() == 1 ) { meAdcTIBLayer4Extzm_[0] -> Fill((*iter).adc()); meStripTIBLayer4Extzm_[0] ->Fill((*iter).strip()); }
00437 if( tibid.module() == 2 ) { meAdcTIBLayer4Extzm_[1] -> Fill((*iter).adc()); meStripTIBLayer4Extzm_[1] ->Fill((*iter).strip()); }
00438 if( tibid.module() == 3 ) { meAdcTIBLayer4Extzm_[2] -> Fill((*iter).adc()); meStripTIBLayer4Extzm_[2] ->Fill((*iter).strip()); }
00439 }
00440 }
00441 }else {
00442 ++ndigilayertibzp[tibid.layer()-1];
00443 if( tibid.layer() == 1 ) {
00444 if ( tibid.string()[1] == 1 ) {
00445 if( tibid.module() == 1 ) { meAdcTIBLayer1Intzp_[0] -> Fill((*iter).adc()); meStripTIBLayer1Intzp_[0] ->Fill((*iter).strip()); }
00446 if( tibid.module() == 2 ) { meAdcTIBLayer1Intzp_[1] -> Fill((*iter).adc()); meStripTIBLayer1Intzp_[1] ->Fill((*iter).strip()); }
00447 if( tibid.module() == 3 ) { meAdcTIBLayer1Intzp_[2] -> Fill((*iter).adc()); meStripTIBLayer1Intzp_[2] ->Fill((*iter).strip()); }
00448 }else {
00449 if( tibid.module() == 1 ) { meAdcTIBLayer1Extzp_[0] -> Fill((*iter).adc()); meStripTIBLayer1Extzp_[0] ->Fill((*iter).strip()); }
00450 if( tibid.module() == 2 ) { meAdcTIBLayer1Extzp_[1] -> Fill((*iter).adc()); meStripTIBLayer1Extzp_[1] ->Fill((*iter).strip()); }
00451 if( tibid.module() == 3 ) { meAdcTIBLayer1Extzp_[2] -> Fill((*iter).adc()); meStripTIBLayer1Extzp_[2] ->Fill((*iter).strip()); }
00452 }
00453 }
00454 if( tibid.layer() == 2 ) {
00455 if ( tibid.string()[1] == 1 ) {
00456 if( tibid.module() == 1 ) { meAdcTIBLayer2Intzp_[0] -> Fill((*iter).adc()); meStripTIBLayer2Intzp_[0] ->Fill((*iter).strip()); }
00457 if( tibid.module() == 2 ) { meAdcTIBLayer2Intzp_[1] -> Fill((*iter).adc()); meStripTIBLayer2Intzp_[1] ->Fill((*iter).strip()); }
00458 if( tibid.module() == 3 ) { meAdcTIBLayer2Intzp_[2] -> Fill((*iter).adc()); meStripTIBLayer2Intzp_[2] ->Fill((*iter).strip()); }
00459 }else {
00460 if( tibid.module() == 1 ) { meAdcTIBLayer2Extzp_[0] -> Fill((*iter).adc()); meStripTIBLayer2Extzp_[0] ->Fill((*iter).strip()); }
00461 if( tibid.module() == 2 ) { meAdcTIBLayer2Extzp_[1] -> Fill((*iter).adc()); meStripTIBLayer2Extzp_[1] ->Fill((*iter).strip()); }
00462 if( tibid.module() == 3 ) { meAdcTIBLayer2Extzp_[2] -> Fill((*iter).adc()); meStripTIBLayer2Extzp_[2] ->Fill((*iter).strip()); }
00463 }
00464 }
00465 if( tibid.layer() == 3 ) {
00466 if ( tibid.string()[1] == 1 ) {
00467 if( tibid.module() == 1 ) { meAdcTIBLayer3Intzp_[0] -> Fill((*iter).adc()); meStripTIBLayer3Intzp_[0] ->Fill((*iter).strip()); }
00468 if( tibid.module() == 2 ) { meAdcTIBLayer3Intzp_[1] -> Fill((*iter).adc()); meStripTIBLayer3Intzp_[1] ->Fill((*iter).strip()); }
00469 if( tibid.module() == 3 ) { meAdcTIBLayer3Intzp_[2] -> Fill((*iter).adc()); meStripTIBLayer3Intzp_[2] ->Fill((*iter).strip()); }
00470 }else {
00471 if( tibid.module() == 1 ) { meAdcTIBLayer3Extzp_[0] -> Fill((*iter).adc()); meStripTIBLayer3Extzp_[0] ->Fill((*iter).strip()); }
00472 if( tibid.module() == 2 ) { meAdcTIBLayer3Extzp_[1] -> Fill((*iter).adc()); meStripTIBLayer3Extzp_[1] ->Fill((*iter).strip()); }
00473 if( tibid.module() == 3 ) { meAdcTIBLayer3Extzp_[2] -> Fill((*iter).adc()); meStripTIBLayer3Extzp_[2] ->Fill((*iter).strip()); }
00474 }
00475 }
00476 if( tibid.layer() == 4 ) {
00477 if ( tibid.string()[1] == 1) {
00478 if( tibid.module() == 1 ) { meAdcTIBLayer4Intzp_[0] -> Fill((*iter).adc()); meStripTIBLayer4Intzp_[0] ->Fill((*iter).strip()); }
00479 if( tibid.module() == 2 ) { meAdcTIBLayer4Intzp_[1] -> Fill((*iter).adc()); meStripTIBLayer4Intzp_[1] ->Fill((*iter).strip()); }
00480 if( tibid.module() == 3 ) { meAdcTIBLayer4Intzp_[2] -> Fill((*iter).adc()); meStripTIBLayer4Intzp_[2] ->Fill((*iter).strip()); }
00481 }else {
00482 if( tibid.module() == 1 ) { meAdcTIBLayer4Extzp_[0] -> Fill((*iter).adc()); meStripTIBLayer4Extzp_[0] ->Fill((*iter).strip()); }
00483 if( tibid.module() == 2 ) { meAdcTIBLayer4Extzp_[1] -> Fill((*iter).adc()); meStripTIBLayer4Extzp_[1] ->Fill((*iter).strip()); }
00484 if( tibid.module() == 3 ) { meAdcTIBLayer4Extzp_[2] -> Fill((*iter).adc()); meStripTIBLayer4Extzp_[2] ->Fill((*iter).strip()); }
00485 }
00486 }
00487
00488 }
00489 }
00490 }
00491 if(detId.subdetId()==StripSubdetector::TOB){
00492 TOBDetId tobid(id);
00493 for ( iter = begin ; iter != end; iter++ ) {
00494 if( tobid.rod()[0] == 1) {
00495 ++ndigilayertobzm[tobid.layer()-1];
00496 if( tobid.layer() == 1 ) {
00497 if ( tobid.module() == 1 ) { meAdcTOBLayer1zm_[0] -> Fill((*iter).adc()); meStripTOBLayer1zm_[0] ->Fill((*iter).strip()); }
00498 if ( tobid.module() == 2 ) { meAdcTOBLayer1zm_[1] -> Fill((*iter).adc()); meStripTOBLayer1zm_[1] ->Fill((*iter).strip()); }
00499 if ( tobid.module() == 3 ) { meAdcTOBLayer1zm_[2] -> Fill((*iter).adc()); meStripTOBLayer1zm_[2] ->Fill((*iter).strip()); }
00500 if ( tobid.module() == 4 ) { meAdcTOBLayer1zm_[3] -> Fill((*iter).adc()); meStripTOBLayer1zm_[3] ->Fill((*iter).strip()); }
00501 if ( tobid.module() == 5 ) { meAdcTOBLayer1zm_[4] -> Fill((*iter).adc()); meStripTOBLayer1zm_[4] ->Fill((*iter).strip()); }
00502 if ( tobid.module() == 6 ) { meAdcTOBLayer1zm_[5] -> Fill((*iter).adc()); meStripTOBLayer1zm_[5] ->Fill((*iter).strip()); }
00503 }
00504 if( tobid.layer() == 2 ) {
00505 if ( tobid.module() == 1 ) { meAdcTOBLayer2zm_[0] -> Fill((*iter).adc()); meStripTOBLayer2zm_[0] ->Fill((*iter).strip()); }
00506 if ( tobid.module() == 2 ) { meAdcTOBLayer2zm_[1] -> Fill((*iter).adc()); meStripTOBLayer2zm_[1] ->Fill((*iter).strip()); }
00507 if ( tobid.module() == 3 ) { meAdcTOBLayer2zm_[2] -> Fill((*iter).adc()); meStripTOBLayer2zm_[2] ->Fill((*iter).strip()); }
00508 if ( tobid.module() == 4 ) { meAdcTOBLayer2zm_[3] -> Fill((*iter).adc()); meStripTOBLayer2zm_[3] ->Fill((*iter).strip()); }
00509 if ( tobid.module() == 5 ) { meAdcTOBLayer2zm_[4] -> Fill((*iter).adc()); meStripTOBLayer2zm_[4] ->Fill((*iter).strip()); }
00510 if ( tobid.module() == 6 ) { meAdcTOBLayer2zm_[5] -> Fill((*iter).adc()); meStripTOBLayer2zm_[5] ->Fill((*iter).strip()); }
00511 }
00512 if( tobid.layer() == 3 ) {
00513 if ( tobid.module() == 1 ) { meAdcTOBLayer3zm_[0] -> Fill((*iter).adc()); meStripTOBLayer3zm_[0] ->Fill((*iter).strip()); }
00514 if ( tobid.module() == 2 ) { meAdcTOBLayer3zm_[1] -> Fill((*iter).adc()); meStripTOBLayer3zm_[1] ->Fill((*iter).strip()); }
00515 if ( tobid.module() == 3 ) { meAdcTOBLayer3zm_[2] -> Fill((*iter).adc()); meStripTOBLayer3zm_[2] ->Fill((*iter).strip()); }
00516 if ( tobid.module() == 4 ) { meAdcTOBLayer3zm_[3] -> Fill((*iter).adc()); meStripTOBLayer3zm_[3] ->Fill((*iter).strip()); }
00517 if ( tobid.module() == 5 ) { meAdcTOBLayer3zm_[4] -> Fill((*iter).adc()); meStripTOBLayer3zm_[4] ->Fill((*iter).strip()); }
00518 if ( tobid.module() == 6 ) { meAdcTOBLayer3zm_[5] -> Fill((*iter).adc()); meStripTOBLayer3zm_[5] ->Fill((*iter).strip()); }
00519 }
00520 if( tobid.layer() == 4 ) {
00521 if ( tobid.module() == 1 ) { meAdcTOBLayer4zm_[0] -> Fill((*iter).adc()); meStripTOBLayer4zm_[0] ->Fill((*iter).strip()); }
00522 if ( tobid.module() == 2 ) { meAdcTOBLayer4zm_[1] -> Fill((*iter).adc()); meStripTOBLayer4zm_[1] ->Fill((*iter).strip()); }
00523 if ( tobid.module() == 3 ) { meAdcTOBLayer4zm_[2] -> Fill((*iter).adc()); meStripTOBLayer4zm_[2] ->Fill((*iter).strip()); }
00524 if ( tobid.module() == 4 ) { meAdcTOBLayer4zm_[3] -> Fill((*iter).adc()); meStripTOBLayer4zm_[3] ->Fill((*iter).strip()); }
00525 if ( tobid.module() == 5 ) { meAdcTOBLayer4zm_[4] -> Fill((*iter).adc()); meStripTOBLayer4zm_[4] ->Fill((*iter).strip()); }
00526 if ( tobid.module() == 6 ) { meAdcTOBLayer4zm_[5] -> Fill((*iter).adc()); meStripTOBLayer4zm_[5] ->Fill((*iter).strip()); }
00527 }
00528 if( tobid.layer() == 5 ) {
00529 if ( tobid.module() == 1 ) { meAdcTOBLayer5zm_[0] -> Fill((*iter).adc()); meStripTOBLayer5zm_[0] ->Fill((*iter).strip()); }
00530 if ( tobid.module() == 2 ) { meAdcTOBLayer5zm_[1] -> Fill((*iter).adc()); meStripTOBLayer5zm_[1] ->Fill((*iter).strip()); }
00531 if ( tobid.module() == 3 ) { meAdcTOBLayer5zm_[2] -> Fill((*iter).adc()); meStripTOBLayer5zm_[2] ->Fill((*iter).strip()); }
00532 if ( tobid.module() == 4 ) { meAdcTOBLayer5zm_[3] -> Fill((*iter).adc()); meStripTOBLayer5zm_[3] ->Fill((*iter).strip()); }
00533 if ( tobid.module() == 5 ) { meAdcTOBLayer5zm_[4] -> Fill((*iter).adc()); meStripTOBLayer5zm_[4] ->Fill((*iter).strip()); }
00534 if ( tobid.module() == 6 ) { meAdcTOBLayer5zm_[5] -> Fill((*iter).adc()); meStripTOBLayer5zm_[5] ->Fill((*iter).strip()); }
00535 }
00536 if( tobid.layer() == 6 ) {
00537 if ( tobid.module() == 1 ) { meAdcTOBLayer6zm_[0] -> Fill((*iter).adc()); meStripTOBLayer6zm_[0] ->Fill((*iter).strip()); }
00538 if ( tobid.module() == 2 ) { meAdcTOBLayer6zm_[1] -> Fill((*iter).adc()); meStripTOBLayer6zm_[1] ->Fill((*iter).strip()); }
00539 if ( tobid.module() == 3 ) { meAdcTOBLayer6zm_[2] -> Fill((*iter).adc()); meStripTOBLayer6zm_[2] ->Fill((*iter).strip()); }
00540 if ( tobid.module() == 4 ) { meAdcTOBLayer6zm_[3] -> Fill((*iter).adc()); meStripTOBLayer6zm_[3] ->Fill((*iter).strip()); }
00541 if ( tobid.module() == 5 ) { meAdcTOBLayer6zm_[4] -> Fill((*iter).adc()); meStripTOBLayer6zm_[4] ->Fill((*iter).strip()); }
00542 if ( tobid.module() == 6 ) { meAdcTOBLayer6zm_[5] -> Fill((*iter).adc()); meStripTOBLayer6zm_[5] ->Fill((*iter).strip()); }
00543 }
00544
00545 }else {
00546 ++ndigilayertobzp[tobid.layer()-1];
00547 if( tobid.layer() == 1 ) {
00548 if ( tobid.module() == 1 ) { meAdcTOBLayer1zp_[0] -> Fill((*iter).adc()); meStripTOBLayer1zp_[0] ->Fill((*iter).strip()); }
00549 if ( tobid.module() == 2 ) { meAdcTOBLayer1zp_[1] -> Fill((*iter).adc()); meStripTOBLayer1zp_[1] ->Fill((*iter).strip()); }
00550 if ( tobid.module() == 3 ) { meAdcTOBLayer1zp_[2] -> Fill((*iter).adc()); meStripTOBLayer1zp_[2] ->Fill((*iter).strip()); }
00551 if ( tobid.module() == 4 ) { meAdcTOBLayer1zp_[3] -> Fill((*iter).adc()); meStripTOBLayer1zp_[3] ->Fill((*iter).strip()); }
00552 if ( tobid.module() == 5 ) { meAdcTOBLayer1zp_[4] -> Fill((*iter).adc()); meStripTOBLayer1zp_[4] ->Fill((*iter).strip()); }
00553 if ( tobid.module() == 6 ) { meAdcTOBLayer1zp_[5] -> Fill((*iter).adc()); meStripTOBLayer1zp_[5] ->Fill((*iter).strip()); }
00554 }
00555 if( tobid.layer() == 2 ) {
00556 if ( tobid.module() == 1 ) { meAdcTOBLayer2zp_[0] -> Fill((*iter).adc()); meStripTOBLayer2zp_[0] ->Fill((*iter).strip()); }
00557 if ( tobid.module() == 2 ) { meAdcTOBLayer2zp_[1] -> Fill((*iter).adc()); meStripTOBLayer2zp_[1] ->Fill((*iter).strip()); }
00558 if ( tobid.module() == 3 ) { meAdcTOBLayer2zp_[2] -> Fill((*iter).adc()); meStripTOBLayer2zp_[2] ->Fill((*iter).strip()); }
00559 if ( tobid.module() == 4 ) { meAdcTOBLayer2zp_[3] -> Fill((*iter).adc()); meStripTOBLayer2zp_[3] ->Fill((*iter).strip()); }
00560 if ( tobid.module() == 5 ) { meAdcTOBLayer2zp_[4] -> Fill((*iter).adc()); meStripTOBLayer2zp_[4] ->Fill((*iter).strip()); }
00561 if ( tobid.module() == 6 ) { meAdcTOBLayer2zp_[5] -> Fill((*iter).adc()); meStripTOBLayer2zp_[5] ->Fill((*iter).strip()); }
00562 }
00563 if( tobid.layer() == 3 ) {
00564 if ( tobid.module() == 1 ) { meAdcTOBLayer3zp_[0] -> Fill((*iter).adc()); meStripTOBLayer3zp_[0] ->Fill((*iter).strip()); }
00565 if ( tobid.module() == 2 ) { meAdcTOBLayer3zp_[1] -> Fill((*iter).adc()); meStripTOBLayer3zp_[1] ->Fill((*iter).strip()); }
00566 if ( tobid.module() == 3 ) { meAdcTOBLayer3zp_[2] -> Fill((*iter).adc()); meStripTOBLayer3zp_[2] ->Fill((*iter).strip()); }
00567 if ( tobid.module() == 4 ) { meAdcTOBLayer3zp_[3] -> Fill((*iter).adc()); meStripTOBLayer3zp_[3] ->Fill((*iter).strip()); }
00568 if ( tobid.module() == 5 ) { meAdcTOBLayer3zp_[4] -> Fill((*iter).adc()); meStripTOBLayer3zp_[4] ->Fill((*iter).strip()); }
00569 if ( tobid.module() == 6 ) { meAdcTOBLayer3zp_[5] -> Fill((*iter).adc()); meStripTOBLayer3zp_[5] ->Fill((*iter).strip()); }
00570 }
00571 if( tobid.layer() == 4 ) {
00572 if ( tobid.module() == 1 ) { meAdcTOBLayer4zp_[0] -> Fill((*iter).adc()); meStripTOBLayer4zp_[0] ->Fill((*iter).strip()); }
00573 if ( tobid.module() == 2 ) { meAdcTOBLayer4zp_[1] -> Fill((*iter).adc()); meStripTOBLayer4zp_[1] ->Fill((*iter).strip()); }
00574 if ( tobid.module() == 3 ) { meAdcTOBLayer4zp_[2] -> Fill((*iter).adc()); meStripTOBLayer4zp_[2] ->Fill((*iter).strip()); }
00575 if ( tobid.module() == 4 ) { meAdcTOBLayer4zp_[3] -> Fill((*iter).adc()); meStripTOBLayer4zp_[3] ->Fill((*iter).strip()); }
00576 if ( tobid.module() == 5 ) { meAdcTOBLayer4zp_[4] -> Fill((*iter).adc()); meStripTOBLayer4zp_[4] ->Fill((*iter).strip()); }
00577 if ( tobid.module() == 6 ) { meAdcTOBLayer4zp_[5] -> Fill((*iter).adc()); meStripTOBLayer4zp_[5] ->Fill((*iter).strip()); }
00578 }
00579 if( tobid.layer() == 5 ) {
00580 if ( tobid.module() == 1 ) { meAdcTOBLayer5zp_[0] -> Fill((*iter).adc()); meStripTOBLayer5zp_[0] ->Fill((*iter).strip()); }
00581 if ( tobid.module() == 2 ) { meAdcTOBLayer5zp_[1] -> Fill((*iter).adc()); meStripTOBLayer5zp_[1] ->Fill((*iter).strip()); }
00582 if ( tobid.module() == 3 ) { meAdcTOBLayer5zp_[2] -> Fill((*iter).adc()); meStripTOBLayer5zp_[2] ->Fill((*iter).strip()); }
00583 if ( tobid.module() == 4 ) { meAdcTOBLayer5zp_[3] -> Fill((*iter).adc()); meStripTOBLayer5zp_[3] ->Fill((*iter).strip()); }
00584 if ( tobid.module() == 5 ) { meAdcTOBLayer5zp_[4] -> Fill((*iter).adc()); meStripTOBLayer5zp_[4] ->Fill((*iter).strip()); }
00585 if ( tobid.module() == 6 ) { meAdcTOBLayer5zp_[5] -> Fill((*iter).adc()); meStripTOBLayer5zp_[5] ->Fill((*iter).strip()); }
00586 }
00587 if( tobid.layer() == 6 ) {
00588 if ( tobid.module() == 1 ) { meAdcTOBLayer6zp_[0] -> Fill((*iter).adc()); meStripTOBLayer6zp_[0] ->Fill((*iter).strip()); }
00589 if ( tobid.module() == 2 ) { meAdcTOBLayer6zp_[1] -> Fill((*iter).adc()); meStripTOBLayer6zp_[1] ->Fill((*iter).strip()); }
00590 if ( tobid.module() == 3 ) { meAdcTOBLayer6zp_[2] -> Fill((*iter).adc()); meStripTOBLayer6zp_[2] ->Fill((*iter).strip()); }
00591 if ( tobid.module() == 4 ) { meAdcTOBLayer6zp_[3] -> Fill((*iter).adc()); meStripTOBLayer6zp_[3] ->Fill((*iter).strip()); }
00592 if ( tobid.module() == 5 ) { meAdcTOBLayer6zp_[4] -> Fill((*iter).adc()); meStripTOBLayer6zp_[4] ->Fill((*iter).strip()); }
00593 if ( tobid.module() == 6 ) { meAdcTOBLayer6zp_[5] -> Fill((*iter).adc()); meStripTOBLayer6zp_[5] ->Fill((*iter).strip()); }
00594 }
00595
00596
00597 }
00598 }
00599 }
00600
00601 if (detId.subdetId()==StripSubdetector::TID) {
00602 TIDDetId tidid(id);
00603 for ( iter = begin ; iter != end; iter++ ) {
00604 if( tidid.side() == 1){
00605 ++ndigiwheeltidzm[tidid.wheel()-1];
00606 if( tidid.wheel() == 1 ) {
00607 if(tidid.ring()== 1) { meAdcTIDWheel1zm_[0] -> Fill((*iter).adc()); meStripTIDWheel1zm_[0] ->Fill((*iter).strip());}
00608 if(tidid.ring()== 2) { meAdcTIDWheel1zm_[1] -> Fill((*iter).adc()); meStripTIDWheel1zm_[1] ->Fill((*iter).strip());}
00609 if(tidid.ring()== 3) { meAdcTIDWheel1zm_[2] -> Fill((*iter).adc()); meStripTIDWheel1zm_[2] ->Fill((*iter).strip());}
00610 }
00611 if( tidid.wheel() == 2 ) {
00612 if(tidid.ring()== 1) { meAdcTIDWheel2zm_[0] -> Fill((*iter).adc()); meStripTIDWheel2zm_[0] ->Fill((*iter).strip());}
00613 if(tidid.ring()== 2) { meAdcTIDWheel2zm_[1] -> Fill((*iter).adc()); meStripTIDWheel2zm_[1] ->Fill((*iter).strip());}
00614 if(tidid.ring()== 3) { meAdcTIDWheel2zm_[2] -> Fill((*iter).adc()); meStripTIDWheel2zm_[2] ->Fill((*iter).strip());}
00615 }
00616 if( tidid.wheel() == 3 ) {
00617 if(tidid.ring()== 1) { meAdcTIDWheel3zm_[0] -> Fill((*iter).adc()); meStripTIDWheel3zm_[0] ->Fill((*iter).strip());}
00618 if(tidid.ring()== 2) { meAdcTIDWheel3zm_[1] -> Fill((*iter).adc()); meStripTIDWheel3zm_[1] ->Fill((*iter).strip());}
00619 if(tidid.ring()== 3) { meAdcTIDWheel3zm_[2] -> Fill((*iter).adc()); meStripTIDWheel3zm_[2] ->Fill((*iter).strip());}
00620 }
00621
00622 }else{
00623 ++ndigiwheeltidzp[tidid.wheel()-1];
00624 if( tidid.wheel() == 1 ) {
00625 if(tidid.ring()== 1) { meAdcTIDWheel1zp_[0] -> Fill((*iter).adc()); meStripTIDWheel1zp_[0] ->Fill((*iter).strip());}
00626 if(tidid.ring()== 2) { meAdcTIDWheel1zp_[1] -> Fill((*iter).adc()); meStripTIDWheel1zp_[1] ->Fill((*iter).strip());}
00627 if(tidid.ring()== 3) { meAdcTIDWheel1zp_[2] -> Fill((*iter).adc()); meStripTIDWheel1zp_[2] ->Fill((*iter).strip());}
00628 }
00629 if( tidid.wheel() == 2 ) {
00630 if(tidid.ring()== 1) { meAdcTIDWheel2zp_[0] -> Fill((*iter).adc()); meStripTIDWheel2zp_[0] ->Fill((*iter).strip());}
00631 if(tidid.ring()== 2) { meAdcTIDWheel2zp_[1] -> Fill((*iter).adc()); meStripTIDWheel2zp_[1] ->Fill((*iter).strip());}
00632 if(tidid.ring()== 3) { meAdcTIDWheel2zp_[2] -> Fill((*iter).adc()); meStripTIDWheel2zp_[2] ->Fill((*iter).strip());}
00633 }
00634 if( tidid.wheel() == 3 ) {
00635 if(tidid.ring()== 1) { meAdcTIDWheel3zp_[0] -> Fill((*iter).adc()); meStripTIDWheel3zp_[0] ->Fill((*iter).strip());}
00636 if(tidid.ring()== 2) { meAdcTIDWheel3zp_[1] -> Fill((*iter).adc()); meStripTIDWheel3zp_[1] ->Fill((*iter).strip());}
00637 if(tidid.ring()== 3) { meAdcTIDWheel3zp_[2] -> Fill((*iter).adc()); meStripTIDWheel3zp_[2] ->Fill((*iter).strip());}
00638 }
00639
00640 }
00641 }
00642 }
00643 if (detId.subdetId()==StripSubdetector::TEC) {
00644 TECDetId tecid(id);
00645 for ( iter = begin ; iter != end; iter++ ) {
00646 if(tecid.side() == 1) {
00647 ++ndigiwheelteczm[tecid.wheel()-1];
00648 if( tecid.wheel() == 1 ) {
00649 if ( tecid.ring() == 1 ) { meAdcTECWheel1zm_[0] -> Fill((*iter).adc()); meStripTECWheel1zm_[0] ->Fill((*iter).strip()); }
00650 if ( tecid.ring() == 2 ) { meAdcTECWheel1zm_[1] -> Fill((*iter).adc()); meStripTECWheel1zm_[1] ->Fill((*iter).strip()); }
00651 if ( tecid.ring() == 3 ) { meAdcTECWheel1zm_[2] -> Fill((*iter).adc()); meStripTECWheel1zm_[2] ->Fill((*iter).strip()); }
00652 if ( tecid.ring() == 4 ) { meAdcTECWheel1zm_[3] -> Fill((*iter).adc()); meStripTECWheel1zm_[3] ->Fill((*iter).strip()); }
00653 if ( tecid.ring() == 5 ) { meAdcTECWheel1zm_[4] -> Fill((*iter).adc()); meStripTECWheel1zm_[4] ->Fill((*iter).strip()); }
00654 if ( tecid.ring() == 6 ) { meAdcTECWheel1zm_[5] -> Fill((*iter).adc()); meStripTECWheel1zm_[5] ->Fill((*iter).strip()); }
00655 if ( tecid.ring() == 7 ) { meAdcTECWheel1zm_[6] -> Fill((*iter).adc()); meStripTECWheel1zm_[6] ->Fill((*iter).strip()); }
00656 }
00657 if( tecid.wheel() == 2 ) {
00658 if ( tecid.ring() == 1 ) { meAdcTECWheel2zm_[0] -> Fill((*iter).adc()); meStripTECWheel2zm_[0] ->Fill((*iter).strip()); }
00659 if ( tecid.ring() == 2 ) { meAdcTECWheel2zm_[1] -> Fill((*iter).adc()); meStripTECWheel2zm_[1] ->Fill((*iter).strip()); }
00660 if ( tecid.ring() == 3 ) { meAdcTECWheel2zm_[2] -> Fill((*iter).adc()); meStripTECWheel2zm_[2] ->Fill((*iter).strip()); }
00661 if ( tecid.ring() == 4 ) { meAdcTECWheel2zm_[3] -> Fill((*iter).adc()); meStripTECWheel2zm_[3] ->Fill((*iter).strip()); }
00662 if ( tecid.ring() == 5 ) { meAdcTECWheel2zm_[4] -> Fill((*iter).adc()); meStripTECWheel2zm_[4] ->Fill((*iter).strip()); }
00663 if ( tecid.ring() == 6 ) { meAdcTECWheel2zm_[5] -> Fill((*iter).adc()); meStripTECWheel2zm_[5] ->Fill((*iter).strip()); }
00664 if ( tecid.ring() == 7 ) { meAdcTECWheel2zm_[6] -> Fill((*iter).adc()); meStripTECWheel2zm_[6] ->Fill((*iter).strip()); }
00665 }
00666 if( tecid.wheel() == 3 ) {
00667 if ( tecid.ring() == 1 ) { meAdcTECWheel3zm_[0] -> Fill((*iter).adc()); meStripTECWheel3zm_[0] ->Fill((*iter).strip()); }
00668 if ( tecid.ring() == 2 ) { meAdcTECWheel3zm_[1] -> Fill((*iter).adc()); meStripTECWheel3zm_[1] ->Fill((*iter).strip()); }
00669 if ( tecid.ring() == 3 ) { meAdcTECWheel3zm_[2] -> Fill((*iter).adc()); meStripTECWheel3zm_[2] ->Fill((*iter).strip()); }
00670 if ( tecid.ring() == 4 ) { meAdcTECWheel3zm_[3] -> Fill((*iter).adc()); meStripTECWheel3zm_[3] ->Fill((*iter).strip()); }
00671 if ( tecid.ring() == 5 ) { meAdcTECWheel3zm_[4] -> Fill((*iter).adc()); meStripTECWheel3zm_[4] ->Fill((*iter).strip()); }
00672 if ( tecid.ring() == 6 ) { meAdcTECWheel3zm_[5] -> Fill((*iter).adc()); meStripTECWheel3zm_[5] ->Fill((*iter).strip()); }
00673 if ( tecid.ring() == 7 ) { meAdcTECWheel3zm_[6] -> Fill((*iter).adc()); meStripTECWheel3zm_[6] ->Fill((*iter).strip()); }
00674 }
00675 if( tecid.wheel() == 4 ) {
00676 if ( tecid.ring() == 2 ) { meAdcTECWheel4zm_[0] -> Fill((*iter).adc()); meStripTECWheel4zm_[0] ->Fill((*iter).strip()); }
00677 if ( tecid.ring() == 3 ) { meAdcTECWheel4zm_[1] -> Fill((*iter).adc()); meStripTECWheel4zm_[1] ->Fill((*iter).strip()); }
00678 if ( tecid.ring() == 4 ) { meAdcTECWheel4zm_[2] -> Fill((*iter).adc()); meStripTECWheel4zm_[2] ->Fill((*iter).strip()); }
00679 if ( tecid.ring() == 5 ) { meAdcTECWheel4zm_[3] -> Fill((*iter).adc()); meStripTECWheel4zm_[3] ->Fill((*iter).strip()); }
00680 if ( tecid.ring() == 6 ) { meAdcTECWheel4zm_[4] -> Fill((*iter).adc()); meStripTECWheel4zm_[4] ->Fill((*iter).strip()); }
00681 if ( tecid.ring() == 7 ) { meAdcTECWheel4zm_[5] -> Fill((*iter).adc()); meStripTECWheel4zm_[5] ->Fill((*iter).strip()); }
00682 }
00683 if( tecid.wheel() == 5 ) {
00684 if ( tecid.ring() == 2 ) { meAdcTECWheel5zm_[0] -> Fill((*iter).adc()); meStripTECWheel5zm_[0] ->Fill((*iter).strip()); }
00685 if ( tecid.ring() == 3 ) { meAdcTECWheel5zm_[1] -> Fill((*iter).adc()); meStripTECWheel5zm_[1] ->Fill((*iter).strip()); }
00686 if ( tecid.ring() == 4 ) { meAdcTECWheel5zm_[2] -> Fill((*iter).adc()); meStripTECWheel5zm_[2] ->Fill((*iter).strip()); }
00687 if ( tecid.ring() == 5 ) { meAdcTECWheel5zm_[3] -> Fill((*iter).adc()); meStripTECWheel5zm_[3] ->Fill((*iter).strip()); }
00688 if ( tecid.ring() == 6 ) { meAdcTECWheel5zm_[4] -> Fill((*iter).adc()); meStripTECWheel5zm_[4] ->Fill((*iter).strip()); }
00689 if ( tecid.ring() == 7 ) { meAdcTECWheel5zm_[5] -> Fill((*iter).adc()); meStripTECWheel5zm_[5] ->Fill((*iter).strip()); }
00690 }
00691 if( tecid.wheel() == 6 ) {
00692 if ( tecid.ring() == 2 ) { meAdcTECWheel6zm_[0] -> Fill((*iter).adc()); meStripTECWheel6zm_[0] ->Fill((*iter).strip()); }
00693 if ( tecid.ring() == 3 ) { meAdcTECWheel6zm_[1] -> Fill((*iter).adc()); meStripTECWheel6zm_[1] ->Fill((*iter).strip()); }
00694 if ( tecid.ring() == 4 ) { meAdcTECWheel6zm_[2] -> Fill((*iter).adc()); meStripTECWheel6zm_[2] ->Fill((*iter).strip()); }
00695 if ( tecid.ring() == 5 ) { meAdcTECWheel6zm_[3] -> Fill((*iter).adc()); meStripTECWheel6zm_[3] ->Fill((*iter).strip()); }
00696 if ( tecid.ring() == 6 ) { meAdcTECWheel6zm_[4] -> Fill((*iter).adc()); meStripTECWheel6zm_[4] ->Fill((*iter).strip()); }
00697 if ( tecid.ring() == 7 ) { meAdcTECWheel6zm_[5] -> Fill((*iter).adc()); meStripTECWheel6zm_[5] ->Fill((*iter).strip()); }
00698 }
00699 if( tecid.wheel() == 7 ) {
00700 if ( tecid.ring() == 3 ) { meAdcTECWheel7zm_[0] -> Fill((*iter).adc()); meStripTECWheel7zm_[0] ->Fill((*iter).strip()); }
00701 if ( tecid.ring() == 4 ) { meAdcTECWheel7zm_[1] -> Fill((*iter).adc()); meStripTECWheel7zm_[1] ->Fill((*iter).strip()); }
00702 if ( tecid.ring() == 5 ) { meAdcTECWheel7zm_[2] -> Fill((*iter).adc()); meStripTECWheel7zm_[2] ->Fill((*iter).strip()); }
00703 if ( tecid.ring() == 6 ) { meAdcTECWheel7zm_[3] -> Fill((*iter).adc()); meStripTECWheel7zm_[3] ->Fill((*iter).strip()); }
00704 if ( tecid.ring() == 7 ) { meAdcTECWheel7zm_[4] -> Fill((*iter).adc()); meStripTECWheel7zm_[4] ->Fill((*iter).strip()); }
00705 }
00706 if( tecid.wheel() == 8 ) {
00707 if ( tecid.ring() == 3 ) { meAdcTECWheel8zm_[0] -> Fill((*iter).adc()); meStripTECWheel8zm_[0] ->Fill((*iter).strip()); }
00708 if ( tecid.ring() == 4 ) { meAdcTECWheel8zm_[1] -> Fill((*iter).adc()); meStripTECWheel8zm_[1] ->Fill((*iter).strip()); }
00709 if ( tecid.ring() == 5 ) { meAdcTECWheel8zm_[2] -> Fill((*iter).adc()); meStripTECWheel8zm_[2] ->Fill((*iter).strip()); }
00710 if ( tecid.ring() == 6 ) { meAdcTECWheel8zm_[3] -> Fill((*iter).adc()); meStripTECWheel8zm_[3] ->Fill((*iter).strip()); }
00711 if ( tecid.ring() == 7 ) { meAdcTECWheel8zm_[4] -> Fill((*iter).adc()); meStripTECWheel8zm_[4] ->Fill((*iter).strip()); }
00712 }
00713 if( tecid.wheel() == 9 ) {
00714 if ( tecid.ring() == 4 ) { meAdcTECWheel9zm_[0] -> Fill((*iter).adc()); meStripTECWheel9zm_[0] ->Fill((*iter).strip()); }
00715 if ( tecid.ring() == 5 ) { meAdcTECWheel9zm_[1] -> Fill((*iter).adc()); meStripTECWheel9zm_[1] ->Fill((*iter).strip()); }
00716 if ( tecid.ring() == 6 ) { meAdcTECWheel9zm_[2] -> Fill((*iter).adc()); meStripTECWheel9zm_[2] ->Fill((*iter).strip()); }
00717 if ( tecid.ring() == 7 ) { meAdcTECWheel9zm_[3] -> Fill((*iter).adc()); meStripTECWheel9zm_[3] ->Fill((*iter).strip()); }
00718 }
00719 }else {
00720 ++ndigiwheelteczp[tecid.wheel()-1];
00721 if( tecid.wheel() == 1 ) {
00722 if ( tecid.ring() == 1 ) { meAdcTECWheel1zp_[0] -> Fill((*iter).adc()); meStripTECWheel1zp_[0] ->Fill((*iter).strip()); }
00723 if ( tecid.ring() == 2 ) { meAdcTECWheel1zp_[1] -> Fill((*iter).adc()); meStripTECWheel1zp_[1] ->Fill((*iter).strip()); }
00724 if ( tecid.ring() == 3 ) { meAdcTECWheel1zp_[2] -> Fill((*iter).adc()); meStripTECWheel1zp_[2] ->Fill((*iter).strip()); }
00725 if ( tecid.ring() == 4 ) { meAdcTECWheel1zp_[3] -> Fill((*iter).adc()); meStripTECWheel1zp_[3] ->Fill((*iter).strip()); }
00726 if ( tecid.ring() == 5 ) { meAdcTECWheel1zp_[4] -> Fill((*iter).adc()); meStripTECWheel1zp_[4] ->Fill((*iter).strip()); }
00727 if ( tecid.ring() == 6 ) { meAdcTECWheel1zp_[5] -> Fill((*iter).adc()); meStripTECWheel1zp_[5] ->Fill((*iter).strip()); }
00728 if ( tecid.ring() == 7 ) { meAdcTECWheel1zp_[6] -> Fill((*iter).adc()); meStripTECWheel1zp_[6] ->Fill((*iter).strip()); }
00729 }
00730 if( tecid.wheel() == 2 ) {
00731 if ( tecid.ring() == 1 ) { meAdcTECWheel2zp_[0] -> Fill((*iter).adc()); meStripTECWheel2zp_[0] ->Fill((*iter).strip()); }
00732 if ( tecid.ring() == 2 ) { meAdcTECWheel2zp_[1] -> Fill((*iter).adc()); meStripTECWheel2zp_[1] ->Fill((*iter).strip()); }
00733 if ( tecid.ring() == 3 ) { meAdcTECWheel2zp_[2] -> Fill((*iter).adc()); meStripTECWheel2zp_[2] ->Fill((*iter).strip()); }
00734 if ( tecid.ring() == 4 ) { meAdcTECWheel2zp_[3] -> Fill((*iter).adc()); meStripTECWheel2zp_[3] ->Fill((*iter).strip()); }
00735 if ( tecid.ring() == 5 ) { meAdcTECWheel2zp_[4] -> Fill((*iter).adc()); meStripTECWheel2zp_[4] ->Fill((*iter).strip()); }
00736 if ( tecid.ring() == 6 ) { meAdcTECWheel2zp_[5] -> Fill((*iter).adc()); meStripTECWheel2zp_[5] ->Fill((*iter).strip()); }
00737 if ( tecid.ring() == 7 ) { meAdcTECWheel2zp_[6] -> Fill((*iter).adc()); meStripTECWheel2zp_[6] ->Fill((*iter).strip()); }
00738 }
00739 if( tecid.wheel() == 3 ) {
00740 if ( tecid.ring() == 1 ) { meAdcTECWheel3zp_[0] -> Fill((*iter).adc()); meStripTECWheel3zp_[0] ->Fill((*iter).strip()); }
00741 if ( tecid.ring() == 2 ) { meAdcTECWheel3zp_[1] -> Fill((*iter).adc()); meStripTECWheel3zp_[1] ->Fill((*iter).strip()); }
00742 if ( tecid.ring() == 3 ) { meAdcTECWheel3zp_[2] -> Fill((*iter).adc()); meStripTECWheel3zp_[2] ->Fill((*iter).strip()); }
00743 if ( tecid.ring() == 4 ) { meAdcTECWheel3zp_[3] -> Fill((*iter).adc()); meStripTECWheel3zp_[3] ->Fill((*iter).strip()); }
00744 if ( tecid.ring() == 5 ) { meAdcTECWheel3zp_[4] -> Fill((*iter).adc()); meStripTECWheel3zp_[4] ->Fill((*iter).strip()); }
00745 if ( tecid.ring() == 6 ) { meAdcTECWheel3zp_[5] -> Fill((*iter).adc()); meStripTECWheel3zp_[5] ->Fill((*iter).strip()); }
00746 if ( tecid.ring() == 7 ) { meAdcTECWheel3zp_[6] -> Fill((*iter).adc()); meStripTECWheel3zp_[6] ->Fill((*iter).strip()); }
00747 }
00748 if( tecid.wheel() == 4 ) {
00749 if ( tecid.ring() == 2 ) { meAdcTECWheel4zp_[0] -> Fill((*iter).adc()); meStripTECWheel4zp_[0] ->Fill((*iter).strip()); }
00750 if ( tecid.ring() == 3 ) { meAdcTECWheel4zp_[1] -> Fill((*iter).adc()); meStripTECWheel4zp_[1] ->Fill((*iter).strip()); }
00751 if ( tecid.ring() == 4 ) { meAdcTECWheel4zp_[2] -> Fill((*iter).adc()); meStripTECWheel4zp_[2] ->Fill((*iter).strip()); }
00752 if ( tecid.ring() == 5 ) { meAdcTECWheel4zp_[3] -> Fill((*iter).adc()); meStripTECWheel4zp_[3] ->Fill((*iter).strip()); }
00753 if ( tecid.ring() == 6 ) { meAdcTECWheel4zp_[4] -> Fill((*iter).adc()); meStripTECWheel4zp_[4] ->Fill((*iter).strip()); }
00754 if ( tecid.ring() == 7 ) { meAdcTECWheel4zp_[5] -> Fill((*iter).adc()); meStripTECWheel4zp_[5] ->Fill((*iter).strip()); }
00755 }
00756 if( tecid.wheel() == 5 ) {
00757 if ( tecid.ring() == 2 ) { meAdcTECWheel5zp_[0] -> Fill((*iter).adc()); meStripTECWheel5zp_[0] ->Fill((*iter).strip()); }
00758 if ( tecid.ring() == 3 ) { meAdcTECWheel5zp_[1] -> Fill((*iter).adc()); meStripTECWheel5zp_[1] ->Fill((*iter).strip()); }
00759 if ( tecid.ring() == 4 ) { meAdcTECWheel5zp_[2] -> Fill((*iter).adc()); meStripTECWheel5zp_[2] ->Fill((*iter).strip()); }
00760 if ( tecid.ring() == 5 ) { meAdcTECWheel5zp_[3] -> Fill((*iter).adc()); meStripTECWheel5zp_[3] ->Fill((*iter).strip()); }
00761 if ( tecid.ring() == 6 ) { meAdcTECWheel5zp_[4] -> Fill((*iter).adc()); meStripTECWheel5zp_[4] ->Fill((*iter).strip()); }
00762 if ( tecid.ring() == 7 ) { meAdcTECWheel5zp_[5] -> Fill((*iter).adc()); meStripTECWheel5zp_[5] ->Fill((*iter).strip()); }
00763 }
00764 if( tecid.wheel() == 6 ) {
00765 if ( tecid.ring() == 2 ) { meAdcTECWheel6zp_[0] -> Fill((*iter).adc()); meStripTECWheel6zp_[0] ->Fill((*iter).strip()); }
00766 if ( tecid.ring() == 3 ) { meAdcTECWheel6zp_[1] -> Fill((*iter).adc()); meStripTECWheel6zp_[1] ->Fill((*iter).strip()); }
00767 if ( tecid.ring() == 4 ) { meAdcTECWheel6zp_[2] -> Fill((*iter).adc()); meStripTECWheel6zp_[2] ->Fill((*iter).strip()); }
00768 if ( tecid.ring() == 5 ) { meAdcTECWheel6zp_[3] -> Fill((*iter).adc()); meStripTECWheel6zp_[3] ->Fill((*iter).strip()); }
00769 if ( tecid.ring() == 6 ) { meAdcTECWheel6zp_[4] -> Fill((*iter).adc()); meStripTECWheel6zp_[4] ->Fill((*iter).strip()); }
00770 if ( tecid.ring() == 7 ) { meAdcTECWheel6zp_[5] -> Fill((*iter).adc()); meStripTECWheel6zp_[5] ->Fill((*iter).strip()); }
00771 }
00772 if( tecid.wheel() == 7 ) {
00773 if ( tecid.ring() == 3 ) { meAdcTECWheel7zp_[0] -> Fill((*iter).adc()); meStripTECWheel7zp_[0] ->Fill((*iter).strip()); }
00774 if ( tecid.ring() == 4 ) { meAdcTECWheel7zp_[1] -> Fill((*iter).adc()); meStripTECWheel7zp_[1] ->Fill((*iter).strip()); }
00775 if ( tecid.ring() == 5 ) { meAdcTECWheel7zp_[2] -> Fill((*iter).adc()); meStripTECWheel7zp_[2] ->Fill((*iter).strip()); }
00776 if ( tecid.ring() == 6 ) { meAdcTECWheel7zp_[3] -> Fill((*iter).adc()); meStripTECWheel7zp_[3] ->Fill((*iter).strip()); }
00777 if ( tecid.ring() == 7 ) { meAdcTECWheel7zp_[4] -> Fill((*iter).adc()); meStripTECWheel7zp_[4] ->Fill((*iter).strip()); }
00778 }
00779 if( tecid.wheel() == 8 ) {
00780 if ( tecid.ring() == 3 ) { meAdcTECWheel8zp_[0] -> Fill((*iter).adc()); meStripTECWheel8zp_[0] ->Fill((*iter).strip()); }
00781 if ( tecid.ring() == 4 ) { meAdcTECWheel8zp_[1] -> Fill((*iter).adc()); meStripTECWheel8zp_[1] ->Fill((*iter).strip()); }
00782 if ( tecid.ring() == 5 ) { meAdcTECWheel8zp_[2] -> Fill((*iter).adc()); meStripTECWheel8zp_[2] ->Fill((*iter).strip()); }
00783 if ( tecid.ring() == 6 ) { meAdcTECWheel8zp_[3] -> Fill((*iter).adc()); meStripTECWheel8zp_[3] ->Fill((*iter).strip()); }
00784 if ( tecid.ring() == 7 ) { meAdcTECWheel8zp_[4] -> Fill((*iter).adc()); meStripTECWheel8zp_[4] ->Fill((*iter).strip()); }
00785 }
00786 if( tecid.wheel() == 9 ) {
00787 if ( tecid.ring() == 4 ) { meAdcTECWheel9zp_[0] -> Fill((*iter).adc()); meStripTECWheel9zp_[0] ->Fill((*iter).strip()); }
00788 if ( tecid.ring() == 5 ) { meAdcTECWheel9zp_[1] -> Fill((*iter).adc()); meStripTECWheel9zp_[1] ->Fill((*iter).strip()); }
00789 if ( tecid.ring() == 6 ) { meAdcTECWheel9zp_[2] -> Fill((*iter).adc()); meStripTECWheel9zp_[2] ->Fill((*iter).strip()); }
00790 if ( tecid.ring() == 7 ) { meAdcTECWheel9zp_[3] -> Fill((*iter).adc()); meStripTECWheel9zp_[3] ->Fill((*iter).strip()); }
00791 }
00792 }
00793 }
00794 }
00795
00796 }
00797
00798 for ( int i =0; i< 4; i++ ) {
00799 meNDigiTIBLayerzm_[i]->Fill(ndigilayertibzm[i]);
00800 meNDigiTIBLayerzp_[i]->Fill(ndigilayertibzp[i]);
00801 }
00802
00803 for ( int i =0; i< 6; i++ ) {
00804 meNDigiTOBLayerzm_[i]->Fill(ndigilayertobzm[i]);
00805 meNDigiTOBLayerzp_[i]->Fill(ndigilayertobzp[i]);
00806 }
00807
00808 for ( int i =0; i< 3; i++ ) {
00809 meNDigiTIDWheelzm_[i]->Fill(ndigiwheeltidzm[i]);
00810 meNDigiTIDWheelzp_[i]->Fill(ndigiwheeltidzp[i]);
00811 }
00812
00813 for ( int i =0; i< 9; i++ ) {
00814 meNDigiTECWheelzm_[i]->Fill(ndigiwheelteczm[i]);
00815 meNDigiTECWheelzp_[i]->Fill(ndigiwheelteczp[i]);
00816 }
00817
00818
00819
00820 }
00821