27 : outputFile_( ps.getUntrackedParameter<std::
string>(
"outputFile",
"pixeldigihisto.root" ) )
29 , edmDetSetVector_PixelDigi_Token_( consumes< edm::DetSetVector<
PixelDigi> >( ps.getParameter<edm::InputTag>(
"src" ) ) ) {
291 int ndigiperRingLayer1[8];
292 int ndigiperRingLayer2[8];
293 int ndigiperRingLayer3[8];
294 for(
int i = 0;
i< 8;
i++ ) {
295 ndigiperRingLayer1[
i] = 0;
296 ndigiperRingLayer2[
i] = 0;
297 ndigiperRingLayer3[
i] = 0;
300 int ndigiZpDisk1PerPanel1[24];
301 int ndigiZpDisk1PerPanel2[24];
302 int ndigiZpDisk2PerPanel1[24];
303 int ndigiZpDisk2PerPanel2[24];
304 int ndigiZmDisk1PerPanel1[24];
305 int ndigiZmDisk1PerPanel2[24];
306 int ndigiZmDisk2PerPanel1[24];
307 int ndigiZmDisk2PerPanel2[24];
309 for (
int i =0 ;
i< 24;
i++) {
310 ndigiZpDisk1PerPanel1[
i] = 0;
311 ndigiZpDisk1PerPanel2[
i] = 0;
312 ndigiZpDisk2PerPanel1[
i] = 0;
313 ndigiZpDisk2PerPanel2[
i] = 0;
314 ndigiZmDisk1PerPanel1[
i] = 0;
315 ndigiZmDisk1PerPanel2[
i] = 0;
316 ndigiZmDisk2PerPanel1[
i] = 0;
317 ndigiZmDisk2PerPanel2[
i] = 0;
320 int ndigilayer1ladders[20];
321 int ndigilayer2ladders[32];
322 int ndigilayer3ladders[44];
324 for (
int i =0 ;
i< 20;
i++) {
325 ndigilayer1ladders[
i]= 0;
328 for (
int i =0 ;
i< 32;
i++) {
329 ndigilayer2ladders[
i] = 0;
332 for (
int i =0 ;
i< 44;
i++) {
333 ndigilayer3ladders[
i] = 0;
346 for( ; DSViter != pixelDigis->end(); DSViter++) {
347 unsigned int id = DSViter->id;
355 unsigned int layer = tTopo->
pxbLayer(
id);
356 unsigned int ladder = tTopo->
pxbLadder(
id);
357 unsigned int zindex = tTopo->
pxbModule(
id);
359 for ( iter = begin ; iter !=
end; iter++ ) {
361 ++ndigilayer1ladders[ladder-1];
362 ++ndigiperRingLayer1[zindex-1];
411 ++ndigilayer2ladders[ladder-1];
412 ++ndigiperRingLayer2[zindex-1];
461 ++ndigilayer3ladders[ladder-1];
462 ++ndigiperRingLayer3[zindex-1];
516 unsigned int side = tTopo->
pxfSide(
id);
517 unsigned int disk = tTopo->
pxfDisk(
id);
518 unsigned int blade = tTopo->
pxfBlade(
id);
519 unsigned int panel = tTopo->
pxfPanel(
id);
522 for ( iter = begin ; iter !=
end; iter++ ) {
523 if(side == 1 && disk == 1 && panel ==1 ){
528 }
else if( mod == 2 ) {
532 }
else if( mod == 3 ) {
536 }
else if( mod == 4 ) {
543 ++ndigiZmDisk1PerPanel1[blade-1];
546 if(side == 1 && disk == 1 && panel ==2 ){
551 }
else if( mod == 2 ) {
555 }
else if( mod == 3 ) {
562 ++ndigiZmDisk1PerPanel2[blade-1];
565 if(side == 1 && disk == 2 && panel ==1 ){
570 }
else if( mod == 2 ) {
574 }
else if( mod == 3 ) {
578 }
else if( mod == 4 ) {
585 ++ndigiZmDisk2PerPanel1[blade-1];
588 if(side == 1 && disk == 2 && panel ==2 ){
593 }
else if( mod == 2 ) {
597 }
else if( mod == 3 ) {
604 ++ndigiZmDisk2PerPanel2[blade-1];
608 if(side == 2 && disk == 1 && panel ==1 ){
613 }
else if( mod == 2 ) {
617 }
else if( mod == 3 ) {
621 }
else if( mod == 4 ) {
628 ++ndigiZpDisk1PerPanel1[blade-1];
631 if(side == 2 && disk == 1 && panel ==2 ){
636 }
else if( mod == 2 ) {
640 }
else if( mod == 3 ) {
647 ++ndigiZpDisk1PerPanel2[blade-1];
650 if(side == 2 && disk == 2 && panel ==1 ){
655 }
else if( mod == 2 ) {
659 }
else if( mod == 3 ) {
663 }
else if( mod == 4 ) {
670 ++ndigiZpDisk2PerPanel1[blade-1];
674 if(side == 2 && disk == 2 && panel ==2 ){
679 }
else if( mod == 2 ) {
683 }
else if( mod == 3 ) {
690 ++ndigiZpDisk2PerPanel2[blade-1];
725 for(
int i =0;
i< 24;
i++) {
736 for (
int i =0;
i< 20;
i++) {
740 for (
int i =0;
i< 32;
i++) {
744 for (
int i =0;
i< 44;
i++) {
MonitorElement * meColZpDisk1Panel1Plaq3_
MonitorElement * meColLayer3Ring7_
MonitorElement * meAdcLayer3Ring4_
MonitorElement * meRowZpDisk2Panel1Plaq1_
MonitorElement * meAdcLayer2Ring6_
MonitorElement * meColZmDisk2Panel2Plaq2_
MonitorElement * meRowZpDisk2Panel1Plaq3_
MonitorElement * meRowZmDisk2Panel2Plaq3_
MonitorElement * meAdcLayer3Ring5_
MonitorElement * meDigiMultiLayer3Ring7_
MonitorElement * meDigiMultiLayer1Ring3_
MonitorElement * meAdcZpDisk2Panel1Plaq1_
MonitorElement * meDigiMultiLayer2Ring1_
MonitorElement * meColLayer2Ring2_
MonitorElement * meDigiMultiLayer1Ring5_
MonitorElement * meAdcLayer1Ring2_
MonitorElement * meColLayer1Ring2_
MonitorElement * meNdigiZpDisk2PerPanel1_
MonitorElement * meAdcZmDisk2Panel1Plaq3_
MonitorElement * meColZmDisk2Panel1Plaq2_
MonitorElement * meAdcLayer1Ring8_
MonitorElement * meRowZpDisk2Panel1Plaq4_
MonitorElement * meRowZpDisk2Panel2Plaq1_
edm::EDGetTokenT< edm::DetSetVector< PixelDigi > > edmDetSetVector_PixelDigi_Token_
MonitorElement * meAdcLayer3Ring2_
MonitorElement * meRowLayer3Ring8_
MonitorElement * meColLayer2Ring3_
MonitorElement * meRowZpDisk1Panel1Plaq4_
MonitorElement * meAdcLayer2Ring3_
MonitorElement * book1D(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1D histogram.
MonitorElement * meRowZpDisk1Panel2Plaq2_
MonitorElement * meAdcZmDisk1Panel2Plaq1_
MonitorElement * meRowZmDisk2Panel1Plaq1_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
MonitorElement * meColLayer1Ring4_
MonitorElement * meRowZmDisk1Panel1Plaq3_
unsigned int pxfDisk(const DetId &id) const
MonitorElement * meDigiMultiLayer1Ring7_
MonitorElement * meRowZpDisk2Panel2Plaq3_
MonitorElement * meDigiMultiLayer3Ring6_
MonitorElement * meColZmDisk1Panel1Plaq3_
MonitorElement * meAdcZmDisk1Panel1Plaq3_
MonitorElement * meDigiMultiLayer1Ring4_
MonitorElement * meRowZpDisk2Panel1Plaq2_
MonitorElement * meRowLayer3Ring7_
MonitorElement * meDigiMultiLayer3Ring3_
unsigned int pxbLadder(const DetId &id) const
MonitorElement * meAdcZmDisk2Panel2Plaq2_
MonitorElement * meColLayer2Ring4_
MonitorElement * meDigiMultiLayer3Ring8_
MonitorElement * meColZmDisk2Panel2Plaq3_
MonitorElement * meColZmDisk2Panel2Plaq1_
MonitorElement * meColLayer3Ring5_
MonitorElement * meColZmDisk1Panel2Plaq1_
MonitorElement * meRowLayer1Ring5_
MonitorElement * meColLayer1Ring7_
unsigned int pxbModule(const DetId &id) const
MonitorElement * meColLayer3Ring1_
MonitorElement * meAdcZpDisk2Panel1Plaq4_
MonitorElement * meRowZmDisk1Panel1Plaq4_
MonitorElement * meRowZmDisk1Panel1Plaq1_
MonitorElement * meRowLayer2Ring3_
MonitorElement * meDigiMultiLayer2Ring7_
MonitorElement * meDigiMultiLayer3Ring1_
MonitorElement * meColZpDisk1Panel2Plaq1_
MonitorElement * meColLayer1Ring1_
MonitorElement * meColLayer2Ring7_
MonitorElement * meColLayer1Ring3_
MonitorElement * meAdcZmDisk1Panel1Plaq4_
MonitorElement * meRowZpDisk1Panel1Plaq1_
MonitorElement * meAdcZpDisk1Panel2Plaq1_
MonitorElement * meColZpDisk1Panel2Plaq2_
MonitorElement * meAdcLayer1Ring4_
MonitorElement * meAdcLayer1Ring5_
MonitorElement * meRowLayer1Ring2_
MonitorElement * meAdcZmDisk2Panel1Plaq4_
MonitorElement * meAdcLayer1Ring1_
MonitorElement * meDigiMultiLayer1Ring2_
MonitorElement * meRowZmDisk1Panel2Plaq3_
MonitorElement * meColZpDisk1Panel1Plaq2_
MonitorElement * meRowZpDisk2Panel2Plaq2_
MonitorElement * meAdcLayer3Ring6_
MonitorElement * meRowLayer3Ring3_
MonitorElement * meAdcZpDisk2Panel2Plaq3_
MonitorElement * meColZmDisk1Panel2Plaq2_
MonitorElement * meAdcZpDisk2Panel1Plaq3_
MonitorElement * meDigiMultiLayer2Ring5_
MonitorElement * meColLayer2Ring5_
MonitorElement * meRowZpDisk1Panel1Plaq3_
SiPixelDigiValid(const edm::ParameterSet &ps)
MonitorElement * meColLayer1Ring6_
MonitorElement * meNdigiZmDisk1PerPanel1_
MonitorElement * meAdcZmDisk1Panel1Plaq2_
MonitorElement * meColZpDisk1Panel1Plaq1_
MonitorElement * meAdcZmDisk2Panel1Plaq1_
MonitorElement * meDigiMultiLayer3Ring2_
MonitorElement * meAdcZmDisk1Panel1Plaq1_
MonitorElement * meColZpDisk2Panel2Plaq1_
MonitorElement * meDigiMultiLayer2Ring2_
MonitorElement * meColZpDisk2Panel1Plaq1_
void beginRun(edm::Run const &r, edm::EventSetup const &es)
MonitorElement * meDigiMultiLayer2Ring4_
MonitorElement * meDigiMultiLayer2Ring6_
MonitorElement * meAdcZmDisk1Panel2Plaq3_
MonitorElement * meRowZmDisk2Panel2Plaq2_
MonitorElement * meColLayer1Ring8_
MonitorElement * meColZpDisk1Panel2Plaq3_
MonitorElement * meAdcZmDisk2Panel2Plaq1_
MonitorElement * meRowLayer1Ring4_
MonitorElement * meRowZmDisk2Panel1Plaq4_
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 * meAdcLayer2Ring7_
MonitorElement * bookProfile(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, const char *option="s")
MonitorElement * meRowZmDisk2Panel1Plaq2_
MonitorElement * meColZpDisk2Panel2Plaq3_
MonitorElement * meRowLayer3Ring6_
MonitorElement * meColLayer2Ring6_
MonitorElement * meColLayer3Ring8_
MonitorElement * meColZmDisk2Panel1Plaq3_
int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
MonitorElement * meDigiMultiLayer2Ring8_
MonitorElement * meAdcLayer2Ring5_
MonitorElement * meAdcLayer3Ring7_
MonitorElement * meDigiMultiLayer1Ladders_
MonitorElement * meAdcZmDisk1Panel2Plaq2_
MonitorElement * meRowZmDisk2Panel2Plaq1_
iterator end()
Return the off-the-end iterator.
MonitorElement * meRowLayer3Ring1_
MonitorElement * meRowLayer2Ring7_
MonitorElement * meAdcZpDisk2Panel2Plaq2_
MonitorElement * meColLayer1Ring5_
unsigned int pxfModule(const DetId &id) const
MonitorElement * meAdcZpDisk1Panel1Plaq1_
Forwar Pixel.
MonitorElement * meDigiMultiLayer1Ring1_
MonitorElement * meColZmDisk1Panel1Plaq1_
MonitorElement * meAdcLayer2Ring8_
MonitorElement * meRowLayer1Ring6_
MonitorElement * meRowZmDisk1Panel1Plaq2_
unsigned int pxbLayer(const DetId &id) const
MonitorElement * meAdcZpDisk1Panel2Plaq2_
MonitorElement * meDigiMultiLayer3Ring5_
void analyze(const edm::Event &e, const edm::EventSetup &c)
MonitorElement * meRowZmDisk2Panel1Plaq3_
MonitorElement * meAdcZpDisk2Panel1Plaq2_
MonitorElement * meColLayer3Ring3_
MonitorElement * meRowLayer2Ring5_
MonitorElement * meAdcZpDisk1Panel1Plaq4_
MonitorElement * meAdcLayer1Ring7_
MonitorElement * meColZpDisk2Panel1Plaq4_
MonitorElement * meRowLayer2Ring1_
MonitorElement * meColLayer2Ring8_
MonitorElement * meAdcLayer2Ring1_
MonitorElement * meAdcZmDisk2Panel1Plaq2_
MonitorElement * meDigiMultiLayer3Ladders_
T const * product() const
MonitorElement * meRowLayer3Ring4_
MonitorElement * meAdcLayer1Ring3_
MonitorElement * meNdigiZmDisk1PerPanel2_
MonitorElement * meDigiMultiLayer2Ladders_
MonitorElement * meNdigiZmDisk2PerPanel1_
MonitorElement * meDigiMultiLayer1Ring6_
MonitorElement * meRowLayer2Ring8_
MonitorElement * meRowLayer3Ring2_
MonitorElement * meAdcLayer3Ring8_
MonitorElement * meAdcZpDisk1Panel1Plaq2_
MonitorElement * meNdigiZpDisk1PerPanel2_
MonitorElement * meRowZmDisk1Panel2Plaq1_
MonitorElement * meColZmDisk1Panel1Plaq4_
MonitorElement * meAdcLayer3Ring3_
MonitorElement * meRowLayer1Ring3_
MonitorElement * meDigiMultiLayer2Ring3_
unsigned int pxfSide(const DetId &id) const
MonitorElement * meColZpDisk2Panel1Plaq3_
MonitorElement * meColZmDisk1Panel1Plaq2_
iterator begin()
Return an iterator to the first DetSet.
MonitorElement * meColZmDisk2Panel1Plaq4_
MonitorElement * meDigiMultiLayer1Ring8_
MonitorElement * meRowZpDisk1Panel1Plaq2_
MonitorElement * meColLayer3Ring2_
MonitorElement * meAdcZpDisk1Panel2Plaq3_
MonitorElement * meRowLayer2Ring6_
MonitorElement * meRowLayer1Ring1_
collection_type::const_iterator const_iterator
collection_type::const_iterator const_iterator
MonitorElement * meColZpDisk1Panel1Plaq4_
MonitorElement * meRowLayer2Ring4_
MonitorElement * meAdcLayer1Ring6_
MonitorElement * meRowLayer1Ring8_
T mod(const T &a, const T &b)
MonitorElement * meRowZpDisk1Panel2Plaq1_
MonitorElement * meColZpDisk2Panel1Plaq2_
MonitorElement * meNdigiZpDisk2PerPanel2_
MonitorElement * meDigiMultiLayer3Ring4_
MonitorElement * meColLayer2Ring1_
MonitorElement * meAdcLayer3Ring1_
MonitorElement * meColLayer3Ring6_
MonitorElement * meNdigiZmDisk2PerPanel2_
MonitorElement * meRowLayer1Ring7_
MonitorElement * meColZpDisk2Panel2Plaq2_
unsigned int pxfPanel(const DetId &id) const
unsigned int pxfBlade(const DetId &id) const
MonitorElement * meAdcLayer2Ring2_
MonitorElement * meAdcZpDisk1Panel1Plaq3_
MonitorElement * meColLayer3Ring4_
void setCurrentFolder(const std::string &fullpath)
MonitorElement * meRowLayer3Ring5_
MonitorElement * meRowZmDisk1Panel2Plaq2_
MonitorElement * meAdcLayer2Ring4_
MonitorElement * meColZmDisk1Panel2Plaq3_
MonitorElement * meAdcZmDisk2Panel2Plaq3_
MonitorElement * meColZmDisk2Panel1Plaq1_
MonitorElement * meRowLayer2Ring2_
MonitorElement * meNdigiZpDisk1PerPanel1_
MonitorElement * meRowZpDisk1Panel2Plaq3_
MonitorElement * meAdcZpDisk2Panel2Plaq1_