69 bool isHalfModule =
false;
98 meMinRow_ = theDMBE->book1D(hid,
"Lowest cluster row",200,0.,200.);
102 meMaxRow_ = theDMBE->book1D(hid,
"Highest cluster row",200,0.,200.);
106 meMinCol_ = theDMBE->book1D(hid,
"Lowest cluster column",500,0.,500.);
110 meMaxCol_ = theDMBE->book1D(hid,
"Highest cluster column",500,0.,500.);
114 meX_ = theDMBE->book1D(hid,
"Cluster barycenter X (row #)",200,0.,200.);
118 meY_ = theDMBE->book1D(hid,
"Cluster barycenter Y (column #)",500,0.,500.);
122 meSizeX_ = theDMBE->book1D(hid,
"Cluster x-width (rows)",10,0.,10.);
126 meSizeY_ = theDMBE->book1D(hid,
"Cluster y-width (columns)",15,0.,15.);
144 delete theHistogramId;
148 if(barrel && type==7){
149 hid = src.
label() +
"_Barrel";
150 meSizeYvsEtaBarrel_= theDMBE->book2D(
"sizeYvsEta_" + hid,
"Cluster size along beamline vs. Cluster position #eta",60,-3.,3.,40,0.,40.);
154 if(type==1 && barrel){
156 char sladder[80]; sprintf(sladder,
"Ladder_%02i",DBladder);
157 hid = src.
label() +
"_" + sladder;
158 if(isHalfModule) hid +=
"H";
161 meNClustersLad_ = theDMBE->book1D(
"nclusters_" + hid,
"Number of Clusters",8,0.,8.);
164 meChargeLad_ = theDMBE->book1D(
"charge_" + hid,
"Cluster charge",100,0.,200.);
167 meSizeLad_ = theDMBE->book1D(
"size_" + hid,
"Total cluster size",30,0.,30.);
171 meMinRowLad_ = theDMBE->book1D(
"minrow_" + hid,
"Lowest cluster row",200,0.,200.);
174 meMaxRowLad_ = theDMBE->book1D(
"maxrow_" + hid,
"Highest cluster row",200,0.,200.);
177 meMinColLad_ = theDMBE->book1D(
"mincol_" + hid,
"Lowest cluster column",500,0.,500.);
180 meMaxColLad_ = theDMBE->book1D(
"maxcol_" + hid,
"Highest cluster column",500,0.,500.);
183 meXLad_ = theDMBE->book1D(
"x_" + hid,
"Cluster barycenter X (row #)",200,0.,200.);
186 meYLad_ = theDMBE->book1D(
"y_" + hid,
"Cluster barycenter Y (column #)",500,0.,500.);
189 meSizeXLad_ = theDMBE->book1D(
"sizeX_" + hid,
"Cluster x-width (rows)",10,0.,10.);
192 meSizeYLad_ = theDMBE->book1D(
"sizeY_" + hid,
"Cluster y-width (columns)",15,0.,15.);
209 if(type==2 && barrel){
212 char slayer[80]; sprintf(slayer,
"Layer_%i",DBlayer);
213 hid = src.
label() +
"_" + slayer;
215 meNClustersLay_ = theDMBE->book1D(
"nclusters_" + hid,
"Number of Clusters",8,0.,8.);
218 meChargeLay_ = theDMBE->book1D(
"charge_" + hid,
"Cluster charge",100,0.,200.);
221 meSizeLay_ = theDMBE->book1D(
"size_" + hid,
"Total cluster size",30,0.,30.);
225 meMinRowLay_ = theDMBE->book1D(
"minrow_" + hid,
"Lowest cluster row",200,0.,200.);
228 meMaxRowLay_ = theDMBE->book1D(
"maxrow_" + hid,
"Highest cluster row",200,0.,200.);
231 meMinColLay_ = theDMBE->book1D(
"mincol_" + hid,
"Lowest cluster column",500,0.,500.);
234 meMaxColLay_ = theDMBE->book1D(
"maxcol_" + hid,
"Highest cluster column",500,0.,500.);
237 meXLay_ = theDMBE->book1D(
"x_" + hid,
"Cluster barycenter X (row #)",200,0.,200.);
240 meYLay_ = theDMBE->book1D(
"y_" + hid,
"Cluster barycenter Y (column #)",500,0.,500.);
243 meSizeXLay_ = theDMBE->book1D(
"sizeX_" + hid,
"Cluster x-width (rows)",10,0.,10.);
246 meSizeYLay_ = theDMBE->book1D(
"sizeY_" + hid,
"Cluster y-width (columns)",15,0.,15.);
251 mePixClustersLay_ = theDMBE->book2D(
"hitmap_" + hid,
"Number of Clusters (1bin=four pixels)",nbinx,0.,
float(
ncols_),2*nbiny,0.,
float(2*
nrows_));
261 mePixClustersLay_py_ = theDMBE->book1D(
"hitmap_" + hid+
"_py",
"Number of Clusters (1bin=two rows)",2*nbiny,0.,
float(2*
nrows_));
270 if(type==3 && barrel){
272 char smodule[80]; sprintf(smodule,
"Ring_%i",DBmodule);
273 hid = src.
label() +
"_" + smodule;
275 meNClustersPhi_ = theDMBE->book1D(
"nclusters_" + hid,
"Number of Clusters",8,0.,8.);
278 meChargePhi_ = theDMBE->book1D(
"charge_" + hid,
"Cluster charge",100,0.,200.);
281 meSizePhi_ = theDMBE->book1D(
"size_" + hid,
"Total cluster size",30,0.,30.);
285 meMinRowPhi_ = theDMBE->book1D(
"minrow_" + hid,
"Lowest cluster row",200,0.,200.);
288 meMaxRowPhi_ = theDMBE->book1D(
"maxrow_" + hid,
"Highest cluster row",200,0.,200.);
291 meMinColPhi_ = theDMBE->book1D(
"mincol_" + hid,
"Lowest cluster column",500,0.,500.);
294 meMaxColPhi_ = theDMBE->book1D(
"maxcol_" + hid,
"Highest cluster column",500,0.,500.);
297 meXPhi_ = theDMBE->book1D(
"x_" + hid,
"Cluster barycenter X (row #)",200,0.,200.);
300 meYPhi_ = theDMBE->book1D(
"y_" + hid,
"Cluster barycenter Y (column #)",500,0.,500.);
303 meSizeXPhi_ = theDMBE->book1D(
"sizeX_" + hid,
"Cluster x-width (rows)",10,0.,10.);
306 meSizeYPhi_ = theDMBE->book1D(
"sizeY_" + hid,
"Cluster y-width (columns)",15,0.,15.);
311 mePixClustersPhi_ = theDMBE->book2D(
"hitmap_" + hid,
"Number of Clusters (1bin=four pixels)",nbinx,0.,
float(
ncols_),2*nbiny,0.,
float(2*
nrows_));
321 mePixClustersPhi_py_ = theDMBE->book1D(
"hitmap_" + hid+
"_py",
"Number of Clusters (1bin=two rows)",2*nbiny,0.,
float(2*
nrows_));
331 if(type==4 && endcap){
334 char sblade[80]; sprintf(sblade,
"Blade_%02i",blade);
335 hid = src.
label() +
"_" + sblade;
337 meNClustersBlade_ = theDMBE->book1D(
"nclusters_" + hid,
"Number of Clusters",8,0.,8.);
340 meChargeBlade_ = theDMBE->book1D(
"charge_" + hid,
"Cluster charge",100,0.,200.);
343 meSizeBlade_ = theDMBE->book1D(
"size_" + hid,
"Total cluster size",30,0.,30.);
347 meMinRowBlade_ = theDMBE->book1D(
"minrow_" + hid,
"Lowest cluster row",200,0.,200.);
350 meMaxRowBlade_ = theDMBE->book1D(
"maxrow_" + hid,
"Highest cluster row",200,0.,200.);
353 meMinColBlade_ = theDMBE->book1D(
"mincol_" + hid,
"Lowest cluster column",500,0.,500.);
356 meMaxColBlade_ = theDMBE->book1D(
"maxcol_" + hid,
"Highest cluster column",500,0.,500.);
359 meXBlade_ = theDMBE->book1D(
"x_" + hid,
"Cluster barycenter X (row #)",200,0.,200.);
362 meYBlade_ = theDMBE->book1D(
"y_" + hid,
"Cluster barycenter Y (column #)",500,0.,500.);
365 meSizeXBlade_ = theDMBE->book1D(
"sizeX_" + hid,
"Cluster x-width (rows)",10,0.,10.);
368 meSizeYBlade_ = theDMBE->book1D(
"sizeY_" + hid,
"Cluster y-width (columns)",15,0.,15.);
372 if(type==5 && endcap){
375 char sdisk[80]; sprintf(sdisk,
"Disk_%i",disk);
376 hid = src.
label() +
"_" + sdisk;
378 meNClustersDisk_ = theDMBE->book1D(
"nclusters_" + hid,
"Number of Clusters",8,0.,8.);
381 meChargeDisk_ = theDMBE->book1D(
"charge_" + hid,
"Cluster charge",100,0.,200.);
384 meSizeDisk_ = theDMBE->book1D(
"size_" + hid,
"Total cluster size",30,0.,30.);
388 meMinRowDisk_ = theDMBE->book1D(
"minrow_" + hid,
"Lowest cluster row",200,0.,200.);
391 meMaxRowDisk_ = theDMBE->book1D(
"maxrow_" + hid,
"Highest cluster row",200,0.,200.);
394 meMinColDisk_ = theDMBE->book1D(
"mincol_" + hid,
"Lowest cluster column",500,0.,500.);
397 meMaxColDisk_ = theDMBE->book1D(
"maxcol_" + hid,
"Highest cluster column",500,0.,500.);
400 meXDisk_ = theDMBE->book1D(
"x_" + hid,
"Cluster barycenter X (row #)",200,0.,200.);
403 meYDisk_ = theDMBE->book1D(
"y_" + hid,
"Cluster barycenter Y (column #)",500,0.,500.);
406 meSizeXDisk_ = theDMBE->book1D(
"sizeX_" + hid,
"Cluster x-width (rows)",10,0.,10.);
409 meSizeYDisk_ = theDMBE->book1D(
"sizeY_" + hid,
"Cluster y-width (columns)",15,0.,15.);
414 if(type==6 && endcap){
417 char slab[80]; sprintf(slab,
"Panel_%i_Ring_%i",panel, module);
418 hid = src.
label() +
"_" + slab;
420 meNClustersRing_ = theDMBE->book1D(
"nclusters_" + hid,
"Number of Clusters",8,0.,8.);
423 meChargeRing_ = theDMBE->book1D(
"charge_" + hid,
"Cluster charge",100,0.,200.);
426 meSizeRing_ = theDMBE->book1D(
"size_" + hid,
"Total cluster size",30,0.,30.);
430 meMinRowRing_ = theDMBE->book1D(
"minrow_" + hid,
"Lowest cluster row",200,0.,200.);
433 meMaxRowRing_ = theDMBE->book1D(
"maxrow_" + hid,
"Highest cluster row",200,0.,200.);
436 meMinColRing_ = theDMBE->book1D(
"mincol_" + hid,
"Lowest cluster column",500,0.,500.);
439 meMaxColRing_ = theDMBE->book1D(
"maxcol_" + hid,
"Highest cluster column",500,0.,500.);
442 meXRing_ = theDMBE->book1D(
"x_" + hid,
"Cluster barycenter X (row #)",200,0.,200.);
445 meYRing_ = theDMBE->book1D(
"y_" + hid,
"Cluster barycenter Y (column #)",500,0.,500.);
448 meSizeXRing_ = theDMBE->book1D(
"sizeX_" + hid,
"Cluster x-width (rows)",10,0.,10.);
451 meSizeYRing_ = theDMBE->book1D(
"sizeY_" + hid,
"Cluster y-width (columns)",15,0.,15.);
472 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) {
478 unsigned int numberOfClusters = 0;
479 unsigned int numberOfFpixClusters = 0;
481 if( isearch != input.
end() ) {
487 for(di = isearch->
begin(); di != isearch->
end(); di++) {
489 if(endcap) numberOfFpixClusters++;
490 float charge = 0.001*(di->charge());
494 int sizeX = di->sizeX();
495 int sizeY = di->sizeY();
496 int minPixelRow = di->minPixelRow();
497 int maxPixelRow = di->maxPixelRow();
498 int minPixelCol = di->minPixelCol();
499 int maxPixelCol = di->maxPixelCol();
519 theDMBE->
cd(
"Pixel/Clusters/OffTrack/");
525 me = theDMBE->
get(
"Pixel/Clusters/OffTrack/position_siPixelClusters_Layer_1");
526 if(me) me->
Fill(clustgp.
z(),clustgp.
phi());
529 me = theDMBE->
get(
"Pixel/Clusters/OffTrack/position_siPixelClusters_Layer_2");
530 if(me) me->
Fill(clustgp.
z(),clustgp.
phi());
533 me = theDMBE->
get(
"Pixel/Clusters/OffTrack/position_siPixelClusters_Layer_3");
534 if(me) me->
Fill(clustgp.
z(),clustgp.
phi());
542 me = theDMBE->
get(
"Pixel/Clusters/OffTrack/position_siPixelClusters_pz_Disk_1");
543 if(me) me->
Fill(clustgp.
x(),clustgp.
y());
546 me = theDMBE->
get(
"Pixel/Clusters/OffTrack/position_siPixelClusters_pz_Disk_2");
547 if(me) me->
Fill(clustgp.
x(),clustgp.
y());
553 me = theDMBE->
get(
"Pixel/Clusters/OffTrack/position_siPixelClusters_mz_Disk_1");
554 if(me) me->
Fill(clustgp.
x(),clustgp.
y());
557 me = theDMBE->
get(
"Pixel/Clusters/OffTrack/position_siPixelClusters_mz_Disk_2");
558 if(me) me->
Fill(clustgp.
x(),clustgp.
y());
563 theDMBE->
cd(currDir);
584 if(barrel && smileyon){
648 if(bladeon && endcap){
663 if(diskon && endcap){
679 if(ringon && endcap){
715 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 begin() 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_
SiPixelClusterModule()
Default constructor.
data_type const * const_iterator
MonitorElement * meMinRowBlade_
MonitorElement * meNClustersPhi_
MonitorElement * meChargePhi_
MonitorElement * meMinColPhi_
MonitorElement * meNClustersBlade_
MonitorElement * mePixClustersPhi_py_
const_iterator find(id_type i) const
void book(const edm::ParameterSet &iConfig, int type=0, bool twoD=true, bool reducedSet=false)
Book histograms.
MonitorElement * meMinRowDisk_
const Plane & surface() const
The nominal surface of the GeomDet.
MonitorElement * mePixClustersRing_px_
MonitorElement * meMaxRowLad_
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_
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)
Fill histograms.
MonitorElement * mePixClustersLay_px_
MonitorElement * meNClustersDisk_
MonitorElement * meSizeYRing_
MonitorElement * mePixClustersRing_
MonitorElement * meSizeX_
MonitorElement * meSizeY_
MonitorElement * meMaxRowLay_
MonitorElement * meChargeDisk_
const_iterator end() const
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) ...
virtual const GeomDet * idToDet(DetId) const
MonitorElement * meChargeBlade_
MonitorElement * mePixClustersLay_py_
MonitorElement * meMinColRing_
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_
MonitorElement * meNClustersRing_
MonitorElement * meSizeYvsEtaBarrel_
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_
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_
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_
tuple size
Write out results.
MonitorElement * meSizeLay_
const std::string & pwd(void) const
MonitorElement * meMaxColDisk_