44 bool isHalfModule =
false;
94 delete theHistogramId;
101 sprintf(sladder,
"Ladder_%02i", DBladder);
102 hisID =
src.label() +
"_" + sladder;
120 iBooker.
book1D(
"efficiencyAlpha_" + hisID,
"Hit efficiency in Alpha", nbinangle, -3.5, 3.5);
131 meValidXLad_ = iBooker.
book1D(
"validX_" + hisID,
"# Valid hits in X", nbinX, -1.5, 1.5);
134 meValidYLad_ = iBooker.
book1D(
"validY_" + hisID,
"# Valid hits in Y", nbinY, -4., 4.);
143 meValidBetaLad_ = iBooker.
book1D(
"validBeta_" + hisID,
"# Valid hits in Beta", nbinangle, -3.5, 3.5);
170 sprintf(slayer,
"Layer_%i", DBlayer);
171 hisID =
src.label() +
"_" + slayer;
185 iBooker.
book1D(
"efficiencyAlpha_" + hisID,
"Hit efficiency in Alpha", nbinangle, -3.5, 3.5);
196 meValidXLay_ = iBooker.
book1D(
"validX_" + hisID,
"# Valid hits in X", nbinX, -1.5, 1.5);
199 meValidYLay_ = iBooker.
book1D(
"validY_" + hisID,
"# Valid hits in Y", nbinY, -4., 4.);
205 meValidBetaLay_ = iBooker.
book1D(
"validBeta_" + hisID,
"# Valid hits in Beta", nbinangle, -3.5, 3.5);
229 sprintf(smodule,
"Ring_%i", DBmodule);
230 hisID =
src.label() +
"_" + smodule;
244 iBooker.
book1D(
"efficiencyAlpha_" + hisID,
"Hit efficiency in Alpha", nbinangle, -3.5, 3.5);
255 meValidXPhi_ = iBooker.
book1D(
"validX_" + hisID,
"# Valid hits in X", nbinX, -1.5, 1.5);
258 meValidYPhi_ = iBooker.
book1D(
"validY_" + hisID,
"# Valid hits in Y", nbinY, -4., 4.);
264 meValidBetaPhi_ = iBooker.
book1D(
"validBeta_" + hisID,
"# Valid hits in Beta", nbinangle, -3.5, 3.5);
289 sprintf(sblade,
"Blade_%02i", blade);
290 hisID =
src.label() +
"_" + sblade;
304 iBooker.
book1D(
"efficiencyAlpha_" + hisID,
"Hit efficiency in Alpha", nbinangle, -3.5, 3.5);
308 iBooker.
book1D(
"efficiencyBeta_" + hisID,
"Hit efficiency in Beta", nbinangle, -3.5, 3.5);
350 sprintf(sdisk,
"Disk_%i", disk);
351 hisID =
src.label() +
"_" + sdisk;
365 iBooker.
book1D(
"efficiencyAlpha_" + hisID,
"Hit efficiency in Alpha", nbinangle, -3.5, 3.5);
412 sprintf(slab,
"Panel_%i_Ring_%i", panel,
module);
413 hisID =
src.label() +
"_" + slab;
427 iBooker.
book1D(
"efficiencyAlpha_" + hisID,
"Hit efficiency in Alpha", nbinangle, -3.5, 3.5);
482 float prediction_alpha = atan2(localDir.
z(), localDir.
x());
483 float prediction_beta = atan2(localDir.
z(), localDir.
y());
593 bool modon,
bool ladon,
bool layon,
bool phion,
bool bladeon,
bool diskon,
bool ringon) {
595 std::cout <<
"Now Filling histos for detid " <<
id_ << std::endl;
774 if (nValid + nMissing != 0) {
MonitorElement * meMissingXBlade_
MonitorElement * meMissingYLad_
MonitorElement * meMissingDisk_
T getParameter(std::string const &) const
MonitorElement * meEfficiency_
MonitorElement * meMissingPhi_
MonitorElement * meMissingAlphaDisk_
MonitorElement * meMissingBetaRing_
MonitorElement * meEfficiencyYRing_
MonitorElement * meValidAlphaRing_
MonitorElement * meEfficiencyXLay_
MonitorElement * meEfficiencyYLad_
MonitorElement * meEfficiencyAlphaPhi_
MonitorElement * meEfficiencyPhi_
MonitorElement * meMissingXRing_
MonitorElement * meEfficiencyYBlade_
int bladeName() const
blade id
int moduleName() const
module id (index in z)
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_
T getUntrackedParameter(std::string const &, T const &) const
MonitorElement * meValidYLad_
MonitorElement * meEfficiencyDisk_
MonitorElement * meValidXPhi_
MonitorElement * meValidBetaLad_
MonitorElement * meMissingYRing_
MonitorElement * meMissingBetaLad_
MonitorElement * meValidAlphaPhi_
bool isHalfModule() const
full or half module
int diskName() const
disk id
MonitorElement * meMissingAlphaRing_
MonitorElement * meMissingAlphaLay_
MonitorElement * meEfficiencyBlade_
void book(const edm::ParameterSet &, const TrackerTopology *, DQMStore::IBooker &, int type=0, bool isUpgrade=false)
LocalVector momentum() const
Momentum vector in the local frame.
MonitorElement * meValidAlphaDisk_
MonitorElement * meMissingBetaLay_
MonitorElement * meMissingBlade_
~SiPixelHitEfficiencyModule()
MonitorElement * meValidRing_
MonitorElement * meMissingBetaBlade_
MonitorElement * meMissingLay_
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
MonitorElement * meMissing_
MonitorElement * meValidXRing_
MonitorElement * meEfficiencyXBlade_
MonitorElement * meValidYDisk_
MonitorElement * meEfficiencyAlphaRing_
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_
void fill(const TrackerTopology *pTT, 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 * meMissingYDisk_
void computeEfficiencies(bool modon=true, bool ladon=true, bool layon=true, bool phion=true, bool bladeon=true, bool diskon=true, bool ringon=true)
virtual void setBinContent(int binx, double content)
set content of bin (1-D)
MonitorElement * meValidBetaLay_
MonitorElement * meEfficiencyAlphaDisk_
int layerName() const
layer id
MonitorElement * meEfficiencyLay_
MonitorElement * meValidPhi_
MonitorElement * meEfficiencyBetaDisk_
MonitorElement * meEfficiencyXRing_
MonitorElement * meEfficiencyLad_
MonitorElement * meValidBetaRing_
MonitorElement * meEfficiencyXLad_
MonitorElement * meValidXLay_
MonitorElement * meValidYPhi_
MonitorElement * meValidLay_
MonitorElement * meMissingXLay_
MonitorElement * meEfficiencyY_
MonitorElement * meEfficiencyAlpha_
MonitorElement * meEfficiencyAlphaLad_
MonitorElement * meEfficiencyYPhi_
int ladderName() const
ladder id (index in phi)
MonitorElement * meMissingBetaDisk_
SiPixelHitEfficiencyModule()
virtual int getNbinsX() const
get # of bins in X-axis
MonitorElement * meValidBetaPhi_
MonitorElement * meMissingModLad_
MonitorElement * meMissingXDisk_
virtual void setBinError(int binx, double error)
set uncertainty on content of bin (1-D)
MonitorElement * meValidBetaBlade_
MonitorElement * meEfficiencyBetaLay_
MonitorElement * meValidXDisk_
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
MonitorElement * meMissingBetaPhi_
LocalPoint position() const
Local x and y position coordinates.
int pannelName() const
pannel id
MonitorElement * meMissingXPhi_
MonitorElement * meValidBlade_
MonitorElement * meMissingAlphaLad_
virtual double getBinContent(int binx) const
get content of bin (1-D)
virtual void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)
int plaquetteName() const
plaquetteId (in pannel)