27 , outputFile_( ps.getUntrackedParameter<
std::
string>(
"outputFile",
"stripdigihisto.root" ) )
28 , edmDetSetVector_SiStripDigi_Token_( consumes<
edm::DetSetVector<
SiStripDigi> >( ps.getParameter<
edm::InputTag>(
"src" ) ) ) {
43 for(
int i = 0 ;
i<3 ;
i++) {
46 sprintf(histo,
"adc_tib_layer1_extmodule%d_zp",
i+1);
48 sprintf(histo,
"adc_tib_layer1_intmodule%d_zp",
i+1);
50 sprintf(histo,
"adc_tib_layer2_extmodule%d_zp",
i+1);
52 sprintf(histo,
"adc_tib_layer2_intmodule%d_zp",
i+1);
54 sprintf(histo,
"adc_tib_layer3_extmodule%d_zp",
i+1);
56 sprintf(histo,
"adc_tib_layer3_intmodule%d_zp",
i+1);
58 sprintf(histo,
"adc_tib_layer4_extmodule%d_zp",
i+1);
60 sprintf(histo,
"adc_tib_layer4_intmodule%d_zp",
i+1);
62 sprintf(histo,
"strip_tib_layer1_extmodule%d_zp",
i+1);
64 sprintf(histo,
"strip_tib_layer1_intmodule%d_zp",
i+1);
66 sprintf(histo,
"strip_tib_layer2_extmodule%d_zp",
i+1);
68 sprintf(histo,
"strip_tib_layer2_intmodule%d_zp",
i+1);
70 sprintf(histo,
"strip_tib_layer3_extmodule%d_zp",
i+1);
72 sprintf(histo,
"strip_tib_layer3_intmodule%d_zp",
i+1);
74 sprintf(histo,
"strip_tib_layer4_extmodule%d_zp",
i+1);
76 sprintf(histo,
"strip_tib_layer4_intmodule%d_zp",
i+1);
79 sprintf(histo,
"adc_tib_layer1_extmodule%d_zm",
i+1);
81 sprintf(histo,
"adc_tib_layer1_intmodule%d_zm",
i+1);
83 sprintf(histo,
"adc_tib_layer2_extmodule%d_zm",
i+1);
85 sprintf(histo,
"adc_tib_layer2_intmodule%d_zm",
i+1);
87 sprintf(histo,
"adc_tib_layer3_extmodule%d_zm",
i+1);
89 sprintf(histo,
"adc_tib_layer3_intmodule%d_zm",
i+1);
91 sprintf(histo,
"adc_tib_layer4_extmodule%d_zm",
i+1);
93 sprintf(histo,
"adc_tib_layer4_intmodule%d_zm",
i+1);
95 sprintf(histo,
"strip_tib_layer1_extmodule%d_zm",
i+1);
97 sprintf(histo,
"strip_tib_layer1_intmodule%d_zm",
i+1);
99 sprintf(histo,
"strip_tib_layer2_extmodule%d_zm",
i+1);
101 sprintf(histo,
"strip_tib_layer2_intmodule%d_zm",
i+1);
103 sprintf(histo,
"strip_tib_layer3_extmodule%d_zm",
i+1);
105 sprintf(histo,
"strip_tib_layer3_intmodule%d_zm",
i+1);
107 sprintf(histo,
"strip_tib_layer4_extmodule%d_zm",
i+1);
109 sprintf(histo,
"strip_tib_layer4_intmodule%d_zm",
i+1);
113 for(
int i = 0 ;
i<6 ;
i++) {
116 sprintf(histo,
"adc_tob_layer1_module%d_zp",
i+1);
118 sprintf(histo,
"strip_tob_layer1_module%d_zp",
i+1);
120 sprintf(histo,
"adc_tob_layer2_module%d_zp",
i+1);
122 sprintf(histo,
"strip_tob_layer2_module%d_zp",
i+1);
124 sprintf(histo,
"adc_tob_layer3_module%d_zp",
i+1);
126 sprintf(histo,
"strip_tob_layer3_module%d_zp",
i+1);
128 sprintf(histo,
"adc_tob_layer4_module%d_zp",
i+1);
130 sprintf(histo,
"strip_tob_layer4_module%d_zp",
i+1);
132 sprintf(histo,
"adc_tob_layer5_module%d_zp",
i+1);
134 sprintf(histo,
"strip_tob_layer5_module%d_zp",
i+1);
136 sprintf(histo,
"adc_tob_layer6_module%d_zp",
i+1);
138 sprintf(histo,
"strip_tob_layer6_module%d_zp",
i+1);
141 sprintf(histo,
"adc_tob_layer1_module%d_zm",
i+1);
143 sprintf(histo,
"strip_tob_layer1_module%d_zm",
i+1);
145 sprintf(histo,
"adc_tob_layer2_module%d_zm",
i+1);
147 sprintf(histo,
"strip_tob_layer2_module%d_zm",
i+1);
149 sprintf(histo,
"adc_tob_layer3_module%d_zm",
i+1);
151 sprintf(histo,
"strip_tob_layer3_module%d_zm",
i+1);
153 sprintf(histo,
"adc_tob_layer4_module%d_zm",
i+1);
155 sprintf(histo,
"strip_tob_layer4_module%d_zm",
i+1);
157 sprintf(histo,
"adc_tob_layer5_module%d_zm",
i+1);
159 sprintf(histo,
"strip_tob_layer5_module%d_zm",
i+1);
161 sprintf(histo,
"adc_tob_layer6_module%d_zm",
i+1);
163 sprintf(histo,
"strip_tob_layer6_module%d_zm",
i+1);
167 for(
int i = 0 ;
i<3 ;
i++) {
170 sprintf(histo,
"adc_tid_wheel1_ring%d_zp",
i+1);
172 sprintf(histo,
"adc_tid_wheel2_ring%d_zp",
i+1);
174 sprintf(histo,
"adc_tid_wheel3_ring%d_zp",
i+1);
176 sprintf(histo,
"strip_tid_wheel1_ring%d_zp",
i+1);
178 sprintf(histo,
"strip_tid_wheel2_ring%d_zp",
i+1);
180 sprintf(histo,
"strip_tid_wheel3_ring%d_zp",
i+1);
183 sprintf(histo,
"adc_tid_wheel1_ring%d_zm",
i+1);
185 sprintf(histo,
"adc_tid_wheel2_ring%d_zm",
i+1);
187 sprintf(histo,
"adc_tid_wheel3_ring%d_zm",
i+1);
189 sprintf(histo,
"strip_tid_wheel1_ring%d_zm",
i+1);
191 sprintf(histo,
"strip_tid_wheel2_ring%d_zm",
i+1);
193 sprintf(histo,
"strip_tid_wheel3_ring%d_zm",
i+1);
197 for(
int i = 0 ;
i<7 ;
i++) {
200 sprintf(histo,
"adc_tec_wheel1_ring%d_zp",
i+1);
202 sprintf(histo,
"adc_tec_wheel2_ring%d_zp",
i+1);
204 sprintf(histo,
"adc_tec_wheel3_ring%d_zp",
i+1);
206 sprintf(histo,
"strip_tec_wheel1_ring%d_zp",
i+1);
208 sprintf(histo,
"strip_tec_wheel2_ring%d_zp",
i+1);
210 sprintf(histo,
"strip_tec_wheel3_ring%d_zp",
i+1);
214 sprintf(histo,
"adc_tec_wheel1_ring%d_zm",
i+1);
216 sprintf(histo,
"adc_tec_wheel2_ring%d_zm",
i+1);
218 sprintf(histo,
"adc_tec_wheel3_ring%d_zm",
i+1);
220 sprintf(histo,
"strip_tec_wheel1_ring%d_zm",
i+1);
222 sprintf(histo,
"strip_tec_wheel2_ring%d_zm",
i+1);
224 sprintf(histo,
"strip_tec_wheel3_ring%d_zm",
i+1);
228 for(
int i = 0 ;
i<6 ;
i++) {
231 sprintf(histo,
"adc_tec_wheel4_ring%d_zp",
i+1);
233 sprintf(histo,
"adc_tec_wheel5_ring%d_zp",
i+1);
235 sprintf(histo,
"adc_tec_wheel6_ring%d_zp",
i+1);
237 sprintf(histo,
"strip_tec_wheel4_ring%d_zp",
i+1);
239 sprintf(histo,
"strip_tec_wheel5_ring%d_zp",
i+1);
241 sprintf(histo,
"strip_tec_wheel6_ring%d_zp",
i+1);
245 sprintf(histo,
"adc_tec_wheel4_ring%d_zm",
i+1);
247 sprintf(histo,
"adc_tec_wheel5_ring%d_zm",
i+1);
249 sprintf(histo,
"adc_tec_wheel6_ring%d_zm",
i+1);
251 sprintf(histo,
"strip_tec_wheel4_ring%d_zm",
i+1);
253 sprintf(histo,
"strip_tec_wheel5_ring%d_zm",
i+1);
255 sprintf(histo,
"strip_tec_wheel6_ring%d_zm",
i+1);
259 for(
int i = 0 ;
i<5 ;
i++) {
262 sprintf(histo,
"adc_tec_wheel7_ring%d_zp",
i+1);
264 sprintf(histo,
"adc_tec_wheel8_ring%d_zp",
i+1);
266 sprintf(histo,
"strip_tec_wheel7_ring%d_zp",
i+1);
268 sprintf(histo,
"strip_tec_wheel8_ring%d_zp",
i+1);
272 sprintf(histo,
"adc_tec_wheel7_ring%d_zm",
i+1);
274 sprintf(histo,
"adc_tec_wheel8_ring%d_zm",
i+1);
276 sprintf(histo,
"strip_tec_wheel7_ring%d_zm",
i+1);
278 sprintf(histo,
"strip_tec_wheel8_ring%d_zm",
i+1);
282 for(
int i = 0 ;
i<4 ;
i++) {
285 sprintf(histo,
"adc_tec_wheel9_ring%d_zp",
i+1);
287 sprintf(histo,
"strip_tec_wheel9_ring%d_zp",
i+1);
291 sprintf(histo,
"adc_tec_wheel9_ring%d_zm",
i+1);
293 sprintf(histo,
"strip_tec_wheel9_ring%d_zm",
i+1);
297 for(
int i = 0 ;
i<4 ;
i++) {
299 sprintf(histo,
"ndigi_tib_layer_%d_zm",
i+1);
301 sprintf(histo,
"ndigi_tib_layer_%d_zp",
i+1);
305 for(
int i = 0 ;
i<6 ;
i++) {
307 sprintf(histo,
"ndigi_tob_layer_%d_zm",
i+1);
309 sprintf(histo,
"ndigi_tob_layer_%d_zp",
i+1);
313 for(
int i = 0 ;
i<3 ;
i++) {
315 sprintf(histo,
"ndigi_tid_wheel_%d_zm",
i+1);
317 sprintf(histo,
"ndigi_tid_wheel_%d_zp",
i+1);
321 for(
int i = 0 ;
i<9 ;
i++) {
323 sprintf(histo,
"ndigi_tec_wheel_%d_zm",
i+1);
325 sprintf(histo,
"ndigi_tec_wheel_%d_zp",
i+1);
345 int ndigilayertibzp[4];
346 int ndigilayertibzm[4];
348 for(
int i = 0;
i< 4;
i++ ) {
349 ndigilayertibzp[
i] = 0;
350 ndigilayertibzm[
i] = 0;
353 int ndigilayertobzp[6];
354 int ndigilayertobzm[6];
356 for(
int i = 0;
i< 6;
i++ ) {
357 ndigilayertobzp[
i] = 0;
358 ndigilayertobzm[
i] = 0;
361 int ndigiwheeltidzp[3];
362 int ndigiwheeltidzm[3];
364 for(
int i = 0;
i< 3;
i++ ) {
365 ndigiwheeltidzp[
i] = 0;
366 ndigiwheeltidzm[
i] = 0;
369 int ndigiwheelteczp[9];
370 int ndigiwheelteczm[9];
372 for(
int i = 0;
i< 9;
i++ ) {
373 ndigiwheelteczp[
i] = 0;
374 ndigiwheelteczm[
i] = 0;
387 for( ; DSViter != stripDigis->end(); DSViter++) {
388 unsigned int id = DSViter->id;
396 for ( iter = begin ; iter !=
end; iter++ ) {
398 ++ndigilayertibzm[tTopo->
tibLayer(
id)-1];
444 ++ndigilayertibzp[tTopo->
tibLayer(
id)-1];
495 for ( iter = begin ; iter !=
end; iter++ ) {
497 ++ndigilayertobzm[tTopo->
tobLayer(
id)-1];
548 ++ndigilayertobzp[tTopo->
tobLayer(
id)-1];
605 for ( iter = begin ; iter !=
end; iter++ ) {
607 ++ndigiwheeltidzm[tTopo->
tidWheel(
id)-1];
625 ++ndigiwheeltidzp[tTopo->
tidWheel(
id)-1];
647 for ( iter = begin ; iter !=
end; iter++ ) {
649 ++ndigiwheelteczm[tTopo->
tecWheel(
id)-1];
722 ++ndigiwheelteczp[tTopo->
tecWheel(
id)-1];
800 for (
int i =0;
i< 4;
i++ ) {
805 for (
int i =0;
i< 6;
i++ ) {
810 for (
int i =0;
i< 3;
i++ ) {
815 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 * 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
std::vector< unsigned int > tobRodInfo(const DetId &id) const
MonitorElement * meAdcTOBLayer4zm_[6]
~SiStripDigiValid() override
MonitorElement * meStripTOBLayer5zm_[6]
MonitorElement * meAdcTECWheel8zp_[5]
void Fill(HcalDetId &id, double val, std::vector< TH2F > &depth)
MonitorElement * meAdcTIDWheel1zp_[3]
MonitorElement * meAdcTIBLayer1Intzm_[3]
void bookHistograms(DQMStore::IBooker &ibooker, const edm::Run &run, const edm::EventSetup &es) override
void endJob(void) override
MonitorElement * book1D(Args &&...args)
void save(const std::string &filename, const std::string &path="", const std::string &pattern="", const std::string &rewrite="", const uint32_t run=0, const uint32_t lumi=0, SaveReferenceTag ref=SaveWithReference, int minStatus=dqm::qstatus::STATUS_OK, const std::string &fileupdate="RECREATE")
MonitorElement * meStripTECWheel9zm_[4]
MonitorElement * meAdcTECWheel7zp_[5]
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]
void setCurrentFolder(const std::string &fullpath)
MonitorElement * meStripTIBLayer1Extzp_[3]
MonitorElement * meStripTIBLayer1Extzm_[3]
MonitorElement * meNDigiTIDWheelzp_[3]
MonitorElement * meAdcTOBLayer3zp_[6]
MonitorElement * meAdcTOBLayer6zm_[6]
SiStripDigiValid(const edm::ParameterSet &ps)
void analyze(const edm::Event &e, const edm::EventSetup &c) override
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
T const * product() const
MonitorElement * meStripTIBLayer3Intzp_[3]
MonitorElement * meAdcTECWheel4zp_[6]
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]