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;
76 LogInfo (
"PixelDQM") <<
"SiPixelClusterSource::~SiPixelClusterSource: Destructor"<<endl;
78 std::map<uint32_t,SiPixelClusterModule*>::iterator struct_iter;
80 delete struct_iter->second;
81 struct_iter->second = 0;
91 LogInfo (
"PixelDQM") <<
" SiPixelClusterSource::beginJob - Initialisation ... " << std::endl;
97 LogInfo (
"PixelDQM") <<
"Smiley (Cluster sizeY vs. Cluster eta) is " <<
smileyOn <<
"\n";
116 meClPosLayer1 = iBooker.
book2D(
"position_siPixelClusters_Layer_1",
"Clusters Layer1;Global Z (cm);Global #phi",200,-30.,30.,128,-3.2,3.2);
117 meClPosLayer2 = iBooker.
book2D(
"position_siPixelClusters_Layer_2",
"Clusters Layer2;Global Z (cm);Global #phi",200,-30.,30.,128,-3.2,3.2);
118 meClPosLayer3 = iBooker.
book2D(
"position_siPixelClusters_Layer_3",
"Clusters Layer3;Global Z (cm);Global #phi",200,-30.,30.,128,-3.2,3.2);
120 meClPosLayer4 = iBooker.
book2D(
"position_siPixelClusters_Layer_4",
"Clusters Layer4;Global Z (cm);Global #phi",200,-30.,30.,128,-3.2,3.2);
123 meClPosDisk1pz = iBooker.
book2D(
"position_siPixelClusters_pz_Disk_1",
"Clusters +Z Disk1;Global X (cm);Global Y (cm)",80,-20.,20.,80,-20.,20.);
124 meClPosDisk2pz = iBooker.
book2D(
"position_siPixelClusters_pz_Disk_2",
"Clusters +Z Disk2;Global X (cm);Global Y (cm)",80,-20.,20.,80,-20.,20.);
125 meClPosDisk1mz = iBooker.
book2D(
"position_siPixelClusters_mz_Disk_1",
"Clusters -Z Disk1;Global X (cm);Global Y (cm)",80,-20.,20.,80,-20.,20.);
126 meClPosDisk2mz = iBooker.
book2D(
"position_siPixelClusters_mz_Disk_2",
"Clusters -Z Disk2;Global X (cm);Global Y (cm)",80,-20.,20.,80,-20.,20.);
128 meClPosDisk3pz = iBooker.
book2D(
"position_siPixelClusters_pz_Disk_3",
"Clusters +Z Disk3;Global X (cm);Global Y (cm)",80,-20.,20.,80,-20.,20.);
129 meClPosDisk3mz = iBooker.
book2D(
"position_siPixelClusters_mz_Disk_3",
"Clusters -Z Disk3;Global X (cm);Global Y (cm)",80,-20.,20.,80,-20.,20.);
176 int nEventFpixClusters = 0;
179 std::map<uint32_t,SiPixelClusterModule*>::iterator struct_iter;
182 int numberOfFpixClusters = (*struct_iter).second->fill(*input, tracker,
189 nEventFpixClusters = nEventFpixClusters + numberOfFpixClusters;
210 LogInfo (
"PixelDQM") <<
" SiPixelClusterSource::buildStructure" ;
214 LogVerbatim (
"PixelDQM") <<
" *** Geometry node for TrackerGeom is "<<&(*pDD)<<std::endl;
215 LogVerbatim (
"PixelDQM") <<
" *** I have " << pDD->dets().size() <<
" detectors"<<std::endl;
216 LogVerbatim (
"PixelDQM") <<
" *** I have " << pDD->detTypes().size() <<
" types"<<std::endl;
218 for(TrackerGeometry::DetContainer::const_iterator it = pDD->dets().begin(); it != pDD->dets().end(); it++){
220 if(dynamic_cast<PixelGeomDetUnit const *>((*it))!=0){
222 DetId detId = (*it)->geographicalId();
223 const GeomDetUnit * geoUnit = pDD->idToDetUnit( detId );
231 uint32_t
id = detId();
235 LogDebug (
"PixelDQM") <<
" ---> Adding Barrel Module " << detId.
rawId() << endl;
238 LogDebug (
"PixelDQM") <<
" ---> Adding Endcap Module " << detId.
rawId() << endl;
244 char sside[80]; sprintf(sside,
"HalfCylinder_%i",side);
245 char sdisk[80]; sprintf(sdisk,
"Disk_%i",disk);
246 char sblade[80]; sprintf(sblade,
"Blade_%02i",blade);
247 char spanel[80]; sprintf(spanel,
"Panel_%i",panel);
248 char smodule[80];sprintf(smodule,
"Module_%i",module);
251 bool mask = side_str.find(
"HalfCylinder_1")!=string::npos||
252 side_str.find(
"HalfCylinder_2")!=string::npos||
253 side_str.find(
"HalfCylinder_4")!=string::npos||
254 disk_str.find(
"Disk_2")!=string::npos;
257 if(
isPIB && mask)
continue;
260 LogDebug (
"PixelDQM") <<
" ---> Adding Endcap Module " << detId.
rawId() << endl;
266 char sside[80]; sprintf(sside,
"HalfCylinder_%i",side);
267 char sdisk[80]; sprintf(sdisk,
"Disk_%i",disk);
268 char sblade[80]; sprintf(sblade,
"Blade_%02i",blade);
269 char spanel[80]; sprintf(spanel,
"Panel_%i",panel);
270 char smodule[80];sprintf(smodule,
"Module_%i",module);
273 bool mask = side_str.find(
"HalfCylinder_1")!=string::npos||
274 side_str.find(
"HalfCylinder_2")!=string::npos||
275 side_str.find(
"HalfCylinder_4")!=string::npos||
276 disk_str.find(
"Disk_2")!=string::npos;
279 if(
isPIB && mask)
continue;
294 char title[256]; snprintf(title, 256,
"Rate of events with >%i FPIX clusters;LumiSection;Rate of large FPIX events per LS [Hz]",
bigEventSize);
298 std::map<uint32_t,SiPixelClusterModule*>::iterator struct_iter;
311 <<
"[SiPixelClusterSource::bookMEs] Creation of DQM folder failed";
318 LogDebug (
"PixelDQM") <<
"PROBLEM WITH LADDER-FOLDER\n";
325 LogDebug (
"PixelDQM") <<
"PROBLEM WITH LAYER-FOLDER\n";
332 LogDebug (
"PixelDQM") <<
"PROBLEM WITH PHI-FOLDER\n";
339 LogDebug (
"PixelDQM") <<
"PROBLEM WITH BLADE-FOLDER\n";
346 LogDebug (
"PixelDQM") <<
"PROBLEM WITH DISK-FOLDER\n";
353 LogDebug (
"PixelDQM") <<
"PROBLEM WITH RING-FOLDER\n";
360 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