CMS 3D CMS Logo

Public Member Functions | Private Attributes

SiPixelRecHitModule Class Reference

#include <SiPixelRecHitModule.h>

List of all members.

Public Member Functions

void book (const edm::ParameterSet &iConfig, int type=0, bool twoD=true, bool reducedSet=false)
 Book histograms.
void fill (const float &rechit_x, const float &rechit_y, const int &sizeX, const int &sizeY, const float &lerr_x, const float &lerr_y, bool modon=true, bool ladon=false, bool layon=false, bool phion=false, bool bladeon=false, bool diskon=false, bool ringon=false, bool twoD=true, bool reducedSet=false)
 Fill histograms.
void nfill (const int &nrec, bool modon=true, bool ladon=false, bool layon=false, bool phion=false, bool bladeon=false, bool diskon=false, bool ringon=false)
 SiPixelRecHitModule (const uint32_t &id)
 Constructor with raw DetId.
 SiPixelRecHitModule ()
 Default constructor.
 ~SiPixelRecHitModule ()
 Destructor.

Private Attributes

uint32_t id_
MonitorElementmeClustX_
MonitorElementmeClustXBlade_
MonitorElementmeClustXDisk_
MonitorElementmeClustXLad_
MonitorElementmeClustXLay_
MonitorElementmeClustXPhi_
MonitorElementmeClustXRing_
MonitorElementmeClustY_
MonitorElementmeClustYBlade_
MonitorElementmeClustYDisk_
MonitorElementmeClustYLad_
MonitorElementmeClustYLay_
MonitorElementmeClustYPhi_
MonitorElementmeClustYRing_
MonitorElementmeErrorX_
MonitorElementmeErrorXBlade_
MonitorElementmeErrorXDisk_
MonitorElementmeErrorXLad_
MonitorElementmeErrorXLay_
MonitorElementmeErrorXPhi_
MonitorElementmeErrorXRing_
MonitorElementmeErrorY_
MonitorElementmeErrorYBlade_
MonitorElementmeErrorYDisk_
MonitorElementmeErrorYLad_
MonitorElementmeErrorYLay_
MonitorElementmeErrorYPhi_
MonitorElementmeErrorYRing_
MonitorElementmenRecHits_
MonitorElementmenRecHitsBlade_
MonitorElementmenRecHitsDisk_
MonitorElementmenRecHitsLad_
MonitorElementmenRecHitsLay_
MonitorElementmenRecHitsPhi_
MonitorElementmenRecHitsRing_
MonitorElementmeXYPos_
MonitorElementmeXYPos_px_
MonitorElementmeXYPos_py_
MonitorElementmeXYPosLad_
MonitorElementmeXYPosLad_px_
MonitorElementmeXYPosLad_py_
MonitorElementmeXYPosLay_
MonitorElementmeXYPosLay_px_
MonitorElementmeXYPosLay_py_
MonitorElementmeXYPosPhi_
MonitorElementmeXYPosPhi_px_
MonitorElementmeXYPosPhi_py_
MonitorElementmeXYPosRing_
MonitorElementmeXYPosRing_px_
MonitorElementmeXYPosRing_py_

Detailed Description

Definition at line 34 of file SiPixelRecHitModule.h.


Constructor & Destructor Documentation

SiPixelRecHitModule::SiPixelRecHitModule ( )

Default constructor.

Framework.

Definition at line 21 of file SiPixelRecHitModule.cc.

: id_(0) { }
SiPixelRecHitModule::SiPixelRecHitModule ( const uint32_t &  id)

Constructor with raw DetId.

Definition at line 23 of file SiPixelRecHitModule.cc.

                                                           : 
  id_(id)
{ 
}
SiPixelRecHitModule::~SiPixelRecHitModule ( )

Destructor.

Definition at line 31 of file SiPixelRecHitModule.cc.

{}

Member Function Documentation

void SiPixelRecHitModule::book ( const edm::ParameterSet iConfig,
int  type = 0,
bool  twoD = true,
bool  reducedSet = false 
)

Book histograms.

Definition at line 35 of file SiPixelRecHitModule.cc.

