44 bool isHalfModule =
false;
55 meResidualX_ = iBooker.
book1D(hisID,
"Hit-to-Track Residual in r-phi", 100, -150, 150);
73 hisID = theHistogramId->
setHistoId(
"nclusters_OffTrack",
id_);
102 delete theHistogramId;
105 if (type == 1 && barrel) {
109 sprintf(sladder,
"Ladder_%02i", DBladder);
110 hisID = src.
label() +
"_" + sladder;
115 meResidualXLad_ = iBooker.
book1D(
"residualX_" + hisID,
"Hit-to-Track Residual in r-phi", 100, -150, 150);
117 meResidualYLad_ = iBooker.
book1D(
"residualY_" + hisID,
"Hit-to-Track Residual in Z", 100, -300, 300);
121 iBooker.
book1D(
"nclusters_OnTrack_" + hisID,
"Number of Clusters (on Track)", 10, 0., 10.);
125 iBooker.
book1D(
"charge_OnTrack_" + hisID,
"Normalized Cluster charge (on Track)", 100, 0., 200.);
132 iBooker.
book1D(
"nclusters_OffTrack_" + hisID,
"Number of Clusters (off Track)", 35, 0., 35.);
143 iBooker.
book1D(
"sizeX_OffTrack_" + hisID,
"Cluster x-width (rows) (off Track)", 10, 0., 10.);
147 iBooker.
book1D(
"sizeY_OffTrack_" + hisID,
"Cluster y-width (columns) (off Track)", 15, 0., 15.);
154 iBooker.
book1D(
"sizeY_OnTrack_" + hisID,
"Cluster y-width (columns) (on Track)", 15, 0., 15.);
159 if (type == 2 && barrel) {
163 sprintf(slayer,
"Layer_%i", DBlayer);
164 hisID = src.
label() +
"_" + slayer;
165 meResidualXLay_ = iBooker.
book1D(
"residualX_" + hisID,
"Hit-to-Track Residual in r-phi", 100, -150, 150);
167 meResidualYLay_ = iBooker.
book1D(
"residualY_" + hisID,
"Hit-to-Track Residual in Z", 100, -300, 300);
171 iBooker.
book1D(
"nclusters_OnTrack_" + hisID,
"Number of Clusters (on Track)", 10, 0., 10.);
175 iBooker.
book1D(
"charge_OnTrack_" + hisID,
"Normalized Cluster charge (on Track)", 100, 0., 200.);
182 iBooker.
book1D(
"nclusters_OffTrack_" + hisID,
"Number of Clusters (off Track)", 35, 0., 35.);
196 iBooker.
book1D(
"sizeY_OnTrack_" + hisID,
"Cluster y-width (columns) (on Track)", 15, 0., 15.);
200 iBooker.
book1D(
"sizeX_OffTrack_" + hisID,
"Cluster x-width (rows) (off Track)", 10, 0., 10.);
204 iBooker.
book1D(
"sizeY_OffTrack_" + hisID,
"Cluster y-width (columns) (off Track)", 15, 0., 15.);
209 if (type == 3 && barrel) {
213 sprintf(smodule,
"Ring_%i", DBmodule);
214 hisID = src.
label() +
"_" + smodule;
215 meResidualXPhi_ = iBooker.
book1D(
"residualX_" + hisID,
"Hit-to-Track Residual in r-phi", 100, -150, 150);
217 meResidualYPhi_ = iBooker.
book1D(
"residualY_" + hisID,
"Hit-to-Track Residual in Z", 100, -300, 300);
221 iBooker.
book1D(
"nclusters_OnTrack_" + hisID,
"Number of Clusters (on Track)", 10, 0., 10.);
225 iBooker.
book1D(
"charge_OnTrack_" + hisID,
"Normalized Cluster charge (on Track)", 100, 0., 200.);
232 iBooker.
book1D(
"nclusters_OffTrack_" + hisID,
"Number of Clusters (off Track)", 35, 0., 35.);
246 iBooker.
book1D(
"sizeY_OnTrack_" + hisID,
"Cluster y-width (columns) (on Track)", 15, 0., 15.);
250 iBooker.
book1D(
"sizeX_OffTrack_" + hisID,
"Cluster x-width (rows) (off Track)", 10, 0., 10.);
254 iBooker.
book1D(
"sizeY_OffTrack_" + hisID,
"Cluster y-width (columns) (off Track)", 15, 0., 15.);
259 if (type == 4 && endcap) {
263 sprintf(sblade,
"Blade_%02i", blade);
264 hisID = src.
label() +
"_" + sblade;
271 iBooker.
book1D(
"nclusters_OnTrack_" + hisID,
"Number of Clusters (on Track)", 10, 0., 10.);
275 iBooker.
book1D(
"charge_OnTrack_" + hisID,
"Normalized Cluster charge (on Track)", 100, 0., 200.);
282 iBooker.
book1D(
"nclusters_OffTrack_" + hisID,
"Number of Clusters (off Track)", 35, 0., 35.);
293 iBooker.
book1D(
"sizeX_OnTrack_" + hisID,
"Cluster x-width (rows) (on Track)", 10, 0., 10.);
297 iBooker.
book1D(
"sizeY_OnTrack_" + hisID,
"Cluster y-width (columns) (on Track)", 15, 0., 15.);
301 iBooker.
book1D(
"sizeX_OffTrack_" + hisID,
"Cluster x-width (rows) (off Track)", 10, 0., 10.);
305 iBooker.
book1D(
"sizeY_OffTrack_" + hisID,
"Cluster y-width (columns) (off Track)", 15, 0., 15.);
310 if (type == 5 && endcap) {
315 sprintf(sdisk,
"Disk_%i", disk);
316 hisID = src.
label() +
"_" + sdisk;
317 meResidualXDisk_ = iBooker.
book1D(
"residualX_" + hisID,
"Hit-to-Track Residual in r-phi", 100, -150, 150);
323 iBooker.
book1D(
"nclusters_OnTrack_" + hisID,
"Number of Clusters (on Track)", 10, 0., 10.);
327 iBooker.
book1D(
"charge_OnTrack_" + hisID,
"Normalized Cluster charge (on Track)", 100, 0., 200.);
334 iBooker.
book1D(
"nclusters_OffTrack_" + hisID,
"Number of Clusters (off Track)", 35, 0., 35.);
348 iBooker.
book1D(
"sizeY_OnTrack_" + hisID,
"Cluster y-width (columns) (on Track)", 15, 0., 15.);
352 iBooker.
book1D(
"sizeX_OffTrack_" + hisID,
"Cluster x-width (rows) (off Track)", 10, 0., 10.);
356 iBooker.
book1D(
"sizeY_OffTrack_" + hisID,
"Cluster y-width (columns) (off Track)", 15, 0., 15.);
361 if (type == 6 && endcap) {
368 sprintf(slab,
"Panel_%i_Ring_%i", panel, module);
369 hisID = src.
label() +
"_" + slab;
370 meResidualXRing_ = iBooker.
book1D(
"residualX_" + hisID,
"Hit-to-Track Residual in r-phi", 100, -150, 150);
376 iBooker.
book1D(
"nclusters_OnTrack_" + hisID,
"Number of Clusters (on Track)", 10, 0., 10.);
380 iBooker.
book1D(
"charge_OnTrack_" + hisID,
"Normalized Cluster charge (on Track)", 100, 0., 200.);
387 iBooker.
book1D(
"nclusters_OffTrack_" + hisID,
"Number of Clusters (off Track)", 35, 0., 35.);
401 iBooker.
book1D(
"sizeY_OnTrack_" + hisID,
"Cluster y-width (columns) (on Track)", 15, 0., 15.);
405 iBooker.
book1D(
"sizeX_OffTrack_" + hisID,
"Cluster x-width (rows) (off Track)", 10, 0., 10.);
409 iBooker.
book1D(
"sizeY_OffTrack_" + hisID,
"Cluster y-width (columns) (off Track)", 15, 0., 15.);
432 if (ladon && barrel) {
437 if (layon && barrel) {
441 if (phion && barrel) {
446 if (bladeon && endcap) {
451 if (diskon && endcap) {
456 if (ringon && endcap) {
480 int sizeX = clust.
sizeX();
481 int sizeY = clust.
sizeY();
492 if (barrel && ladon) {
500 if (barrel && layon) {
508 if (barrel && phion) {
516 if (endcap && bladeon) {
524 if (endcap && diskon) {
532 if (endcap && ringon) {
551 if (barrel && ladon) {
559 if (barrel && layon) {
567 if (barrel && phion) {
575 if (endcap && bladeon) {
583 if (endcap && diskon) {
591 if (endcap && ringon) {
617 bool fillOff =
false;
627 if (ladon && barrel) {
634 if (layon && barrel) {
640 if (phion && barrel) {
646 if (bladeon && endcap) {
652 if (diskon && endcap) {
658 if (ringon && endcap) {
int plaquetteName() const
plaquetteId (in pannel)
MonitorElement * meResidualX_
MonitorElement * meSizeY_onTrackBlade_
MonitorElement * meSizeX_onTrack_
MonitorElement * meSizeY_offTrack_
MonitorElement * meCharge_onTrackDisk_
MonitorElement * meSizeY_offTrackLay_
MonitorElement * meSizeX_offTrackBlade_
int moduleName() const
module id (index in z)
MonitorElement * meSizeX_onTrackPhi_
MonitorElement * meNClusters_offTrackDisk_
MonitorElement * meSizeY_onTrackDisk_
MonitorElement * meSizeX_onTrackDisk_
MonitorElement * meSizeX_onTrackLad_
MonitorElement * meResidualXLad_
MonitorElement * meSize_offTrackLay_
MonitorElement * meNClusters_offTrackLay_
MonitorElement * meSizeY_onTrackRing_
MonitorElement * meNClusters_onTrackPhi_
MonitorElement * meSizeX_offTrack_
MonitorElement * meSizeY_onTrackLay_
MonitorElement * meNClusters_offTrackLad_
MonitorElement * meSizeY_onTrack_
MonitorElement * meResidualXPhi_
MonitorElement * meSizeX_offTrackLad_
MonitorElement * meSize_offTrackRing_
MonitorElement * meNClusters_offTrackPhi_
MonitorElement * meResidualXBlade_
MonitorElement * meSizeY_offTrackDisk_
int bladeName() const
blade id
MonitorElement * meNClusters_offTrack_
SiPixelTrackResidualModule()
MonitorElement * meNClusters_onTrackLay_
void nfill(int onTrack, int offTrack, bool reducedSet, bool modon, bool ladon, bool layon, bool phion, bool bladeon, bool diskon, bool ringon)
MonitorElement * meSizeX_offTrackPhi_
MonitorElement * meSizeX_offTrackLay_
bool isHalfModule() const
full or half module
MonitorElement * meNClusters_onTrackLad_
MonitorElement * meSize_onTrackRing_
void Fill(HcalDetId &id, double val, std::vector< TH2F > &depth)
void book(const edm::ParameterSet &, const TrackerTopology *, DQMStore::IBooker &, bool reducedSet=true, int type=0, bool isUpgrade=false)
MonitorElement * meResidualXDisk_
MonitorElement * meResidualYPhi_
MonitorElement * meCharge_onTrackLay_
MonitorElement * meNClusters_onTrackDisk_
MonitorElement * meSizeX_offTrackRing_
MonitorElement * meSizeY_offTrackLad_
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
MonitorElement * meSizeX_offTrackDisk_
MonitorElement * meCharge_offTrackLad_
MonitorElement * meCharge_onTrackLad_
MonitorElement * meSizeY_offTrackPhi_
MonitorElement * meNClusters_offTrackRing_
MonitorElement * meResidualYBlade_
MonitorElement * meCharge_offTrack_
MonitorElement * meCharge_offTrackLay_
MonitorElement * meResidualYRing_
MonitorElement * meCharge_onTrackBlade_
void fill(const Measurement2DVector &, bool reducedSet=true, bool modon=true, bool ladon=true, bool layon=true, bool phion=true, bool bladeon=true, bool diskon=true, bool ringon=true)
MonitorElement * meSizeY_offTrackBlade_
MonitorElement * meSizeX_onTrackRing_
std::string setHistoId(std::string variable, uint32_t &rawId)
Set Histogram Id.
MonitorElement * meCharge_offTrackPhi_
int ladderName() const
ladder id (index in phi)
MonitorElement * meResidualYLad_
MonitorElement * meResidualYLay_
MonitorElement * meResidualYDisk_
int layerName() const
layer id
T getParameter(std::string const &) const
MonitorElement * meSize_offTrackPhi_
MonitorElement * meNClusters_onTrackBlade_
MonitorElement * meCharge_offTrackRing_
MonitorElement * meSizeY_offTrackRing_
MonitorElement * meSizeY_onTrackLad_
MonitorElement * meNClusters_onTrackRing_
MonitorElement * meResidualY_
MonitorElement * meCharge_offTrackDisk_
Pixel cluster – collection of neighboring pixels above threshold.
MonitorElement * meSizeX_onTrackLay_
MonitorElement * meSize_onTrackLay_
int pannelName() const
pannel id
MonitorElement * meNClusters_onTrack_
MonitorElement * meSizeY_onTrackPhi_
MonitorElement * meCharge_offTrackBlade_
MonitorElement * meSize_onTrackLad_
int diskName() const
disk id
MonitorElement * meSize_onTrackBlade_
MonitorElement * meCharge_onTrackRing_
MonitorElement * meResidualXRing_
MonitorElement * meSize_onTrack_
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
MonitorElement * meSize_onTrackPhi_
MonitorElement * meSizeX_onTrackBlade_
MonitorElement * meSize_offTrack_
MonitorElement * meSize_offTrackLad_
MonitorElement * meCharge_onTrack_
MonitorElement * meSize_offTrackBlade_
MonitorElement * meSize_offTrackDisk_
MonitorElement * meSize_onTrackDisk_
tuple size
Write out results.
MonitorElement * meNClusters_offTrackBlade_
MonitorElement * meResidualXLay_
~SiPixelTrackResidualModule()
MonitorElement * meCharge_onTrackPhi_
virtual void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)