|
|
Go to the documentation of this file.
55 bool isHalfModule =
false;
105 delete theHistogramId;
112 sprintf(sladder,
"Ladder_%02i", DBladder);
113 hisID =
src.label() +
"_" + sladder;
131 iBooker.
book1D(
"efficiencyAlpha_" + hisID,
"Hit efficiency in Alpha", nbinangle, -3.5, 3.5);
142 meValidXLad_ = iBooker.
book1D(
"validX_" + hisID,
"# Valid hits in X", nbinX, -1.5, 1.5);
145 meValidYLad_ = iBooker.
book1D(
"validY_" + hisID,
"# Valid hits in Y", nbinY, -4., 4.);
154 meValidBetaLad_ = iBooker.
book1D(
"validBeta_" + hisID,
"# Valid hits in Beta", nbinangle, -3.5, 3.5);
181 sprintf(slayer,
"Layer_%i", DBlayer);
182 hisID =
src.label() +
"_" + slayer;
196 iBooker.
book1D(
"efficiencyAlpha_" + hisID,
"Hit efficiency in Alpha", nbinangle, -3.5, 3.5);
207 meValidXLay_ = iBooker.
book1D(
"validX_" + hisID,
"# Valid hits in X", nbinX, -1.5, 1.5);
210 meValidYLay_ = iBooker.
book1D(
"validY_" + hisID,
"# Valid hits in Y", nbinY, -4., 4.);
216 meValidBetaLay_ = iBooker.
book1D(
"validBeta_" + hisID,
"# Valid hits in Beta", nbinangle, -3.5, 3.5);
240 sprintf(smodule,
"Ring_%i", DBmodule);
241 hisID =
src.label() +
"_" + smodule;
255 iBooker.
book1D(
"efficiencyAlpha_" + hisID,
"Hit efficiency in Alpha", nbinangle, -3.5, 3.5);
266 meValidXPhi_ = iBooker.
book1D(
"validX_" + hisID,
"# Valid hits in X", nbinX, -1.5, 1.5);
269 meValidYPhi_ = iBooker.
book1D(
"validY_" + hisID,
"# Valid hits in Y", nbinY, -4., 4.);
275 meValidBetaPhi_ = iBooker.
book1D(
"validBeta_" + hisID,
"# Valid hits in Beta", nbinangle, -3.5, 3.5);
300 sprintf(sblade,
"Blade_%02i", blade);
301 hisID =
src.label() +
"_" + sblade;
315 iBooker.
book1D(
"efficiencyAlpha_" + hisID,
"Hit efficiency in Alpha", nbinangle, -3.5, 3.5);
319 iBooker.
book1D(
"efficiencyBeta_" + hisID,
"Hit efficiency in Beta", nbinangle, -3.5, 3.5);
361 sprintf(sdisk,
"Disk_%i", disk);
362 hisID =
src.label() +
"_" + sdisk;
376 iBooker.
book1D(
"efficiencyAlpha_" + hisID,
"Hit efficiency in Alpha", nbinangle, -3.5, 3.5);
423 sprintf(slab,
"Panel_%i_Ring_%i", panel,
module);
424 hisID =
src.label() +
"_" + slab;
438 iBooker.
book1D(
"efficiencyAlpha_" + hisID,
"Hit efficiency in Alpha", nbinangle, -3.5, 3.5);
493 float prediction_alpha = atan2(localDir.
z(), localDir.
x());
494 float prediction_beta = atan2(localDir.
z(), localDir.
y());
604 bool modon,
bool ladon,
bool layon,
bool phion,
bool bladeon,
bool diskon,
bool ringon) {
606 std::cout <<
"Now Filling histos for detid " <<
id_ << std::endl;
785 if (nValid + nMissing != 0) {
MonitorElement * meEfficiencyYPhi_
MonitorElement * meValidPhi_
MonitorElement * meMissingBetaBlade_
MonitorElement * meMissingRing_
MonitorElement * meMissingPhi_
T const * product() const
MonitorElement * meValidAlphaPhi_
MonitorElement * meValidYLad_
MonitorElement * meValidYBlade_
MonitorElement * meValidXRing_
void computeEfficiencies(bool modon=true, bool ladon=true, bool layon=true, bool phion=true, bool bladeon=true, bool diskon=true, bool ringon=true)
MonitorElement * meEfficiencyYLad_
MonitorElement * meValidYPhi_
MonitorElement * meEfficiency_
MonitorElement * meMissingXBlade_
MonitorElement * meEfficiencyLad_
MonitorElement * meEfficiencyAlpha_
MonitorElement * meEfficiencyLay_
MonitorElement * meValidXLay_
MonitorElement * meEfficiencyBetaDisk_
MonitorElement * meMissingYLad_
MonitorElement * meValidLay_
MonitorElement * meEfficiencyPhi_
MonitorElement * meEfficiencyAlphaBlade_
MonitorElement * meMissingBetaRing_
MonitorElement * meEfficiencyBetaPhi_
T getUntrackedParameter(std::string const &, T const &) const
MonitorElement * meValidAlphaRing_
MonitorElement * meMissingYPhi_
MonitorElement * meMissing_
int layerName() const
layer id
MonitorElement * meMissingAlphaRing_
MonitorElement * meEfficiencyYDisk_
int pannelName() const
pannel id
int bladeName() const
blade id
MonitorElement * meValidModLad_
MonitorElement * meValidXBlade_
MonitorElement * meEfficiencyXDisk_
MonitorElement * meValidBetaBlade_
MonitorElement * meEfficiencyAlphaDisk_
SiPixelHitEfficiencyModule()
MonitorElement * meValidBetaPhi_
LocalPoint position() const
Local x and y position coordinates.
MonitorElement * meMissingBetaDisk_
std::string setHistoId(std::string variable, uint32_t &rawId)
Set Histogram Id.
MonitorElement * meMissingYLay_
MonitorElement * meEfficiencyXLay_
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_
MonitorElement * meEfficiencyAlphaLay_
MonitorElement * meEfficiencyX_
MonitorElement * meMissingLay_
int ladderName() const
ladder id (index in phi)
MonitorElement * meEfficiencyXLad_
MonitorElement * meValidDisk_
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum)
void book(const edm::ParameterSet &, edm::EventSetup const &, DQMStore::IBooker &, int type=0, bool isUpgrade=false)
MonitorElement * meMissingXLay_
MonitorElement * meMissingYBlade_
MonitorElement * meMissingModLad_
MonitorElement * meEfficiencyYRing_
MonitorElement * meEfficiencyXBlade_
MonitorElement * meValidYDisk_
MonitorElement * meEfficiencyAlphaRing_
MonitorElement * meEfficiencyXPhi_
MonitorElement * meMissingDisk_
MonitorElement * meMissingXRing_
MonitorElement * meMissingXDisk_
MonitorElement * meMissingAlphaDisk_
MonitorElement * meEfficiencyAlphaPhi_
MonitorElement * meValidAlphaDisk_
MonitorElement * meValidYRing_
MonitorElement * meValidBetaLay_
int moduleName() const
module id (index in z)
MonitorElement * meValidXLad_
MonitorElement * meEfficiencyXRing_
MonitorElement * meEfficiencyYBlade_
MonitorElement * meEfficiencyDisk_
MonitorElement * meValidXPhi_
T getParameter(std::string const &) const
MonitorElement * meValidAlphaLad_
MonitorElement * meEfficiencyRing_
MonitorElement * meEfficiencyBetaLay_
virtual void setBinContent(int binx, double content)
set content of bin (1-D)
MonitorElement * meMissingLad_
MonitorElement * meMissingXLad_
MonitorElement * meMissingBlade_
int diskName() const
disk id
MonitorElement * meMissingAlphaLay_
MonitorElement * meMissingAlphaBlade_
MonitorElement * meValidBetaRing_
LocalVector momentum() const
Momentum vector in the local frame.
MonitorElement * meValidAlphaBlade_
virtual int getNbinsX() const
get # of bins in X-axis
MonitorElement * meMissingBetaLay_
MonitorElement * meValid_
MonitorElement * meValidRing_
MonitorElement * meMissingYRing_
virtual void setBinError(int binx, double error)
set uncertainty on content of bin (1-D)
MonitorElement * meEfficiencyYLay_
~SiPixelHitEfficiencyModule()
MonitorElement * meValidLad_
MonitorElement * meEfficiencyAlphaLad_
MonitorElement * meMissingBetaLad_
MonitorElement * meEfficiencyY_
int plaquetteName() const
plaquetteId (in pannel)
MonitorElement * meMissingAlphaPhi_
std::pair< double, double > eff(double nValid, double nMissing)
MonitorElement * meValidAlphaLay_
MonitorElement * meValidBetaLad_
MonitorElement * meEfficiencyBeta_
MonitorElement * meEfficiencyBetaLad_
MonitorElement * meEfficiencyBetaBlade_
MonitorElement * meValidBetaDisk_
MonitorElement * meMissingAlphaLad_
bool isHalfModule() const
full or half module
virtual void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)
virtual double getBinContent(int binx) const
get content of bin (1-D)
MonitorElement * meEfficiencyBetaRing_
MonitorElement * meMissingXPhi_
MonitorElement * meEfficiencyBlade_
MonitorElement * meMissingBetaPhi_
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
MonitorElement * meValidBlade_
MonitorElement * meValidYLay_
MonitorElement * meValidXDisk_