References Reference_intrackfit_cff::barrel, PixelEndcapName::bladeName(), PixelEndcapName::diskName(), Reference_intrackfit_cff::endcap, edm::ParameterSet::getParameter(), id_, PixelBarrelName::isHalfModule(), edm::InputTag::label(), PixelBarrelName::ladderName(), PixelBarrelName::layerName(), meClustX_, meClustXBlade_, meClustXDisk_, meClustXLad_, meClustXLay_, meClustXPhi_, meClustXRing_, meClustY_, meClustYBlade_, meClustYDisk_, meClustYLad_, meClustYLay_, meClustYPhi_, meClustYRing_, meErrorX_, meErrorXBlade_, meErrorXDisk_, meErrorXLad_, meErrorXLay_, meErrorXPhi_, meErrorXRing_, meErrorY_, meErrorYBlade_, meErrorYDisk_, meErrorYLad_, meErrorYLay_, meErrorYPhi_, meErrorYRing_, menRecHitsBlade_, menRecHitsDisk_, menRecHitsLad_, menRecHitsLay_, menRecHitsPhi_, menRecHitsRing_, meXYPos_, meXYPos_px_, meXYPos_py_, meXYPosLad_, meXYPosLad_px_, meXYPosLad_py_, meXYPosLay_, meXYPosLay_px_, meXYPosLay_py_, meXYPosPhi_, meXYPosPhi_px_, meXYPosPhi_py_, meXYPosRing_, meXYPosRing_px_, meXYPosRing_py_, PixelBarrelName::moduleName(), cppFunctionSkipper::operator, PixelEndcapName::pannelName(), GeomDetEnumerators::PixelBarrel, GeomDetEnumerators::PixelEndcap, PixelEndcapName::plaquetteName(), MonitorElement::setAxisTitle(), SiPixelHistogramId::setHistoId(), alcazmumu_cfi::src, and DetId::subdetId().

                                                           {

  bool barrel = DetId(id_).subdetId() == static_cast<int>(PixelSubdetector::PixelBarrel);
  bool endcap = DetId(id_).subdetId() == static_cast<int>(PixelSubdetector::PixelEndcap);
  bool isHalfModule = false;
  if(barrel){
    isHalfModule = PixelBarrelName(DetId(id_)).isHalfModule(); 
  }

  std::string hid;
  // Get collection name and instantiate Histo Id builder
  edm::InputTag src = iConfig.getParameter<edm::InputTag>( "src" );
  // Get DQM interface
  DQMStore* theDMBE = edm::Service<DQMStore>().operator->();


  if(type==0){
    SiPixelHistogramId* theHistogramId = new SiPixelHistogramId( src.label() );
        if(!reducedSet)
        {
    if(twoD){
      // XYPosition
      hid = theHistogramId->setHistoId("xypos",id_);
      meXYPos_ = theDMBE->book2D(hid,"XY Position",100,-1.,1,100,-4,4);
      meXYPos_->setAxisTitle("X Position",1);
      meXYPos_->setAxisTitle("Y Position",2);
    }
    else{
      // projections of XYPosition
      hid = theHistogramId->setHistoId("xypos",id_);
      meXYPos_px_ = theDMBE->book1D(hid+"_px","X Position",100,-1.,1);
      meXYPos_px_->setAxisTitle("X Position",1);
      meXYPos_py_ = theDMBE->book1D(hid+"_py","Y Position",100,-4,4);
      meXYPos_py_->setAxisTitle("Y Position",1);
    }
        }
    hid = theHistogramId->setHistoId("ClustX",id_);
    meClustX_ = theDMBE->book1D(hid, "RecHit X size", 10, 0., 10.);
    meClustX_->setAxisTitle("RecHit size X dimension", 1);
    hid = theHistogramId->setHistoId("ClustY",id_);
    meClustY_ = theDMBE->book1D(hid, "RecHit Y size", 15, 0., 15.);
    meClustY_->setAxisTitle("RecHit size Y dimension", 1); 

    hid = theHistogramId->setHistoId("ErrorX",id_);
    meErrorX_ = theDMBE->book1D(hid, "RecHit error X", 100,0.,0.02);
    meErrorX_->setAxisTitle("RecHit error X", 1);
    hid = theHistogramId->setHistoId("ErrorY",id_);
    meErrorY_ = theDMBE->book1D(hid, "RecHit error Y", 100,0.,0.02);
    meErrorY_->setAxisTitle("RecHit error Y", 1);

    //Removed to save offline memory
    //hid = theHistogramId->setHistoId("nRecHits",id_);
    //menRecHits_ = theDMBE->book1D(hid, "# of rechits in this module", 8, 0, 8);
    //menRecHits_->setAxisTitle("number of rechits",1);  
    delete theHistogramId;
  }

  if(type==1 && barrel){
    uint32_t DBladder = PixelBarrelName(DetId(id_)).ladderName();
    char sladder[80]; sprintf(sladder,"Ladder_%02i",DBladder);
    hid = src.label() + "_" + sladder;
    if(isHalfModule) hid += "H";
    else hid += "F";
        if(!reducedSet)
        {
    if(twoD){
      meXYPosLad_ = theDMBE->book2D("xypos_" + hid,"XY Position",100,-1.,1,100,-4,4);
      meXYPosLad_->setAxisTitle("X Position",1);
      meXYPosLad_->setAxisTitle("Y Position",2);
    }
    else{
      // projections of XYPosition
      meXYPosLad_px_ = theDMBE->book1D("xypos_"+hid+"_px","X Position",100,-1.,1);
      meXYPosLad_px_->setAxisTitle("X Position",1);
      meXYPosLad_py_ = theDMBE->book1D("xypos_"+hid+"_py","Y Position",100,-4,4);
      meXYPosLad_py_->setAxisTitle("Y Position",1);
    }
        }
    meClustXLad_ = theDMBE->book1D("ClustX_" +hid, "RecHit X size", 10, 0., 10.);
    meClustXLad_->setAxisTitle("RecHit size X dimension", 1);
    meClustYLad_ = theDMBE->book1D("ClustY_" +hid,"RecHit Y size", 15, 0.,15.);
    meClustYLad_->setAxisTitle("RecHit size Y dimension", 1);
    meErrorXLad_ = theDMBE->book1D("ErrorX_"+hid, "RecHit error X", 100,0.,0.02);
    meErrorXLad_->setAxisTitle("RecHit error X", 1);
    meErrorYLad_ = theDMBE->book1D("ErrorY_"+hid, "RecHit error Y", 100,0.,0.02);
    meErrorYLad_->setAxisTitle("RecHit error Y", 1);
    menRecHitsLad_ = theDMBE->book1D("nRecHits_"+hid, "# of rechits in this module", 8, 0, 8);
    menRecHitsLad_->setAxisTitle("number of rechits",1);

  }

  if(type==2 && barrel){
    
    uint32_t DBlayer = PixelBarrelName(DetId(id_)).layerName();
    char slayer[80]; sprintf(slayer,"Layer_%i",DBlayer);
    hid = src.label() + "_" + slayer;
    
        if(!reducedSet)
        {
    if(twoD){
      meXYPosLay_ = theDMBE->book2D("xypos_" + hid,"XY Position",100,-1.,1,100,-4,4);
      meXYPosLay_->setAxisTitle("X Position",1);
      meXYPosLay_->setAxisTitle("Y Position",2);
    }
    else{
      // projections of XYPosition
      meXYPosLay_px_ = theDMBE->book1D("xypos_"+hid+"_px","X Position",100,-1.,1);
      meXYPosLay_px_->setAxisTitle("X Position",1);
      meXYPosLay_py_ = theDMBE->book1D("xypos_"+hid+"_py","Y Position",100,-4,4);
      meXYPosLay_py_->setAxisTitle("Y Position",1);
    }
        }

    meClustXLay_ = theDMBE->book1D("ClustX_" +hid, "RecHit X size", 10, 0., 10.);
    meClustXLay_->setAxisTitle("RecHit size X dimension", 1);
    meClustYLay_ = theDMBE->book1D("ClustY_" +hid,"RecHit Y size", 15, 0.,15.);
    meClustYLay_->setAxisTitle("RecHit size Y dimension", 1);
    meErrorXLay_ = theDMBE->book1D("ErrorX_"+hid, "RecHit error X", 100,0.,0.02);
    meErrorXLay_->setAxisTitle("RecHit error X", 1);
    meErrorYLay_ = theDMBE->book1D("ErrorY_"+hid, "RecHit error Y", 100,0.,0.02);
    meErrorYLay_->setAxisTitle("RecHit error Y", 1);
    menRecHitsLay_ = theDMBE->book1D("nRecHits_"+hid, "# of rechits in this module", 8, 0, 8);
    menRecHitsLay_->setAxisTitle("number of rechits",1);

  }

  if(type==3 && barrel){
    uint32_t DBmodule = PixelBarrelName(DetId(id_)).moduleName();
    char smodule[80]; sprintf(smodule,"Ring_%i",DBmodule);
    hid = src.label() + "_" + smodule;
    
        if(!reducedSet)
        {
    if(twoD){
      meXYPosPhi_ = theDMBE->book2D("xypos_" + hid,"XY Position",100,-1.,1,100,-4,4);
      meXYPosPhi_->setAxisTitle("X Position",1);
      meXYPosPhi_->setAxisTitle("Y Position",2);
    }
    else{
      // projections of XYPosition
      meXYPosPhi_px_ = theDMBE->book1D("xypos_"+hid+"_px","X Position",100,-1.,1);
      meXYPosPhi_px_->setAxisTitle("X Position",1);
      meXYPosPhi_py_ = theDMBE->book1D("xypos_"+hid+"_py","Y Position",100,-4,4);
      meXYPosPhi_py_->setAxisTitle("Y Position",1);
    }
        }
    meClustXPhi_ = theDMBE->book1D("ClustX_" +hid, "RecHit X size", 10, 0., 10.);
    meClustXPhi_->setAxisTitle("RecHit size X dimension", 1);
    meClustYPhi_ = theDMBE->book1D("ClustY_" +hid,"RecHit Y size", 15, 0.,15.);
    meClustYPhi_->setAxisTitle("RecHit size Y dimension", 1);
    meErrorXPhi_ = theDMBE->book1D("ErrorX_"+hid, "RecHit error X", 100,0.,0.02);
    meErrorXPhi_->setAxisTitle("RecHit error X", 1);
    meErrorYPhi_ = theDMBE->book1D("ErrorY_"+hid, "RecHit error Y", 100,0.,0.02);
    meErrorYPhi_->setAxisTitle("RecHit error Y", 1);
    menRecHitsPhi_ = theDMBE->book1D("nRecHits_"+hid, "# of rechits in this module", 8, 0, 8);
    menRecHitsPhi_->setAxisTitle("number of rechits",1);

  }

  if(type==4 && endcap){
    uint32_t blade= PixelEndcapName(DetId(id_)).bladeName();
    
    char sblade[80]; sprintf(sblade, "Blade_%02i",blade);
    hid = src.label() + "_" + sblade;
//     meXYPosBlade_ = theDMBE->book2D("xypos_" + hid,"XY Position",100,-1.,1,100,-4,4);
//     meXYPosBlade_->setAxisTitle("X Position",1);
//     meXYPosBlade_->setAxisTitle("Y Position",2);

    meClustXBlade_ = theDMBE->book1D("ClustX_" +hid, "RecHit X size", 10, 0., 10.);
    meClustXBlade_->setAxisTitle("RecHit size X dimension", 1);
    meClustYBlade_ = theDMBE->book1D("ClustY_" +hid,"RecHit Y size", 15, 0.,15.);
    meClustYBlade_->setAxisTitle("RecHit size Y dimension", 1);
    meErrorXBlade_ = theDMBE->book1D("ErrorX_"+hid, "RecHit error X", 100,0.,0.02);
    meErrorXBlade_->setAxisTitle("RecHit error X", 1);
    meErrorYBlade_ = theDMBE->book1D("ErrorY_"+hid, "RecHit error Y", 100,0.,0.02);
    meErrorYBlade_->setAxisTitle("RecHit error Y", 1);
    menRecHitsBlade_ = theDMBE->book1D("nRecHits_"+hid, "# of rechits in this module", 8, 0, 8);
    menRecHitsBlade_->setAxisTitle("number of rechits",1);

  }
  if(type==5 && endcap){
    uint32_t disk = PixelEndcapName(DetId(id_)).diskName();
    
    char sdisk[80]; sprintf(sdisk, "Disk_%i",disk);
    hid = src.label() + "_" + sdisk;
//     meXYPosDisk_ = theDMBE->book2D("xypos_" + hid,"XY Position",100,-1.,1,100,-4,4);
//     meXYPosDisk_->setAxisTitle("X Position",1);
//     meXYPosDisk_->setAxisTitle("Y Position",2);

    meClustXDisk_ = theDMBE->book1D("ClustX_" +hid, "RecHit X size", 10, 0., 10.);
    meClustXDisk_->setAxisTitle("RecHit size X dimension", 1);
    meClustYDisk_ = theDMBE->book1D("ClustY_" +hid,"RecHit Y size", 15, 0.,15.);
    meClustYDisk_->setAxisTitle("RecHit size Y dimension", 1);
    meErrorXDisk_ = theDMBE->book1D("ErrorX_"+hid, "RecHit error X", 100,0.,0.02);
    meErrorXDisk_->setAxisTitle("RecHit error X", 1);
    meErrorYDisk_ = theDMBE->book1D("ErrorY_"+hid, "RecHit error Y", 100,0.,0.02);
    meErrorYDisk_->setAxisTitle("RecHit error Y", 1);
    menRecHitsDisk_ = theDMBE->book1D("nRecHits_"+hid, "# of rechits in this module", 8, 0, 8);
    menRecHitsDisk_->setAxisTitle("number of rechits",1);

  }

  if(type==6 && endcap){
    uint32_t panel= PixelEndcapName(DetId(id_)).pannelName();
    uint32_t module= PixelEndcapName(DetId(id_)).plaquetteName();
    char slab[80]; sprintf(slab, "Panel_%i_Ring_%i",panel, module);
    hid = src.label() + "_" + slab;
    
        if(!reducedSet)
        {
    if(twoD){
      meXYPosRing_ = theDMBE->book2D("xypos_" + hid,"XY Position",100,-1.,1,100,-4,4);
      meXYPosRing_->setAxisTitle("X Position",1);
      meXYPosRing_->setAxisTitle("Y Position",2);
    }
    else{
      // projections of XYPosition
      meXYPosRing_px_ = theDMBE->book1D("xypos_"+hid+"_px","X Position",100,-1.,1);
      meXYPosRing_px_->setAxisTitle("X Position",1);
      meXYPosRing_py_ = theDMBE->book1D("xypos_"+hid+"_py","Y Position",100,-4,4);
      meXYPosRing_py_->setAxisTitle("Y Position",1);
    }
        }
    meClustXRing_ = theDMBE->book1D("ClustX_" +hid, "RecHit X size", 10, 0., 10.);
    meClustXRing_->setAxisTitle("RecHit size X dimension", 1);
    meClustYRing_ = theDMBE->book1D("ClustY_" +hid,"RecHit Y size", 15, 0.,15.);
    meClustYRing_->setAxisTitle("RecHit size Y dimension", 1);
    meErrorXRing_ = theDMBE->book1D("ErrorX_"+hid, "RecHit error X", 100,0.,0.02);
    meErrorXRing_->setAxisTitle("RecHit error X", 1);
    meErrorYRing_ = theDMBE->book1D("ErrorY_"+hid, "RecHit error Y", 100,0.,0.02);
    meErrorYRing_->setAxisTitle("RecHit error Y", 1);
    menRecHitsRing_ = theDMBE->book1D("nRecHits_"+hid, "# of rechits in this module", 8, 0, 8);
    menRecHitsRing_->setAxisTitle("number of rechits",1);

  }

}
void SiPixelRecHitModule::fill ( const float &  rechit_x,
const float &  rechit_y,
const int &  sizeX,
const int &  sizeY,
const float &  lerr_x,
const float &  lerr_y,
bool  modon = true,
bool  ladon = false,
bool  layon = false,
bool  phion = false,
bool  bladeon = false,
bool  diskon = false,
bool  ringon = false,
bool  twoD = true,
bool  reducedSet = false 
)

