26 , outputFile_( ps.getUntrackedParameter<std::
string>(
"outputFile",
"stripdigihisto.root" ) )
27 , edmDetSetVector_SiStripDigi_Token_( consumes< edm::DetSetVector<
SiStripDigi> >( ps.getParameter<edm::InputTag>(
"src" ) ) ) {
47 for(
int i = 0 ;
i<3 ;
i++) {
50 sprintf(histo,
"adc_tib_layer1_extmodule%d_zp",
i+1);
52 sprintf(histo,
"adc_tib_layer1_intmodule%d_zp",
i+1);
54 sprintf(histo,
"adc_tib_layer2_extmodule%d_zp",
i+1);
56 sprintf(histo,
"adc_tib_layer2_intmodule%d_zp",
i+1);
58 sprintf(histo,
"adc_tib_layer3_extmodule%d_zp",
i+1);
60 sprintf(histo,
"adc_tib_layer3_intmodule%d_zp",
i+1);
62 sprintf(histo,
"adc_tib_layer4_extmodule%d_zp",
i+1);
64 sprintf(histo,
"adc_tib_layer4_intmodule%d_zp",
i+1);
66 sprintf(histo,
"strip_tib_layer1_extmodule%d_zp",
i+1);
68 sprintf(histo,
"strip_tib_layer1_intmodule%d_zp",
i+1);
70 sprintf(histo,
"strip_tib_layer2_extmodule%d_zp",
i+1);
72 sprintf(histo,
"strip_tib_layer2_intmodule%d_zp",
i+1);
74 sprintf(histo,
"strip_tib_layer3_extmodule%d_zp",
i+1);
76 sprintf(histo,
"strip_tib_layer3_intmodule%d_zp",
i+1);
78 sprintf(histo,
"strip_tib_layer4_extmodule%d_zp",
i+1);
80 sprintf(histo,
"strip_tib_layer4_intmodule%d_zp",
i+1);
83 sprintf(histo,
"adc_tib_layer1_extmodule%d_zm",
i+1);
85 sprintf(histo,
"adc_tib_layer1_intmodule%d_zm",
i+1);
87 sprintf(histo,
"adc_tib_layer2_extmodule%d_zm",
i+1);
89 sprintf(histo,
"adc_tib_layer2_intmodule%d_zm",
i+1);
91 sprintf(histo,
"adc_tib_layer3_extmodule%d_zm",
i+1);
93 sprintf(histo,
"adc_tib_layer3_intmodule%d_zm",
i+1);
95 sprintf(histo,
"adc_tib_layer4_extmodule%d_zm",
i+1);
97 sprintf(histo,
"adc_tib_layer4_intmodule%d_zm",
i+1);
99 sprintf(histo,
"strip_tib_layer1_extmodule%d_zm",
i+1);
101 sprintf(histo,
"strip_tib_layer1_intmodule%d_zm",
i+1);
103 sprintf(histo,
"strip_tib_layer2_extmodule%d_zm",
i+1);
105 sprintf(histo,
"strip_tib_layer2_intmodule%d_zm",
i+1);
107 sprintf(histo,
"strip_tib_layer3_extmodule%d_zm",
i+1);
109 sprintf(histo,
"strip_tib_layer3_intmodule%d_zm",
i+1);
111 sprintf(histo,
"strip_tib_layer4_extmodule%d_zm",
i+1);
113 sprintf(histo,
"strip_tib_layer4_intmodule%d_zm",
i+1);
117 for(
int i = 0 ;
i<6 ;
i++) {
120 sprintf(histo,
"adc_tob_layer1_module%d_zp",
i+1);
122 sprintf(histo,
"strip_tob_layer1_module%d_zp",
i+1);
124 sprintf(histo,
"adc_tob_layer2_module%d_zp",
i+1);
126 sprintf(histo,
"strip_tob_layer2_module%d_zp",
i+1);
128 sprintf(histo,
"adc_tob_layer3_module%d_zp",
i+1);
130 sprintf(histo,
"strip_tob_layer3_module%d_zp",
i+1);
132 sprintf(histo,
"adc_tob_layer4_module%d_zp",
i+1);
134 sprintf(histo,
"strip_tob_layer4_module%d_zp",
i+1);
136 sprintf(histo,
"adc_tob_layer5_module%d_zp",
i+1);
138 sprintf(histo,
"strip_tob_layer5_module%d_zp",
i+1);
140 sprintf(histo,
"adc_tob_layer6_module%d_zp",
i+1);
142 sprintf(histo,
"strip_tob_layer6_module%d_zp",
i+1);
145 sprintf(histo,
"adc_tob_layer1_module%d_zm",
i+1);
147 sprintf(histo,
"strip_tob_layer1_module%d_zm",
i+1);
149 sprintf(histo,
"adc_tob_layer2_module%d_zm",
i+1);
151 sprintf(histo,
"strip_tob_layer2_module%d_zm",
i+1);
153 sprintf(histo,
"adc_tob_layer3_module%d_zm",
i+1);
155 sprintf(histo,
"strip_tob_layer3_module%d_zm",
i+1);
157 sprintf(histo,
"adc_tob_layer4_module%d_zm",
i+1);
159 sprintf(histo,
"strip_tob_layer4_module%d_zm",
i+1);
161 sprintf(histo,
"adc_tob_layer5_module%d_zm",
i+1);
163 sprintf(histo,
"strip_tob_layer5_module%d_zm",
i+1);
165 sprintf(histo,
"adc_tob_layer6_module%d_zm",
i+1);
167 sprintf(histo,
"strip_tob_layer6_module%d_zm",
i+1);
171 for(
int i = 0 ;
i<3 ;
i++) {
174 sprintf(histo,
"adc_tid_wheel1_ring%d_zp",
i+1);
176 sprintf(histo,
"adc_tid_wheel2_ring%d_zp",
i+1);
178 sprintf(histo,
"adc_tid_wheel3_ring%d_zp",
i+1);
180 sprintf(histo,
"strip_tid_wheel1_ring%d_zp",
i+1);
182 sprintf(histo,
"strip_tid_wheel2_ring%d_zp",
i+1);
184 sprintf(histo,
"strip_tid_wheel3_ring%d_zp",
i+1);
187 sprintf(histo,
"adc_tid_wheel1_ring%d_zm",
i+1);
189 sprintf(histo,
"adc_tid_wheel2_ring%d_zm",
i+1);
191 sprintf(histo,
"adc_tid_wheel3_ring%d_zm",
i+1);
193 sprintf(histo,
"strip_tid_wheel1_ring%d_zm",
i+1);
195 sprintf(histo,
"strip_tid_wheel2_ring%d_zm",
i+1);
197 sprintf(histo,
"strip_tid_wheel3_ring%d_zm",
i+1);
201 for(
int i = 0 ;
i<7 ;
i++) {
204 sprintf(histo,
"adc_tec_wheel1_ring%d_zp",
i+1);
206 sprintf(histo,
"adc_tec_wheel2_ring%d_zp",
i+1);
208 sprintf(histo,
"adc_tec_wheel3_ring%d_zp",
i+1);
210 sprintf(histo,
"strip_tec_wheel1_ring%d_zp",
i+1);
212 sprintf(histo,
"strip_tec_wheel2_ring%d_zp",
i+1);
214 sprintf(histo,
"strip_tec_wheel3_ring%d_zp",
i+1);
218 sprintf(histo,
"adc_tec_wheel1_ring%d_zm",
i+1);
220 sprintf(histo,
"adc_tec_wheel2_ring%d_zm",
i+1);
222 sprintf(histo,
"adc_tec_wheel3_ring%d_zm",
i+1);
224 sprintf(histo,
"strip_tec_wheel1_ring%d_zm",
i+1);
226 sprintf(histo,
"strip_tec_wheel2_ring%d_zm",
i+1);
228 sprintf(histo,
"strip_tec_wheel3_ring%d_zm",
i+1);
232 for(
int i = 0 ;
i<6 ;
i++) {
235 sprintf(histo,
"adc_tec_wheel4_ring%d_zp",
i+1);
237 sprintf(histo,
"adc_tec_wheel5_ring%d_zp",
i+1);
239 sprintf(histo,
"adc_tec_wheel6_ring%d_zp",
i+1);
241 sprintf(histo,
"strip_tec_wheel4_ring%d_zp",
i+1);
243 sprintf(histo,
"strip_tec_wheel5_ring%d_zp",
i+1);
245 sprintf(histo,
"strip_tec_wheel6_ring%d_zp",
i+1);
249 sprintf(histo,
"adc_tec_wheel4_ring%d_zm",
i+1);
251 sprintf(histo,
"adc_tec_wheel5_ring%d_zm",
i+1);
253 sprintf(histo,
"adc_tec_wheel6_ring%d_zm",
i+1);
255 sprintf(histo,
"strip_tec_wheel4_ring%d_zm",
i+1);
257 sprintf(histo,
"strip_tec_wheel5_ring%d_zm",
i+1);
259 sprintf(histo,
"strip_tec_wheel6_ring%d_zm",
i+1);
263 for(
int i = 0 ;
i<5 ;
i++) {
266 sprintf(histo,
"adc_tec_wheel7_ring%d_zp",
i+1);
268 sprintf(histo,
"adc_tec_wheel8_ring%d_zp",
i+1);
270 sprintf(histo,
"strip_tec_wheel7_ring%d_zp",
i+1);
272 sprintf(histo,
"strip_tec_wheel8_ring%d_zp",
i+1);
276 sprintf(histo,
"adc_tec_wheel7_ring%d_zm",
i+1);
278 sprintf(histo,
"adc_tec_wheel8_ring%d_zm",
i+1);
280 sprintf(histo,
"strip_tec_wheel7_ring%d_zm",
i+1);
282 sprintf(histo,
"strip_tec_wheel8_ring%d_zm",
i+1);
286 for(
int i = 0 ;
i<4 ;
i++) {
289 sprintf(histo,
"adc_tec_wheel9_ring%d_zp",
i+1);
291 sprintf(histo,
"strip_tec_wheel9_ring%d_zp",
i+1);
295 sprintf(histo,
"adc_tec_wheel9_ring%d_zm",
i+1);
297 sprintf(histo,
"strip_tec_wheel9_ring%d_zm",
i+1);
301 for(
int i = 0 ;
i<4 ;
i++) {
303 sprintf(histo,
"ndigi_tib_layer_%d_zm",
i+1);
305 sprintf(histo,
"ndigi_tib_layer_%d_zp",
i+1);
309 for(
int i = 0 ;
i<6 ;
i++) {
311 sprintf(histo,
"ndigi_tob_layer_%d_zm",
i+1);
313 sprintf(histo,
"ndigi_tob_layer_%d_zp",
i+1);
317 for(
int i = 0 ;
i<3 ;
i++) {
319 sprintf(histo,
"ndigi_tid_wheel_%d_zm",
i+1);
321 sprintf(histo,
"ndigi_tid_wheel_%d_zp",
i+1);
325 for(
int i = 0 ;
i<9 ;
i++) {
327 sprintf(histo,
"ndigi_tec_wheel_%d_zm",
i+1);
329 sprintf(histo,
"ndigi_tec_wheel_%d_zp",
i+1);
349 int ndigilayertibzp[4];
350 int ndigilayertibzm[4];
352 for(
int i = 0;
i< 4;
i++ ) {
353 ndigilayertibzp[
i] = 0;
354 ndigilayertibzm[
i] = 0;
357 int ndigilayertobzp[6];
358 int ndigilayertobzm[6];
360 for(
int i = 0;
i< 6;
i++ ) {
361 ndigilayertobzp[
i] = 0;
362 ndigilayertobzm[
i] = 0;
365 int ndigiwheeltidzp[3];
366 int ndigiwheeltidzm[3];
368 for(
int i = 0;
i< 3;
i++ ) {
369 ndigiwheeltidzp[
i] = 0;
370 ndigiwheeltidzm[
i] = 0;
373 int ndigiwheelteczp[9];
374 int ndigiwheelteczm[9];
376 for(
int i = 0;
i< 9;
i++ ) {
377 ndigiwheelteczp[
i] = 0;
378 ndigiwheelteczm[
i] = 0;
391 for( ; DSViter != stripDigis->end(); DSViter++) {
392 unsigned int id = DSViter->id;
400 for ( iter = begin ; iter !=
end; iter++ ) {
402 ++ndigilayertibzm[tTopo->
tibLayer(
id)-1];
448 ++ndigilayertibzp[tTopo->
tibLayer(
id)-1];
499 for ( iter = begin ; iter !=
end; iter++ ) {
501 ++ndigilayertobzm[tTopo->
tobLayer(
id)-1];
552 ++ndigilayertobzp[tTopo->
tobLayer(
id)-1];
609 for ( iter = begin ; iter !=
end; iter++ ) {
611 ++ndigiwheeltidzm[tTopo->
tidWheel(
id)-1];
629 ++ndigiwheeltidzp[tTopo->
tidWheel(
id)-1];
651 for ( iter = begin ; iter !=
end; iter++ ) {
653 ++ndigiwheelteczm[tTopo->
tecWheel(
id)-1];
726 ++ndigiwheelteczp[tTopo->
tecWheel(
id)-1];
804 for (
int i =0;
i< 4;
i++ ) {
809 for (
int i =0;
i< 6;
i++ ) {
814 for (
int i =0;
i< 3;
i++ ) {
819 for (
int i =0;
i< 9;
i++ ) {
MonitorElement * meAdcTOBLayer5zp_[6]
MonitorElement * meAdcTIBLayer4Extzm_[3]
MonitorElement * meStripTIBLayer4Intzm_[3]
MonitorElement * meAdcTIDWheel3zm_[3]
MonitorElement * meStripTECWheel1zm_[7]
MonitorElement * meAdcTECWheel6zp_[6]
MonitorElement * meStripTECWheel2zm_[7]
MonitorElement * meNDigiTIDWheelzm_[3]
MonitorElement * meAdcTIBLayer2Extzp_[3]
MonitorElement * meAdcTECWheel1zp_[7]
MonitorElement * meStripTECWheel8zp_[5]
MonitorElement * meStripTOBLayer2zm_[6]
MonitorElement * meStripTIBLayer2Extzm_[3]
unsigned int tibLayer(const DetId &id) const
MonitorElement * meStripTECWheel7zp_[5]
MonitorElement * meStripTIDWheel1zp_[3]
unsigned int tidRing(const DetId &id) const
MonitorElement * meAdcTECWheel4zm_[6]
MonitorElement * book1D(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1D histogram.
MonitorElement * meAdcTOBLayer4zp_[6]
MonitorElement * meStripTIBLayer4Intzp_[3]
bool getByToken(EDGetToken token, Handle< PROD > &result) const
MonitorElement * meAdcTIBLayer2Extzm_[3]
MonitorElement * meStripTOBLayer1zp_[6]
edm::EDGetTokenT< edm::DetSetVector< SiStripDigi > > edmDetSetVector_SiStripDigi_Token_
MonitorElement * meStripTECWheel9zp_[4]
MonitorElement * meStripTOBLayer3zp_[6]
MonitorElement * meNDigiTECWheelzm_[9]
MonitorElement * meAdcTECWheel9zp_[4]
MonitorElement * meAdcTOBLayer5zm_[6]
unsigned int tecRing(const DetId &id) const
ring id
MonitorElement * meStripTIBLayer2Intzp_[3]
MonitorElement * meAdcTECWheel3zm_[7]
MonitorElement * meStripTOBLayer4zm_[6]
MonitorElement * meStripTECWheel4zp_[6]
MonitorElement * meNDigiTIBLayerzp_[4]
MonitorElement * meNDigiTOBLayerzp_[6]
MonitorElement * meAdcTIBLayer1Intzp_[3]
MonitorElement * meStripTECWheel5zp_[6]
unsigned int tidWheel(const DetId &id) const
MonitorElement * meAdcTIDWheel2zm_[3]
MonitorElement * meStripTOBLayer4zp_[6]
MonitorElement * meAdcTIBLayer2Intzp_[3]
MonitorElement * meAdcTECWheel8zm_[5]
MonitorElement * meStripTIBLayer3Extzp_[3]
MonitorElement * meAdcTIBLayer2Intzm_[3]
MonitorElement * meAdcTECWheel5zm_[6]
std::vector< unsigned int > tibStringInfo(const DetId &id) const
MonitorElement * meNDigiTOBLayerzm_[6]
MonitorElement * meStripTOBLayer5zp_[6]
MonitorElement * meStripTECWheel3zp_[7]
MonitorElement * meStripTECWheel6zm_[6]
MonitorElement * meStripTIBLayer3Intzm_[3]
MonitorElement * meAdcTOBLayer2zp_[6]
MonitorElement * meAdcTIDWheel3zp_[3]
MonitorElement * meStripTIBLayer2Intzm_[3]
MonitorElement * meAdcTIBLayer1Extzp_[3]
MonitorElement * meStripTECWheel4zm_[6]
MonitorElement * meStripTIBLayer4Extzm_[3]
MonitorElement * meAdcTOBLayer1zp_[6]
unsigned int tidSide(const DetId &id) const
void beginRun(edm::Run const &r, edm::EventSetup const &es)
std::vector< unsigned int > tobRodInfo(const DetId &id) const
MonitorElement * meAdcTOBLayer4zm_[6]
void analyze(const edm::Event &e, const edm::EventSetup &c)
MonitorElement * meStripTOBLayer5zm_[6]
MonitorElement * meAdcTECWheel8zp_[5]
void Fill(HcalDetId &id, double val, std::vector< TH2F > &depth)
MonitorElement * meAdcTIDWheel1zp_[3]
MonitorElement * meAdcTIBLayer1Intzm_[3]
MonitorElement * meStripTECWheel9zm_[4]
MonitorElement * meAdcTECWheel7zp_[5]
void save(const std::string &filename, const std::string &path="", const std::string &pattern="", const std::string &rewrite="", const uint32_t run=0, SaveReferenceTag ref=SaveWithReference, int minStatus=dqm::qstatus::STATUS_OK, const std::string &fileupdate="RECREATE")
MonitorElement * meAdcTECWheel1zm_[7]
MonitorElement * meStripTIBLayer1Intzp_[3]
MonitorElement * meStripTIDWheel2zm_[3]
A Digi for the silicon strip detector, containing both strip and adc information, and suitable for st...
MonitorElement * meStripTOBLayer3zm_[6]
MonitorElement * meStripTIDWheel1zm_[3]
int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
MonitorElement * meAdcTIBLayer3Extzp_[3]
MonitorElement * meStripTIBLayer3Extzm_[3]
MonitorElement * meStripTECWheel7zm_[5]
MonitorElement * meStripTECWheel2zp_[7]
iterator end()
Return the off-the-end iterator.
MonitorElement * meAdcTIBLayer3Intzm_[3]
MonitorElement * meNDigiTIBLayerzm_[4]
MonitorElement * meAdcTECWheel3zp_[7]
unsigned int tibModule(const DetId &id) const
MonitorElement * meAdcTIDWheel1zm_[3]
MonitorElement * meAdcTECWheel7zm_[5]
MonitorElement * meAdcTECWheel5zp_[6]
MonitorElement * meAdcTOBLayer1zm_[6]
MonitorElement * meStripTECWheel8zm_[5]
MonitorElement * meStripTECWheel5zm_[6]
MonitorElement * meStripTIBLayer1Intzm_[3]
MonitorElement * meAdcTIBLayer4Intzp_[3]
MonitorElement * meStripTIBLayer1Extzp_[3]
MonitorElement * meStripTIBLayer1Extzm_[3]
MonitorElement * meNDigiTIDWheelzp_[3]
MonitorElement * meAdcTOBLayer3zp_[6]
MonitorElement * meAdcTOBLayer6zm_[6]
SiStripDigiValid(const edm::ParameterSet &ps)
T const * product() const
MonitorElement * meStripTIDWheel3zp_[3]
MonitorElement * meStripTOBLayer6zp_[6]
MonitorElement * meAdcTOBLayer3zm_[6]
unsigned int tobModule(const DetId &id) const
MonitorElement * meAdcTIBLayer4Intzm_[3]
MonitorElement * meAdcTECWheel2zp_[7]
MonitorElement * meAdcTOBLayer6zp_[6]
MonitorElement * meAdcTIBLayer3Extzm_[3]
MonitorElement * meAdcTIDWheel2zp_[3]
MonitorElement * meStripTOBLayer2zp_[6]
MonitorElement * meStripTIDWheel2zp_[3]
MonitorElement * meStripTIBLayer4Extzp_[3]
MonitorElement * meStripTOBLayer1zm_[6]
MonitorElement * meAdcTIBLayer1Extzm_[3]
MonitorElement * meStripTECWheel3zm_[7]
MonitorElement * meAdcTOBLayer2zm_[6]
MonitorElement * meAdcTIBLayer4Extzp_[3]
MonitorElement * meStripTECWheel6zp_[6]
iterator begin()
Return an iterator to the first DetSet.
MonitorElement * meStripTOBLayer6zm_[6]
MonitorElement * meNDigiTECWheelzp_[9]
MonitorElement * meAdcTIBLayer3Intzp_[3]
collection_type::const_iterator const_iterator
collection_type::const_iterator const_iterator
MonitorElement * meAdcTECWheel6zm_[6]
MonitorElement * meStripTECWheel1zp_[7]
unsigned int tecWheel(const DetId &id) const
MonitorElement * meStripTIBLayer3Intzp_[3]
MonitorElement * meAdcTECWheel4zp_[6]
void setCurrentFolder(const std::string &fullpath)
MonitorElement * meAdcTECWheel9zm_[4]
MonitorElement * meStripTIBLayer2Extzp_[3]
unsigned int tobLayer(const DetId &id) const
unsigned int tecSide(const DetId &id) const
MonitorElement * meAdcTECWheel2zm_[7]
MonitorElement * meStripTIDWheel3zm_[3]