26 , runStandalone ( ps.getParameter<bool>(
"runStandalone") )
27 , outputFile_( ps.getUntrackedParameter<std::
string>(
"outputFile",
"stripdigihisto.root" ) )
28 , edmDetSetVector_SiStripDigi_Token_( consumes< edm::DetSetVector<
SiStripDigi> >( ps.getParameter<edm::InputTag>(
"src" ) ) ) {
46 for(
int i = 0 ;
i<3 ;
i++) {
49 sprintf(histo,
"adc_tib_layer1_extmodule%d_zp",
i+1);
51 sprintf(histo,
"adc_tib_layer1_intmodule%d_zp",
i+1);
53 sprintf(histo,
"adc_tib_layer2_extmodule%d_zp",
i+1);
55 sprintf(histo,
"adc_tib_layer2_intmodule%d_zp",
i+1);
57 sprintf(histo,
"adc_tib_layer3_extmodule%d_zp",
i+1);
59 sprintf(histo,
"adc_tib_layer3_intmodule%d_zp",
i+1);
61 sprintf(histo,
"adc_tib_layer4_extmodule%d_zp",
i+1);
63 sprintf(histo,
"adc_tib_layer4_intmodule%d_zp",
i+1);
65 sprintf(histo,
"strip_tib_layer1_extmodule%d_zp",
i+1);
67 sprintf(histo,
"strip_tib_layer1_intmodule%d_zp",
i+1);
69 sprintf(histo,
"strip_tib_layer2_extmodule%d_zp",
i+1);
71 sprintf(histo,
"strip_tib_layer2_intmodule%d_zp",
i+1);
73 sprintf(histo,
"strip_tib_layer3_extmodule%d_zp",
i+1);
75 sprintf(histo,
"strip_tib_layer3_intmodule%d_zp",
i+1);
77 sprintf(histo,
"strip_tib_layer4_extmodule%d_zp",
i+1);
79 sprintf(histo,
"strip_tib_layer4_intmodule%d_zp",
i+1);
82 sprintf(histo,
"adc_tib_layer1_extmodule%d_zm",
i+1);
84 sprintf(histo,
"adc_tib_layer1_intmodule%d_zm",
i+1);
86 sprintf(histo,
"adc_tib_layer2_extmodule%d_zm",
i+1);
88 sprintf(histo,
"adc_tib_layer2_intmodule%d_zm",
i+1);
90 sprintf(histo,
"adc_tib_layer3_extmodule%d_zm",
i+1);
92 sprintf(histo,
"adc_tib_layer3_intmodule%d_zm",
i+1);
94 sprintf(histo,
"adc_tib_layer4_extmodule%d_zm",
i+1);
96 sprintf(histo,
"adc_tib_layer4_intmodule%d_zm",
i+1);
98 sprintf(histo,
"strip_tib_layer1_extmodule%d_zm",
i+1);
100 sprintf(histo,
"strip_tib_layer1_intmodule%d_zm",
i+1);
102 sprintf(histo,
"strip_tib_layer2_extmodule%d_zm",
i+1);
104 sprintf(histo,
"strip_tib_layer2_intmodule%d_zm",
i+1);
106 sprintf(histo,
"strip_tib_layer3_extmodule%d_zm",
i+1);
108 sprintf(histo,
"strip_tib_layer3_intmodule%d_zm",
i+1);
110 sprintf(histo,
"strip_tib_layer4_extmodule%d_zm",
i+1);
112 sprintf(histo,
"strip_tib_layer4_intmodule%d_zm",
i+1);
116 for(
int i = 0 ;
i<6 ;
i++) {
119 sprintf(histo,
"adc_tob_layer1_module%d_zp",
i+1);
121 sprintf(histo,
"strip_tob_layer1_module%d_zp",
i+1);
123 sprintf(histo,
"adc_tob_layer2_module%d_zp",
i+1);
125 sprintf(histo,
"strip_tob_layer2_module%d_zp",
i+1);
127 sprintf(histo,
"adc_tob_layer3_module%d_zp",
i+1);
129 sprintf(histo,
"strip_tob_layer3_module%d_zp",
i+1);
131 sprintf(histo,
"adc_tob_layer4_module%d_zp",
i+1);
133 sprintf(histo,
"strip_tob_layer4_module%d_zp",
i+1);
135 sprintf(histo,
"adc_tob_layer5_module%d_zp",
i+1);
137 sprintf(histo,
"strip_tob_layer5_module%d_zp",
i+1);
139 sprintf(histo,
"adc_tob_layer6_module%d_zp",
i+1);
141 sprintf(histo,
"strip_tob_layer6_module%d_zp",
i+1);
144 sprintf(histo,
"adc_tob_layer1_module%d_zm",
i+1);
146 sprintf(histo,
"strip_tob_layer1_module%d_zm",
i+1);
148 sprintf(histo,
"adc_tob_layer2_module%d_zm",
i+1);
150 sprintf(histo,
"strip_tob_layer2_module%d_zm",
i+1);
152 sprintf(histo,
"adc_tob_layer3_module%d_zm",
i+1);
154 sprintf(histo,
"strip_tob_layer3_module%d_zm",
i+1);
156 sprintf(histo,
"adc_tob_layer4_module%d_zm",
i+1);
158 sprintf(histo,
"strip_tob_layer4_module%d_zm",
i+1);
160 sprintf(histo,
"adc_tob_layer5_module%d_zm",
i+1);
162 sprintf(histo,
"strip_tob_layer5_module%d_zm",
i+1);
164 sprintf(histo,
"adc_tob_layer6_module%d_zm",
i+1);
166 sprintf(histo,
"strip_tob_layer6_module%d_zm",
i+1);
170 for(
int i = 0 ;
i<3 ;
i++) {
173 sprintf(histo,
"adc_tid_wheel1_ring%d_zp",
i+1);
175 sprintf(histo,
"adc_tid_wheel2_ring%d_zp",
i+1);
177 sprintf(histo,
"adc_tid_wheel3_ring%d_zp",
i+1);
179 sprintf(histo,
"strip_tid_wheel1_ring%d_zp",
i+1);
181 sprintf(histo,
"strip_tid_wheel2_ring%d_zp",
i+1);
183 sprintf(histo,
"strip_tid_wheel3_ring%d_zp",
i+1);
186 sprintf(histo,
"adc_tid_wheel1_ring%d_zm",
i+1);
188 sprintf(histo,
"adc_tid_wheel2_ring%d_zm",
i+1);
190 sprintf(histo,
"adc_tid_wheel3_ring%d_zm",
i+1);
192 sprintf(histo,
"strip_tid_wheel1_ring%d_zm",
i+1);
194 sprintf(histo,
"strip_tid_wheel2_ring%d_zm",
i+1);
196 sprintf(histo,
"strip_tid_wheel3_ring%d_zm",
i+1);
200 for(
int i = 0 ;
i<7 ;
i++) {
203 sprintf(histo,
"adc_tec_wheel1_ring%d_zp",
i+1);
205 sprintf(histo,
"adc_tec_wheel2_ring%d_zp",
i+1);
207 sprintf(histo,
"adc_tec_wheel3_ring%d_zp",
i+1);
209 sprintf(histo,
"strip_tec_wheel1_ring%d_zp",
i+1);
211 sprintf(histo,
"strip_tec_wheel2_ring%d_zp",
i+1);
213 sprintf(histo,
"strip_tec_wheel3_ring%d_zp",
i+1);
217 sprintf(histo,
"adc_tec_wheel1_ring%d_zm",
i+1);
219 sprintf(histo,
"adc_tec_wheel2_ring%d_zm",
i+1);
221 sprintf(histo,
"adc_tec_wheel3_ring%d_zm",
i+1);
223 sprintf(histo,
"strip_tec_wheel1_ring%d_zm",
i+1);
225 sprintf(histo,
"strip_tec_wheel2_ring%d_zm",
i+1);
227 sprintf(histo,
"strip_tec_wheel3_ring%d_zm",
i+1);
231 for(
int i = 0 ;
i<6 ;
i++) {
234 sprintf(histo,
"adc_tec_wheel4_ring%d_zp",
i+1);
236 sprintf(histo,
"adc_tec_wheel5_ring%d_zp",
i+1);
238 sprintf(histo,
"adc_tec_wheel6_ring%d_zp",
i+1);
240 sprintf(histo,
"strip_tec_wheel4_ring%d_zp",
i+1);
242 sprintf(histo,
"strip_tec_wheel5_ring%d_zp",
i+1);
244 sprintf(histo,
"strip_tec_wheel6_ring%d_zp",
i+1);
248 sprintf(histo,
"adc_tec_wheel4_ring%d_zm",
i+1);
250 sprintf(histo,
"adc_tec_wheel5_ring%d_zm",
i+1);
252 sprintf(histo,
"adc_tec_wheel6_ring%d_zm",
i+1);
254 sprintf(histo,
"strip_tec_wheel4_ring%d_zm",
i+1);
256 sprintf(histo,
"strip_tec_wheel5_ring%d_zm",
i+1);
258 sprintf(histo,
"strip_tec_wheel6_ring%d_zm",
i+1);
262 for(
int i = 0 ;
i<5 ;
i++) {
265 sprintf(histo,
"adc_tec_wheel7_ring%d_zp",
i+1);
267 sprintf(histo,
"adc_tec_wheel8_ring%d_zp",
i+1);
269 sprintf(histo,
"strip_tec_wheel7_ring%d_zp",
i+1);
271 sprintf(histo,
"strip_tec_wheel8_ring%d_zp",
i+1);
275 sprintf(histo,
"adc_tec_wheel7_ring%d_zm",
i+1);
277 sprintf(histo,
"adc_tec_wheel8_ring%d_zm",
i+1);
279 sprintf(histo,
"strip_tec_wheel7_ring%d_zm",
i+1);
281 sprintf(histo,
"strip_tec_wheel8_ring%d_zm",
i+1);
285 for(
int i = 0 ;
i<4 ;
i++) {
288 sprintf(histo,
"adc_tec_wheel9_ring%d_zp",
i+1);
290 sprintf(histo,
"strip_tec_wheel9_ring%d_zp",
i+1);
294 sprintf(histo,
"adc_tec_wheel9_ring%d_zm",
i+1);
296 sprintf(histo,
"strip_tec_wheel9_ring%d_zm",
i+1);
300 for(
int i = 0 ;
i<4 ;
i++) {
302 sprintf(histo,
"ndigi_tib_layer_%d_zm",
i+1);
304 sprintf(histo,
"ndigi_tib_layer_%d_zp",
i+1);
308 for(
int i = 0 ;
i<6 ;
i++) {
310 sprintf(histo,
"ndigi_tob_layer_%d_zm",
i+1);
312 sprintf(histo,
"ndigi_tob_layer_%d_zp",
i+1);
316 for(
int i = 0 ;
i<3 ;
i++) {
318 sprintf(histo,
"ndigi_tid_wheel_%d_zm",
i+1);
320 sprintf(histo,
"ndigi_tid_wheel_%d_zp",
i+1);
324 for(
int i = 0 ;
i<9 ;
i++) {
326 sprintf(histo,
"ndigi_tec_wheel_%d_zm",
i+1);
328 sprintf(histo,
"ndigi_tec_wheel_%d_zp",
i+1);
348 int ndigilayertibzp[4];
349 int ndigilayertibzm[4];
351 for(
int i = 0;
i< 4;
i++ ) {
352 ndigilayertibzp[
i] = 0;
353 ndigilayertibzm[
i] = 0;
356 int ndigilayertobzp[6];
357 int ndigilayertobzm[6];
359 for(
int i = 0;
i< 6;
i++ ) {
360 ndigilayertobzp[
i] = 0;
361 ndigilayertobzm[
i] = 0;
364 int ndigiwheeltidzp[3];
365 int ndigiwheeltidzm[3];
367 for(
int i = 0;
i< 3;
i++ ) {
368 ndigiwheeltidzp[
i] = 0;
369 ndigiwheeltidzm[
i] = 0;
372 int ndigiwheelteczp[9];
373 int ndigiwheelteczm[9];
375 for(
int i = 0;
i< 9;
i++ ) {
376 ndigiwheelteczp[
i] = 0;
377 ndigiwheelteczm[
i] = 0;
390 for( ; DSViter != stripDigis->end(); DSViter++) {
391 unsigned int id = DSViter->id;
399 for ( iter = begin ; iter !=
end; iter++ ) {
401 ++ndigilayertibzm[tTopo->
tibLayer(
id)-1];
447 ++ndigilayertibzp[tTopo->
tibLayer(
id)-1];
498 for ( iter = begin ; iter !=
end; iter++ ) {
500 ++ndigilayertobzm[tTopo->
tobLayer(
id)-1];
551 ++ndigilayertobzp[tTopo->
tobLayer(
id)-1];
608 for ( iter = begin ; iter !=
end; iter++ ) {
610 ++ndigiwheeltidzm[tTopo->
tidWheel(
id)-1];
628 ++ndigiwheeltidzp[tTopo->
tidWheel(
id)-1];
650 for ( iter = begin ; iter !=
end; iter++ ) {
652 ++ndigiwheelteczm[tTopo->
tecWheel(
id)-1];
725 ++ndigiwheelteczp[tTopo->
tecWheel(
id)-1];
803 for (
int i =0;
i< 4;
i++ ) {
808 for (
int i =0;
i< 6;
i++ ) {
813 for (
int i =0;
i< 3;
i++ ) {
818 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]
void bookHistograms(DQMStore::IBooker &ibooker, const edm::Run &run, const edm::EventSetup &es)
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]
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 * book1D(Args &&...args)
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)
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]
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", const bool resetMEsAfterWriting=false)
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]
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]