Fill histograms.

Definition at line 276 of file SiPixelRecHitModule.cc.

References Reference_intrackfit_cff::barrel, Reference_intrackfit_cff::endcap, MonitorElement::Fill(), id_, meClustX_, meClustXBlade_, meClustXDisk_, meClustXLad_, meClustXLay_, meClustXPhi_, meClustXRing_, meClustY_, meClustYBlade_, meClustYDisk_, meClustYLad_, meClustYLay_, meClustYPhi_, meClustYRing_, meErrorX_, meErrorXBlade_, meErrorXDisk_, meErrorXLad_, meErrorXLay_, meErrorXPhi_, meErrorXRing_, meErrorY_, meErrorYBlade_, meErrorYDisk_, meErrorYLad_, meErrorYLay_, meErrorYPhi_, meErrorYRing_, meXYPos_, meXYPos_px_, meXYPos_py_, meXYPosLad_, meXYPosLad_px_, meXYPosLad_py_, meXYPosLay_, meXYPosLay_px_, meXYPosLay_py_, meXYPosPhi_, meXYPosPhi_px_, meXYPosPhi_py_, meXYPosRing_, meXYPosRing_px_, meXYPosRing_py_, GeomDetEnumerators::PixelBarrel, GeomDetEnumerators::PixelEndcap, and DetId::subdetId().

                                                           {

  bool barrel = DetId(id_).subdetId() == static_cast<int>(PixelSubdetector::PixelBarrel);
  bool endcap = DetId(id_).subdetId() == static_cast<int>(PixelSubdetector::PixelEndcap);

  //std::cout << rechit_x << " " << rechit_y << " " << sizeX << " " << sizeY << std::endl;
  if(modon){
    meClustX_->Fill(sizeX);
    meClustY_->Fill(sizeY);
    meErrorX_->Fill(lerr_x);
    meErrorY_->Fill(lerr_y);  
        if(!reducedSet)
        {
    if(twoD) meXYPos_->Fill(rechit_x, rechit_y);
    else {
      meXYPos_px_->Fill(rechit_x); 
      meXYPos_py_->Fill(rechit_y);
    }
        }
  }
  //std::cout<<"number of detector units="<<numberOfDetUnits<<std::endl;

  if(ladon && barrel){
    meClustXLad_->Fill(sizeX);
    meClustYLad_->Fill(sizeY);
    meErrorXLad_->Fill(lerr_x);
    meErrorYLad_->Fill(lerr_y);  
        if(!reducedSet)
        {
    if(twoD) meXYPosLad_->Fill(rechit_x, rechit_y);
    else{
      meXYPosLad_px_->Fill(rechit_x); 
      meXYPosLad_py_->Fill(rechit_y);
    }
        }
  }

  if(layon && barrel){
    meClustXLay_->Fill(sizeX);
    meClustYLay_->Fill(sizeY);
    meErrorXLay_->Fill(lerr_x);
    meErrorYLay_->Fill(lerr_y); 
        if(!reducedSet)
        {
    if(twoD) meXYPosLay_->Fill(rechit_x, rechit_y);
    else{
      meXYPosLay_px_->Fill(rechit_x); 
      meXYPosLay_py_->Fill(rechit_y);
    }
        }
  }

  if(phion && barrel){
    meClustXPhi_->Fill(sizeX);
    meClustYPhi_->Fill(sizeY);
    meErrorXPhi_->Fill(lerr_x);
    meErrorYPhi_->Fill(lerr_y); 
    if(!reducedSet)
        {
    if(twoD) meXYPosPhi_->Fill(rechit_x, rechit_y);
    else{
      meXYPosPhi_px_->Fill(rechit_x); 
      meXYPosPhi_py_->Fill(rechit_y);
    }
        }       
  }

  if(bladeon && endcap){
    //meXYPosBlade_->Fill(rechit_x, rechit_y);
    meClustXBlade_->Fill(sizeX);
    meClustYBlade_->Fill(sizeY);
    meErrorXBlade_->Fill(lerr_x);
    meErrorYBlade_->Fill(lerr_y); 
  }

  if(diskon && endcap){
    //meXYPosDisk_->Fill(rechit_x, rechit_y);
    meClustXDisk_->Fill(sizeX);
    meClustYDisk_->Fill(sizeY);
    meErrorXDisk_->Fill(lerr_x);
    meErrorYDisk_->Fill(lerr_y); 
  }

  if(ringon && endcap){
    meClustXRing_->Fill(sizeX);
    meClustYRing_->Fill(sizeY);
    meErrorXRing_->Fill(lerr_x);
    meErrorYRing_->Fill(lerr_y); 
        if(!reducedSet)
        {
    if(twoD) meXYPosRing_->Fill(rechit_x, rechit_y);
    else{
      meXYPosRing_px_->Fill(rechit_x); 
      meXYPosRing_py_->Fill(rechit_y);
    }
        }       
  }
}
void SiPixelRecHitModule::nfill ( const int &  nrec,
bool  modon = true,
bool  ladon = false,
bool  layon = false,
bool  phion = false,
bool  bladeon = false,
bool  diskon = false,
bool  ringon = false 
)

