48 src_( conf_.getParameter<edm::
InputTag>(
"src" ) ),
49 saveFile( conf_.getUntrackedParameter<bool>(
"saveFile",
false) ),
50 isPIB( conf_.getUntrackedParameter<bool>(
"isPIB",
false) ),
51 slowDown( conf_.getUntrackedParameter<bool>(
"slowDown",
false) ),
52 modOn( conf_.getUntrackedParameter<bool>(
"modOn",
true) ),
53 twoDimOn( conf_.getUntrackedParameter<bool>(
"twoDimOn",
true) ),
54 reducedSet( conf_.getUntrackedParameter<bool>(
"reducedSet",
false) ),
55 ladOn( conf_.getUntrackedParameter<bool>(
"ladOn",
false) ),
56 layOn( conf_.getUntrackedParameter<bool>(
"layOn",
false) ),
57 phiOn( conf_.getUntrackedParameter<bool>(
"phiOn",
false) ),
58 ringOn( conf_.getUntrackedParameter<bool>(
"ringOn",
false) ),
59 bladeOn( conf_.getUntrackedParameter<bool>(
"bladeOn",
false) ),
60 diskOn( conf_.getUntrackedParameter<bool>(
"diskOn",
false) ),
61 smileyOn(conf_.getUntrackedParameter<bool>(
"smileyOn",
false) ),
62 bigEventSize( conf_.getUntrackedParameter<int>(
"bigEventSize",100) ),
63 isUpgrade( conf_.getUntrackedParameter<bool>(
"isUpgrade",
false) )
65 LogInfo (
"PixelDQM") <<
"SiPixelClusterSource::SiPixelClusterSource: Got DQM BackEnd interface"<<endl;
77 LogInfo (
"PixelDQM") <<
"SiPixelClusterSource::~SiPixelClusterSource: Destructor"<<endl;
79 std::map<uint32_t,SiPixelClusterModule*>::iterator struct_iter;
81 delete struct_iter->second;
82 struct_iter->second = 0;
89 LogInfo (
"PixelDQM") <<
" SiPixelClusterSource::beginJob - Initialisation ... " << std::endl;
95 LogInfo (
"PixelDQM") <<
"Smiley (Cluster sizeY vs. Cluster eta) is " <<
smileyOn <<
"\n";
114 meClPosLayer1 = iBooker.
book2D(
"position_siPixelClusters_Layer_1",
"Clusters Layer1;Global Z (cm);Global #phi",200,-30.,30.,128,-3.2,3.2);
115 meClPosLayer2 = iBooker.
book2D(
"position_siPixelClusters_Layer_2",
"Clusters Layer2;Global Z (cm);Global #phi",200,-30.,30.,128,-3.2,3.2);
116 meClPosLayer3 = iBooker.
book2D(
"position_siPixelClusters_Layer_3",
"Clusters Layer3;Global Z (cm);Global #phi",200,-30.,30.,128,-3.2,3.2);
118 meClPosLayer4 = iBooker.
book2D(
"position_siPixelClusters_Layer_4",
"Clusters Layer4;Global Z (cm);Global #phi",200,-30.,30.,128,-3.2,3.2);
121 meClPosDisk1pz = iBooker.
book2D(
"position_siPixelClusters_pz_Disk_1",
"Clusters +Z Disk1;Global X (cm);Global Y (cm)",80,-20.,20.,80,-20.,20.);
122 meClPosDisk2pz = iBooker.
book2D(
"position_siPixelClusters_pz_Disk_2",
"Clusters +Z Disk2;Global X (cm);Global Y (cm)",80,-20.,20.,80,-20.,20.);
123 meClPosDisk1mz = iBooker.
book2D(
"position_siPixelClusters_mz_Disk_1",
"Clusters -Z Disk1;Global X (cm);Global Y (cm)",80,-20.,20.,80,-20.,20.);
124 meClPosDisk2mz = iBooker.
book2D(
"position_siPixelClusters_mz_Disk_2",
"Clusters -Z Disk2;Global X (cm);Global Y (cm)",80,-20.,20.,80,-20.,20.);
126 meClPosDisk3pz = iBooker.
book2D(
"position_siPixelClusters_pz_Disk_3",
"Clusters +Z Disk3;Global X (cm);Global Y (cm)",80,-20.,20.,80,-20.,20.);
127 meClPosDisk3mz = iBooker.
book2D(
"position_siPixelClusters_mz_Disk_3",
"Clusters -Z Disk3;Global X (cm);Global Y (cm)",80,-20.,20.,80,-20.,20.);
174 int nEventFpixClusters = 0;
177 std::map<uint32_t,SiPixelClusterModule*>::iterator struct_iter;
180 int numberOfFpixClusters = (*struct_iter).second->fill(*input, tracker,
187 nEventFpixClusters = nEventFpixClusters + numberOfFpixClusters;
208 LogInfo (
"PixelDQM") <<
" SiPixelClusterSource::buildStructure" ;
212 LogVerbatim (
"PixelDQM") <<
" *** Geometry node for TrackerGeom is "<<&(*pDD)<<std::endl;
213 LogVerbatim (
"PixelDQM") <<
" *** I have " << pDD->dets().size() <<
" detectors"<<std::endl;
214 LogVerbatim (
"PixelDQM") <<
" *** I have " << pDD->detTypes().size() <<
" types"<<std::endl;
216 for(TrackerGeometry::DetContainer::const_iterator it = pDD->dets().begin(); it != pDD->dets().end(); it++){
218 if(dynamic_cast<PixelGeomDetUnit const *>((*it))!=0){
220 DetId detId = (*it)->geographicalId();
221 const GeomDetUnit * geoUnit = pDD->idToDetUnit( detId );
229 uint32_t
id = detId();
233 LogDebug (
"PixelDQM") <<
" ---> Adding Barrel Module " << detId.
rawId() << endl;
236 LogDebug (
"PixelDQM") <<
" ---> Adding Endcap Module " << detId.
rawId() << endl;
242 char sside[80]; sprintf(sside,
"HalfCylinder_%i",side);
243 char sdisk[80]; sprintf(sdisk,
"Disk_%i",disk);
244 char sblade[80]; sprintf(sblade,
"Blade_%02i",blade);
245 char spanel[80]; sprintf(spanel,
"Panel_%i",panel);
246 char smodule[80];sprintf(smodule,
"Module_%i",module);
249 bool mask = side_str.find(
"HalfCylinder_1")!=string::npos||
250 side_str.find(
"HalfCylinder_2")!=string::npos||
251 side_str.find(
"HalfCylinder_4")!=string::npos||
252 disk_str.find(
"Disk_2")!=string::npos;
255 if(
isPIB && mask)
continue;
258 LogDebug (
"PixelDQM") <<
" ---> Adding Endcap Module " << detId.
rawId() << endl;
264 char sside[80]; sprintf(sside,
"HalfCylinder_%i",side);
265 char sdisk[80]; sprintf(sdisk,
"Disk_%i",disk);
266 char sblade[80]; sprintf(sblade,
"Blade_%02i",blade);
267 char spanel[80]; sprintf(spanel,
"Panel_%i",panel);
268 char smodule[80];sprintf(smodule,
"Module_%i",module);
271 bool mask = side_str.find(
"HalfCylinder_1")!=string::npos||
272 side_str.find(
"HalfCylinder_2")!=string::npos||
273 side_str.find(
"HalfCylinder_4")!=string::npos||
274 disk_str.find(
"Disk_2")!=string::npos;
277 if(
isPIB && mask)
continue;
292 char title[256]; snprintf(title, 256,
"Rate of events with >%i FPIX clusters;LumiSection;Rate of large FPIX events per LS [Hz]",
bigEventSize);
296 std::map<uint32_t,SiPixelClusterModule*>::iterator struct_iter;
309 <<
"[SiPixelClusterSource::bookMEs] Creation of DQM folder failed";
316 LogDebug (
"PixelDQM") <<
"PROBLEM WITH LADDER-FOLDER\n";
323 LogDebug (
"PixelDQM") <<
"PROBLEM WITH LAYER-FOLDER\n";
330 LogDebug (
"PixelDQM") <<
"PROBLEM WITH PHI-FOLDER\n";
337 LogDebug (
"PixelDQM") <<
"PROBLEM WITH BLADE-FOLDER\n";
344 LogDebug (
"PixelDQM") <<
"PROBLEM WITH DISK-FOLDER\n";
351 LogDebug (
"PixelDQM") <<
"PROBLEM WITH RING-FOLDER\n";
358 LogDebug (
"PixelDQM") <<
"PROBLEM WITH BARREL-FOLDER\n";
int plaquetteName() const
plaquetteId (in pannel)
virtual void buildStructure(edm::EventSetup const &)
T getParameter(std::string const &) const
MonitorElement * meClPosDisk3pz
MonitorElement * meClPosDisk2pz
virtual void analyze(const edm::Event &, const edm::EventSetup &)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
edm::LuminosityBlockNumber_t luminosityBlock() const
double getEntries(void) const
get # of entries
edm::EDGetTokenT< edmNew::DetSetVector< SiPixelCluster > > srcToken_
int plaquetteName() const
plaquetteId (in pannel)
MonitorElement * meClPosLayer4
SiPixelClusterSource(const edm::ParameterSet &conf)
static std::string const input
uint32_t rawId() const
get the raw id
MonitorElement * meClPosLayer3
int bladeName() const
blade id
bool setModuleFolder(const uint32_t &rawdetid=0, int type=0, bool isUpgrade=false)
Set folder name for a module or plaquette.
MonitorElement * book1D(Args &&...args)
MonitorElement * meClPosLayer1
int bladeName() const
blade id
int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
int diskName() const
disk id
void setCurrentFolder(const std::string &fullpath)
virtual void bookMEs(DQMStore::IBooker &)
MonitorElement * book2D(Args &&...args)
virtual const PixelTopology & specificTopology() const
Returns a reference to the pixel proxy topology.
virtual void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
virtual void dqmBeginRun(const edm::Run &, edm::EventSetup const &)
int pannelName() const
pannel id
MonitorElement * meClPosDisk3mz
MonitorElement * meClPosDisk2mz
int diskName() const
disk id
std::map< uint32_t, SiPixelClusterModule * > thePixelStructure
volatile std::atomic< bool > shutdown_flag false
MonitorElement * meClPosLayer2
HalfCylinder halfCylinder() const
HalfCylinder halfCylinder() const
int pannelName() const
pannel id
void Reset(void)
reset ME (ie. contents, errors, etc)
MonitorElement * bigFpixClusterEventRate
MonitorElement * meClPosDisk1mz
MonitorElement * meClPosDisk1pz