70 bool isHalfModule =
false;
74 }
else if (isUpgrade) {
103 meMinRow_ = theDMBE->book1D(hid,
"Lowest cluster row",200,0.,200.);
107 meMaxRow_ = theDMBE->book1D(hid,
"Highest cluster row",200,0.,200.);
111 meMinCol_ = theDMBE->book1D(hid,
"Lowest cluster column",500,0.,500.);
115 meMaxCol_ = theDMBE->book1D(hid,
"Highest cluster column",500,0.,500.);
119 meX_ = theDMBE->book1D(hid,
"Cluster barycenter X (row #)",200,0.,200.);
123 meY_ = theDMBE->book1D(hid,
"Cluster barycenter Y (column #)",500,0.,500.);
127 meSizeX_ = theDMBE->book1D(hid,
"Cluster x-width (rows)",10,0.,10.);
131 meSizeY_ = theDMBE->book1D(hid,
"Cluster y-width (columns)",15,0.,15.);
149 delete theHistogramId;
153 if(barrel && type==7){
154 hid = src.
label() +
"_Barrel";
155 meSizeYvsEtaBarrel_= theDMBE->book2D(
"sizeYvsEta_" + hid,
"Cluster size along beamline vs. Cluster position #eta",60,-3.,3.,40,0.,40.);
159 if(type==1 && barrel){
163 char sladder[80]; sprintf(sladder,
"Ladder_%02i",DBladder);
164 hid = src.
label() +
"_" + sladder;
165 if(isHalfModule) hid +=
"H";
168 meNClustersLad_ = theDMBE->book1D(
"nclusters_" + hid,
"Number of Clusters",8,0.,8.);
171 meChargeLad_ = theDMBE->book1D(
"charge_" + hid,
"Cluster charge",100,0.,200.);
174 meSizeLad_ = theDMBE->book1D(
"size_" + hid,
"Total cluster size",30,0.,30.);
178 meMinRowLad_ = theDMBE->book1D(
"minrow_" + hid,
"Lowest cluster row",200,0.,200.);
181 meMaxRowLad_ = theDMBE->book1D(
"maxrow_" + hid,
"Highest cluster row",200,0.,200.);
184 meMinColLad_ = theDMBE->book1D(
"mincol_" + hid,
"Lowest cluster column",500,0.,500.);
187 meMaxColLad_ = theDMBE->book1D(
"maxcol_" + hid,
"Highest cluster column",500,0.,500.);
190 meXLad_ = theDMBE->book1D(
"x_" + hid,
"Cluster barycenter X (row #)",200,0.,200.);
193 meYLad_ = theDMBE->book1D(
"y_" + hid,
"Cluster barycenter Y (column #)",500,0.,500.);
196 meSizeXLad_ = theDMBE->book1D(
"sizeX_" + hid,
"Cluster x-width (rows)",10,0.,10.);
199 meSizeYLad_ = theDMBE->book1D(
"sizeY_" + hid,
"Cluster y-width (columns)",15,0.,15.);
216 if(type==2 && barrel){
221 char slayer[80]; sprintf(slayer,
"Layer_%i",DBlayer);
222 hid = src.
label() +
"_" + slayer;
224 meNClustersLay_ = theDMBE->book1D(
"nclusters_" + hid,
"Number of Clusters",8,0.,8.);
227 meChargeLay_ = theDMBE->book1D(
"charge_" + hid,
"Cluster charge",100,0.,200.);
230 meSizeLay_ = theDMBE->book1D(
"size_" + hid,
"Total cluster size",30,0.,30.);
234 meMinRowLay_ = theDMBE->book1D(
"minrow_" + hid,
"Lowest cluster row",200,0.,200.);
237 meMaxRowLay_ = theDMBE->book1D(
"maxrow_" + hid,
"Highest cluster row",200,0.,200.);
240 meMinColLay_ = theDMBE->book1D(
"mincol_" + hid,
"Lowest cluster column",500,0.,500.);
243 meMaxColLay_ = theDMBE->book1D(
"maxcol_" + hid,
"Highest cluster column",500,0.,500.);
246 meXLay_ = theDMBE->book1D(
"x_" + hid,
"Cluster barycenter X (row #)",200,0.,200.);
249 meYLay_ = theDMBE->book1D(
"y_" + hid,
"Cluster barycenter Y (column #)",500,0.,500.);
252 meSizeXLay_ = theDMBE->book1D(
"sizeX_" + hid,
"Cluster x-width (rows)",10,0.,10.);
255 meSizeYLay_ = theDMBE->book1D(
"sizeY_" + hid,
"Cluster y-width (columns)",15,0.,15.);
260 mePixClustersLay_ = theDMBE->book2D(
"hitmap_" + hid,
"Number of Clusters (1bin=four pixels)",nbinx,0.,
float(
ncols_),2*nbiny,0.,
float(2*
nrows_));
270 mePixClustersLay_py_ = theDMBE->book1D(
"hitmap_" + hid+
"_py",
"Number of Clusters (1bin=two rows)",2*nbiny,0.,
float(2*
nrows_));
279 if(type==3 && barrel){
283 char smodule[80]; sprintf(smodule,
"Ring_%i",DBmodule);
284 hid = src.
label() +
"_" + smodule;
286 meNClustersPhi_ = theDMBE->book1D(
"nclusters_" + hid,
"Number of Clusters",8,0.,8.);
289 meChargePhi_ = theDMBE->book1D(
"charge_" + hid,
"Cluster charge",100,0.,200.);
292 meSizePhi_ = theDMBE->book1D(
"size_" + hid,
"Total cluster size",30,0.,30.);
296 meMinRowPhi_ = theDMBE->book1D(
"minrow_" + hid,
"Lowest cluster row",200,0.,200.);
299 meMaxRowPhi_ = theDMBE->book1D(
"maxrow_" + hid,
"Highest cluster row",200,0.,200.);
302 meMinColPhi_ = theDMBE->book1D(
"mincol_" + hid,
"Lowest cluster column",500,0.,500.);
305 meMaxColPhi_ = theDMBE->book1D(
"maxcol_" + hid,
"Highest cluster column",500,0.,500.);
308 meXPhi_ = theDMBE->book1D(
"x_" + hid,
"Cluster barycenter X (row #)",200,0.,200.);
311 meYPhi_ = theDMBE->book1D(
"y_" + hid,
"Cluster barycenter Y (column #)",500,0.,500.);
314 meSizeXPhi_ = theDMBE->book1D(
"sizeX_" + hid,
"Cluster x-width (rows)",10,0.,10.);
317 meSizeYPhi_ = theDMBE->book1D(
"sizeY_" + hid,
"Cluster y-width (columns)",15,0.,15.);
322 mePixClustersPhi_ = theDMBE->book2D(
"hitmap_" + hid,
"Number of Clusters (1bin=four pixels)",nbinx,0.,
float(
ncols_),2*nbiny,0.,
float(2*
nrows_));
332 mePixClustersPhi_py_ = theDMBE->book1D(
"hitmap_" + hid+
"_py",
"Number of Clusters (1bin=two rows)",2*nbiny,0.,
float(2*
nrows_));
342 if(type==4 && endcap){
347 char sblade[80]; sprintf(sblade,
"Blade_%02i",blade);
348 hid = src.
label() +
"_" + sblade;
350 meNClustersBlade_ = theDMBE->book1D(
"nclusters_" + hid,
"Number of Clusters",8,0.,8.);
353 meChargeBlade_ = theDMBE->book1D(
"charge_" + hid,
"Cluster charge",100,0.,200.);
356 meSizeBlade_ = theDMBE->book1D(
"size_" + hid,
"Total cluster size",30,0.,30.);
360 meMinRowBlade_ = theDMBE->book1D(
"minrow_" + hid,
"Lowest cluster row",200,0.,200.);
363 meMaxRowBlade_ = theDMBE->book1D(
"maxrow_" + hid,
"Highest cluster row",200,0.,200.);
366 meMinColBlade_ = theDMBE->book1D(
"mincol_" + hid,
"Lowest cluster column",500,0.,500.);
369 meMaxColBlade_ = theDMBE->book1D(
"maxcol_" + hid,
"Highest cluster column",500,0.,500.);
372 meXBlade_ = theDMBE->book1D(
"x_" + hid,
"Cluster barycenter X (row #)",200,0.,200.);
375 meYBlade_ = theDMBE->book1D(
"y_" + hid,
"Cluster barycenter Y (column #)",500,0.,500.);
378 meSizeXBlade_ = theDMBE->book1D(
"sizeX_" + hid,
"Cluster x-width (rows)",10,0.,10.);
381 meSizeYBlade_ = theDMBE->book1D(
"sizeY_" + hid,
"Cluster y-width (columns)",15,0.,15.);
385 if(type==5 && endcap){
390 char sdisk[80]; sprintf(sdisk,
"Disk_%i",disk);
391 hid = src.
label() +
"_" + sdisk;
393 meNClustersDisk_ = theDMBE->book1D(
"nclusters_" + hid,
"Number of Clusters",8,0.,8.);
396 meChargeDisk_ = theDMBE->book1D(
"charge_" + hid,
"Cluster charge",100,0.,200.);
399 meSizeDisk_ = theDMBE->book1D(
"size_" + hid,
"Total cluster size",30,0.,30.);
403 meMinRowDisk_ = theDMBE->book1D(
"minrow_" + hid,
"Lowest cluster row",200,0.,200.);
406 meMaxRowDisk_ = theDMBE->book1D(
"maxrow_" + hid,
"Highest cluster row",200,0.,200.);
409 meMinColDisk_ = theDMBE->book1D(
"mincol_" + hid,
"Lowest cluster column",500,0.,500.);
412 meMaxColDisk_ = theDMBE->book1D(
"maxcol_" + hid,
"Highest cluster column",500,0.,500.);
415 meXDisk_ = theDMBE->book1D(
"x_" + hid,
"Cluster barycenter X (row #)",200,0.,200.);
418 meYDisk_ = theDMBE->book1D(
"y_" + hid,
"Cluster barycenter Y (column #)",500,0.,500.);
421 meSizeXDisk_ = theDMBE->book1D(
"sizeX_" + hid,
"Cluster x-width (rows)",10,0.,10.);
424 meSizeYDisk_ = theDMBE->book1D(
"sizeY_" + hid,
"Cluster y-width (columns)",15,0.,15.);
429 if(type==6 && endcap){
440 char slab[80]; sprintf(slab,
"Panel_%i_Ring_%i",panel, module);
441 hid = src.
label() +
"_" + slab;
443 meNClustersRing_ = theDMBE->book1D(
"nclusters_" + hid,
"Number of Clusters",8,0.,8.);
446 meChargeRing_ = theDMBE->book1D(
"charge_" + hid,
"Cluster charge",100,0.,200.);
449 meSizeRing_ = theDMBE->book1D(
"size_" + hid,
"Total cluster size",30,0.,30.);
453 meMinRowRing_ = theDMBE->book1D(
"minrow_" + hid,
"Lowest cluster row",200,0.,200.);
456 meMaxRowRing_ = theDMBE->book1D(
"maxrow_" + hid,
"Highest cluster row",200,0.,200.);
459 meMinColRing_ = theDMBE->book1D(
"mincol_" + hid,
"Lowest cluster column",500,0.,500.);
462 meMaxColRing_ = theDMBE->book1D(
"maxcol_" + hid,
"Highest cluster column",500,0.,500.);
465 meXRing_ = theDMBE->book1D(
"x_" + hid,
"Cluster barycenter X (row #)",200,0.,200.);
468 meYRing_ = theDMBE->book1D(
"y_" + hid,
"Cluster barycenter Y (column #)",500,0.,500.);
471 meSizeXRing_ = theDMBE->book1D(
"sizeX_" + hid,
"Cluster x-width (rows)",10,0.,10.);
474 meSizeYRing_ = theDMBE->book1D(
"sizeY_" + hid,
"Cluster y-width (columns)",15,0.,15.);
495 int SiPixelClusterModule::fill(
const edmNew::DetSetVector<SiPixelCluster>&
input,
const TrackerGeometry*
tracker,
bool modon,
bool ladon,
bool layon,
bool phion,
bool bladeon,
bool diskon,
bool ringon,
bool twoD,
bool reducedSet,
bool smileyon,
bool isUpgrade) {
501 unsigned int numberOfClusters = 0;
502 unsigned int numberOfFpixClusters = 0;
504 if( isearch != input.
end() ) {
510 for(di = isearch->
begin(); di != isearch->
end(); di++) {
512 if(endcap) numberOfFpixClusters++;
513 float charge = 0.001*(di->charge());
517 int sizeX = di->sizeX();
518 int sizeY = di->sizeY();
519 int minPixelRow = di->minPixelRow();
520 int maxPixelRow = di->maxPixelRow();
521 int minPixelCol = di->minPixelCol();
522 int maxPixelCol = di->maxPixelCol();
542 theDMBE->
cd(
"Pixel/Clusters/OffTrack/");
550 me = theDMBE->
get(
"Pixel/Clusters/OffTrack/position_siPixelClusters_Layer_1");
551 if(me) me->
Fill(clustgp.
z(),clustgp.
phi());
554 me = theDMBE->
get(
"Pixel/Clusters/OffTrack/position_siPixelClusters_Layer_2");
555 if(me) me->
Fill(clustgp.
z(),clustgp.
phi());
558 me = theDMBE->
get(
"Pixel/Clusters/OffTrack/position_siPixelClusters_Layer_3");
559 if(me) me->
Fill(clustgp.
z(),clustgp.
phi());
563 me = theDMBE->
get(
"Pixel/Clusters/OffTrack/position_siPixelClusters_Layer_4");
564 if(me) me->
Fill(clustgp.
z(),clustgp.
phi());
575 me = theDMBE->
get(
"Pixel/Clusters/OffTrack/position_siPixelClusters_pz_Disk_1");
576 if(me) me->
Fill(clustgp.
x(),clustgp.
y());
579 me = theDMBE->
get(
"Pixel/Clusters/OffTrack/position_siPixelClusters_pz_Disk_2");
580 if(me) me->
Fill(clustgp.
x(),clustgp.
y());
584 me = theDMBE->
get(
"Pixel/Clusters/OffTrack/position_siPixelClusters_pz_Disk_3");
585 if(me) me->
Fill(clustgp.
x(),clustgp.
y());
592 me = theDMBE->
get(
"Pixel/Clusters/OffTrack/position_siPixelClusters_mz_Disk_1");
593 if(me) me->
Fill(clustgp.
x(),clustgp.
y());
596 me = theDMBE->
get(
"Pixel/Clusters/OffTrack/position_siPixelClusters_mz_Disk_2");
597 if(me) me->
Fill(clustgp.
x(),clustgp.
y());
601 me = theDMBE->
get(
"Pixel/Clusters/OffTrack/position_siPixelClusters_mz_Disk_3");
602 if(me) me->
Fill(clustgp.
x(),clustgp.
y());
608 theDMBE->
cd(currDir);
629 if(barrel && smileyon){
693 if(bladeon && endcap){
708 if(diskon && endcap){
724 if(ringon && endcap){
760 return numberOfFpixClusters;
int plaquetteName() const
plaquetteId (in pannel)
MonitorElement * meMinColLay_
GlobalPoint toGlobal(const Point2DBase< Scalar, LocalTag > lp) const
T getParameter(std::string const &) const
MonitorElement * meMinRowRing_
boost::transform_iterator< IterHelp, const_IdIter > const_iterator
const_iterator end(bool update=false) const
MonitorElement * meMaxColLad_
MonitorElement * meSizePhi_
MonitorElement * mePixClustersLad_px_
MonitorElement * meMaxCol_
virtual LocalPoint localPosition(const MeasurementPoint &) const =0
MonitorElement * meMaxColPhi_
MonitorElement * meNClustersLad_
MonitorElement * meYBlade_
int moduleName() const
module id (index in z)
MonitorElement * meMinRowLad_
void cd(void)
go to top directory (ie. root)
MonitorElement * meSizeYLay_
MonitorElement * meSizeYLad_
MonitorElement * meSizeXLad_
MonitorElement * meSizeXLay_
MonitorElement * meMinRow_
Geom::Phi< T > phi() const
MonitorElement * meXDisk_
MonitorElement * meMaxRowRing_
MonitorElement * mePixClustersLay_
MonitorElement * meSizeYBlade_
bool isHalfModule() const
full or half module
SiPixelClusterModule()
Default constructor.
data_type const * const_iterator
MonitorElement * meMinRowBlade_
MonitorElement * meNClustersPhi_
MonitorElement * meChargePhi_
MonitorElement * meMinColPhi_
MonitorElement * meNClustersBlade_
MonitorElement * mePixClustersPhi_py_
MonitorElement * meMinRowDisk_
int plaquetteName() const
plaquetteId (in pannel)
const Plane & surface() const
The nominal surface of the GeomDet.
MonitorElement * mePixClustersRing_px_
MonitorElement * meMaxRowLad_
static std::string const input
MonitorElement * meMinRowLay_
MonitorElement * meMinColBlade_
MonitorElement * meXRing_
MonitorElement * meSizeYDisk_
MonitorElement * meSizeDisk_
MonitorElement * meMaxColRing_
MonitorElement * meMinColLad_
int bladeName() const
blade id
MonitorElement * meMaxRowBlade_
MonitorElement * meChargeRing_
Measurement2DPoint MeasurementPoint
Measurement points are two-dimensional by default.
MonitorElement * mePixClustersLad_
bool isHalfModule() const
full or half module
void Fill(HcalDetId &id, double val, std::vector< TH2F > &depth)
~SiPixelClusterModule()
Destructor.
MonitorElement * meMaxRowPhi_
MonitorElement * meMinRowPhi_
MonitorElement * meMinColDisk_
MonitorElement * meMinCol_
MonitorElement * mePixClusters_py_
MonitorElement * mePixClustersLay_px_
MonitorElement * meNClustersDisk_
MonitorElement * meSizeYRing_
MonitorElement * mePixClustersRing_
MonitorElement * meSizeX_
MonitorElement * meSizeY_
MonitorElement * meMaxRowLay_
int bladeName() const
blade id
MonitorElement * meChargeDisk_
int fill(const edmNew::DetSetVector< SiPixelCluster > &input, const TrackerGeometry *tracker, 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, bool smileyon=false, bool isUpgrade=false)
Fill histograms.
MonitorElement * meMaxColBlade_
MonitorElement * get(const std::string &path) const
get ME from full pathname (e.g. "my/long/dir/my_histo")
MonitorElement * mePixClustersPhi_
int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
void book(const edm::ParameterSet &iConfig, int type=0, bool twoD=true, bool reducedSet=false, bool isUpgrade=false)
Book histograms.
virtual const GeomDet * idToDet(DetId) const
MonitorElement * meChargeBlade_
MonitorElement * mePixClustersLay_py_
MonitorElement * meMinColRing_
int diskName() const
disk id
MonitorElement * meNClustersLay_
MonitorElement * meMaxColLay_
std::string setHistoId(std::string variable, uint32_t &rawId)
Set Histogram Id.
MonitorElement * meMaxRowDisk_
int ladderName() const
ladder id (index in phi)
MonitorElement * meYRing_
int ladderName() const
ladder id (index in phi)
MonitorElement * meNClustersRing_
MonitorElement * meSizeYvsEtaBarrel_
int moduleName() const
module id (index in z)
MonitorElement * mePixClustersLad_py_
virtual const PixelTopology & specificTopology() const
Returns a reference to the pixel proxy topology.
int layerName() const
layer id
MonitorElement * meYDisk_
MonitorElement * meSizeRing_
MonitorElement * mePixClusters_px_
const_iterator find(id_type i, bool update=false) const
MonitorElement * meSizeXPhi_
MonitorElement * meSizeXRing_
MonitorElement * mePixClusters_
MonitorElement * meSizeXBlade_
int pannelName() const
pannel id
MonitorElement * meMaxRow_
MonitorElement * meChargeLad_
MonitorElement * meSizeLad_
MonitorElement * meSizeBlade_
MonitorElement * mePixClustersRing_py_
int diskName() const
disk id
MonitorElement * meSizeXDisk_
MonitorElement * meSizeYPhi_
int pannelName() const
pannel id
void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)
MonitorElement * mePixClustersPhi_px_
MonitorElement * meXBlade_
MonitorElement * meChargeLay_
int layerName() const
layer id
tuple size
Write out results.
const_iterator begin(bool update=false) const
MonitorElement * meSizeLay_
const std::string & pwd(void) const
MonitorElement * meMaxColDisk_