Definition at line 380 of file SiPixelRecHitModule.cc.

References Reference_intrackfit_cff::barrel, Reference_intrackfit_cff::endcap, MonitorElement::Fill(), id_, menRecHitsBlade_, menRecHitsDisk_, menRecHitsLad_, menRecHitsLay_, menRecHitsPhi_, menRecHitsRing_, GeomDetEnumerators::PixelBarrel, GeomDetEnumerators::PixelEndcap, and DetId::subdetId().

                                                                                                                                       {
  
  bool barrel = DetId(id_).subdetId() == static_cast<int>(PixelSubdetector::PixelBarrel);
  bool endcap = DetId(id_).subdetId() == static_cast<int>(PixelSubdetector::PixelEndcap);

  //if(modon) menRecHits_->Fill(nrec);
  //barrel
  if(ladon && barrel) menRecHitsLad_->Fill(nrec);
  if(layon && barrel) menRecHitsLay_->Fill(nrec);
  if(phion && barrel) menRecHitsPhi_->Fill(nrec);
  //endcap
  if(bladeon && endcap) menRecHitsBlade_->Fill(nrec);
  if(diskon && endcap) menRecHitsDisk_->Fill(nrec);
  if(ringon && endcap) menRecHitsRing_->Fill(nrec);
}

