65 bool isHalfModule =
false;
82 if(updateEfficiencies){
115 delete theHistogramId;
118 if(type==1 && barrel){
121 char sladder[80]; sprintf(sladder,
"Ladder_%02i",DBladder);
122 hisID = src.
label() +
"_" + sladder;
123 if(isHalfModule) hisID +=
"H";
126 if(updateEfficiencies){
183 if(type==2 && barrel){
186 char slayer[80]; sprintf(slayer,
"Layer_%i",DBlayer);
187 hisID = src.
label() +
"_" + slayer;
190 if(updateEfficiencies){
241 if(type==3 && barrel){
244 char smodule[80]; sprintf(smodule,
"Ring_%i",DBmodule);
245 hisID = src.
label() +
"_" + smodule;
247 if(updateEfficiencies){
298 if(type==4 && endcap){
302 char sblade[80]; sprintf(sblade,
"Blade_%02i",blade);
303 hisID = src.
label() +
"_" + sblade;
305 if(updateEfficiencies){
356 if(type==5 && endcap){
360 char sdisk[80]; sprintf(sdisk,
"Disk_%i",disk);
361 hisID = src.
label() +
"_" + sdisk;
363 if(updateEfficiencies){
415 if(type==6 && endcap){
421 char slab[80]; sprintf(slab,
"Panel_%i_Ring_%i",panel, module);
422 hisID = src.
label() +
"_" + slab;
424 if(updateEfficiencies){
483 float prediction_alpha = atan2(localDir.
z(), localDir.
x());
484 float prediction_beta = atan2(localDir.
z(), localDir.
y());
516 if(endcap && bladeon){
523 if(endcap && diskon){
530 if(endcap && ringon){
564 if(endcap && bladeon){
571 if(endcap && diskon){
578 if(endcap && ringon){
594 std::cout<<
"Now Filling histos for detid "<<
id_<<std::endl;
665 if(bladeon && endcap){
685 if(diskon && endcap){
705 if(ringon && endcap){
730 if(nValid+nMissing!=0){
731 efficiency=nValid/(nValid+nMissing);
732 error=
sqrt(efficiency*(1.-efficiency)/(nValid+nMissing));
734 return make_pair(efficiency,
error);
int plaquetteName() const
plaquetteId (in pannel)
void book(const edm::ParameterSet &, edm::EventSetup const &, DQMStore::IBooker &, int type=0, bool isUpgrade=false)
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
MonitorElement * meMissingXBlade_
MonitorElement * meMissingYLad_
MonitorElement * meMissingDisk_
MonitorElement * meEfficiency_
MonitorElement * meMissingPhi_
void setBinContent(int binx, double content)
set content of bin (1-D)
MonitorElement * meMissingAlphaDisk_
MonitorElement * meMissingBetaRing_
MonitorElement * meEfficiencyYRing_
MonitorElement * meValidAlphaRing_
MonitorElement * meEfficiencyXLay_
int moduleName() const
module id (index in z)
MonitorElement * meEfficiencyYLad_
MonitorElement * meEfficiencyAlphaPhi_
MonitorElement * meEfficiencyPhi_
LocalPoint position() const
Local x and y position coordinates.
MonitorElement * meMissingXRing_
MonitorElement * meEfficiencyYBlade_
MonitorElement * meEfficiencyBetaBlade_
std::pair< double, double > eff(double nValid, double nMissing)
MonitorElement * meValidXLad_
MonitorElement * meValidAlphaBlade_
MonitorElement * meMissingAlphaBlade_
MonitorElement * meMissingYBlade_
MonitorElement * meEfficiencyXPhi_
MonitorElement * meEfficiencyBeta_
MonitorElement * meEfficiencyBetaLad_
MonitorElement * meValidModLad_
MonitorElement * meMissingYPhi_
MonitorElement * meEfficiencyBetaRing_
MonitorElement * meValidYLay_
MonitorElement * meEfficiencyBetaPhi_
MonitorElement * meMissingXLad_
MonitorElement * meValidDisk_
MonitorElement * meValid_
MonitorElement * meValidAlphaLay_
MonitorElement * meMissingRing_
MonitorElement * meEfficiencyYLay_
MonitorElement * meEfficiencyAlphaLay_
MonitorElement * meMissingAlphaPhi_
MonitorElement * meEfficiencyAlphaBlade_
MonitorElement * meValidYLad_
MonitorElement * meEfficiencyDisk_
MonitorElement * meValidXPhi_
int bladeName() const
blade id
MonitorElement * meValidBetaLad_
MonitorElement * meMissingYRing_
MonitorElement * meMissingBetaLad_
MonitorElement * meValidAlphaPhi_
bool isHalfModule() const
full or half module
MonitorElement * meMissingAlphaRing_
MonitorElement * meMissingAlphaLay_
MonitorElement * meEfficiencyBlade_
MonitorElement * meValidAlphaDisk_
MonitorElement * meMissingBetaLay_
MonitorElement * meMissingBlade_
~SiPixelHitEfficiencyModule()
MonitorElement * book1D(Args &&...args)
MonitorElement * meValidRing_
unsigned int module() const
det id
MonitorElement * meMissingBetaBlade_
MonitorElement * meMissingLay_
MonitorElement * meMissing_
void setBinError(int binx, double error)
set uncertainty on content of bin (1-D)
MonitorElement * meValidXRing_
LocalVector momentum() const
Momentum vector in the local frame.
MonitorElement * meEfficiencyXBlade_
MonitorElement * meValidYDisk_
MonitorElement * meEfficiencyAlphaRing_
int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
MonitorElement * meEfficiencyYDisk_
MonitorElement * meMissingLad_
MonitorElement * meValidLad_
MonitorElement * meValidXBlade_
MonitorElement * meEfficiencyXDisk_
MonitorElement * meValidBetaDisk_
MonitorElement * meValidAlphaLad_
MonitorElement * meEfficiencyRing_
std::string setHistoId(std::string variable, uint32_t &rawId)
Set Histogram Id.
MonitorElement * meEfficiencyX_
MonitorElement * meValidYRing_
MonitorElement * meMissingYLay_
MonitorElement * meValidYBlade_
int ladderName() const
ladder id (index in phi)
MonitorElement * meMissingYDisk_
void computeEfficiencies(bool modon=true, bool ladon=true, bool layon=true, bool phion=true, bool bladeon=true, bool diskon=true, bool ringon=true)
MonitorElement * meValidBetaLay_
MonitorElement * meEfficiencyAlphaDisk_
int layerName() const
layer id
T const * product() const
MonitorElement * meEfficiencyLay_
MonitorElement * meValidPhi_
MonitorElement * meEfficiencyBetaDisk_
MonitorElement * meEfficiencyXRing_
MonitorElement * meEfficiencyLad_
MonitorElement * meValidBetaRing_
MonitorElement * meEfficiencyXLad_
double getBinContent(int binx) const
get content of bin (1-D)
MonitorElement * meValidXLay_
MonitorElement * meValidYPhi_
MonitorElement * meValidLay_
MonitorElement * meMissingXLay_
MonitorElement * meEfficiencyY_
void fill(const LocalTrajectoryParameters <p, bool isHitValid, bool modon=true, bool ladon=true, bool layon=true, bool phion=true, bool bladeon=true, bool diskon=true, bool ringon=true)
MonitorElement * meEfficiencyAlpha_
int pannelName() const
pannel id
MonitorElement * meEfficiencyAlphaLad_
int getNbinsX(void) const
get # of bins in X-axis
MonitorElement * meEfficiencyYPhi_
MonitorElement * meMissingBetaDisk_
SiPixelHitEfficiencyModule()
MonitorElement * meValidBetaPhi_
MonitorElement * meMissingModLad_
int diskName() const
disk id
MonitorElement * meMissingXDisk_
MonitorElement * meValidBetaBlade_
MonitorElement * meEfficiencyBetaLay_
MonitorElement * meValidXDisk_
MonitorElement * meMissingBetaPhi_
void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)
MonitorElement * meMissingXPhi_
MonitorElement * meValidBlade_
MonitorElement * meMissingAlphaLad_