Member Data Documentation

uint32_t SiPixelRecHitModule::id_ [private]

Definition at line 62 of file SiPixelRecHitModule.h.

Referenced by book(), fill(), and nfill().

Definition at line 66 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

Definition at line 100 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

Definition at line 106 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

Definition at line 75 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

Definition at line 84 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

Definition at line 93 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

Definition at line 115 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

Definition at line 67 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

Definition at line 101 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

Definition at line 107 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

Definition at line 76 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

Definition at line 85 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

Definition at line 94 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

Definition at line 116 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

Definition at line 68 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

Definition at line 102 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

Definition at line 108 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

Definition at line 77 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

Definition at line 86 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

Definition at line 95 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

Definition at line 117 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

Definition at line 69 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

Definition at line 103 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

Definition at line 109 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

Definition at line 78 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

Definition at line 87 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

Definition at line 96 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

Definition at line 118 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

Definition at line 70 of file SiPixelRecHitModule.h.

Definition at line 104 of file SiPixelRecHitModule.h.

Referenced by book(), and nfill().

Definition at line 110 of file SiPixelRecHitModule.h.

Referenced by book(), and nfill().

Definition at line 79 of file SiPixelRecHitModule.h.

Referenced by book(), and nfill().

Definition at line 88 of file SiPixelRecHitModule.h.

Referenced by book(), and nfill().

Definition at line 97 of file SiPixelRecHitModule.h.

Referenced by book(), and nfill().

Definition at line 119 of file SiPixelRecHitModule.h.

Referenced by book(), and nfill().

Definition at line 63 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

Definition at line 64 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

Definition at line 65 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

Definition at line 72 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

Definition at line 73 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

Definition at line 74 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

Definition at line 81 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

Definition at line 82 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

Definition at line 83 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

Definition at line 90 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

Definition at line 91 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

Definition at line 92 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

Definition at line 112 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

Definition at line 113 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().

Definition at line 114 of file SiPixelRecHitModule.h.

Referenced by book(), and fill().