53 saveFile( conf_.getUntrackedParameter<bool>(
"saveFile",
false) ),
54 isPIB( conf_.getUntrackedParameter<bool>(
"isPIB",
false) ),
55 slowDown( conf_.getUntrackedParameter<bool>(
"slowDown",
false) ),
56 modOn( conf_.getUntrackedParameter<bool>(
"modOn",
true) ),
57 twoDimOn( conf_.getUntrackedParameter<bool>(
"twoDimOn",
true) ),
58 reducedSet( conf_.getUntrackedParameter<bool>(
"reducedSet",
false) ),
59 ladOn( conf_.getUntrackedParameter<bool>(
"ladOn",
false) ),
60 layOn( conf_.getUntrackedParameter<bool>(
"layOn",
false) ),
61 phiOn( conf_.getUntrackedParameter<bool>(
"phiOn",
false) ),
62 ringOn( conf_.getUntrackedParameter<bool>(
"ringOn",
false) ),
63 bladeOn( conf_.getUntrackedParameter<bool>(
"bladeOn",
false) ),
64 diskOn( conf_.getUntrackedParameter<bool>(
"diskOn",
false) ),
65 isUpgrade( conf_.getUntrackedParameter<bool>(
"isUpgrade",
false) )
68 LogInfo (
"PixelDQM") <<
"SiPixelRecHitSource::SiPixelRecHitSource: Got DQM BackEnd interface"<<endl;
76 LogInfo (
"PixelDQM") <<
"SiPixelRecHitSource::~SiPixelRecHitSource: Destructor"<<endl;
77 std::map<uint32_t,SiPixelRecHitModule*>::iterator struct_iter;
79 delete struct_iter->second;
80 struct_iter->second = 0;
87 LogInfo (
"PixelDQM") <<
" SiPixelRecHitSource::beginJob - Initialisation ... " << std::endl;
118 std::map<uint32_t,SiPixelRecHitModule*>::iterator struct_iter;
120 uint32_t TheID = (*struct_iter).first;
129 if (match != recHitColl->end()) {
135 for ( ; pixeliter != pixelrechitRangeIteratorEnd; pixeliter++)
142 int sizeX = (*clust).sizeX();
144 int sizeY = (*clust).sizeY();
150 LocalError lerr = pixeliter->localPositionError();
151 float lerr_x =
sqrt(lerr.
xx());
152 float lerr_y =
sqrt(lerr.
yy());
154 (*struct_iter).second->fill(rechit_x, rechit_y, sizeX, sizeY, lerr_x, lerr_y,
174 LogInfo (
"PixelDQM") <<
" SiPixelRecHitSource::buildStructure" ;
178 LogVerbatim (
"PixelDQM") <<
" *** Geometry node for TrackerGeom is "<<&(*pDD)<<std::endl;
179 LogVerbatim (
"PixelDQM") <<
" *** I have " << pDD->dets().size() <<
" detectors"<<std::endl;
180 LogVerbatim (
"PixelDQM") <<
" *** I have " << pDD->detTypes().size() <<
" types"<<std::endl;
182 for(TrackerGeometry::DetContainer::const_iterator it = pDD->dets().begin(); it != pDD->dets().end(); it++){
184 if(dynamic_cast<PixelGeomDetUnit const *>((*it))!=0){
186 DetId detId = (*it)->geographicalId();
190 uint32_t
id = detId();
194 LogDebug (
"PixelDQM") <<
" ---> Adding Barrel Module " << detId.
rawId() << endl;
198 LogDebug (
"PixelDQM") <<
" ---> Adding Endcap Module " << detId.
rawId() << endl;
205 char sside[80]; sprintf(sside,
"HalfCylinder_%i",side);
206 char sdisk[80]; sprintf(sdisk,
"Disk_%i",disk);
207 char sblade[80]; sprintf(sblade,
"Blade_%02i",blade);
208 char spanel[80]; sprintf(spanel,
"Panel_%i",panel);
209 char smodule[80];sprintf(smodule,
"Module_%i",module);
212 bool mask = side_str.find(
"HalfCylinder_1")!=string::npos||
213 side_str.find(
"HalfCylinder_2")!=string::npos||
214 side_str.find(
"HalfCylinder_4")!=string::npos||
215 disk_str.find(
"Disk_2")!=string::npos;
216 if(
isPIB && mask)
continue;
220 LogDebug (
"PixelDQM") <<
" ---> Adding Endcap Module " << detId.
rawId() << endl;
227 char sside[80]; sprintf(sside,
"HalfCylinder_%i",side);
228 char sdisk[80]; sprintf(sdisk,
"Disk_%i",disk);
229 char sblade[80]; sprintf(sblade,
"Blade_%02i",blade);
230 char spanel[80]; sprintf(spanel,
"Panel_%i",panel);
231 char smodule[80];sprintf(smodule,
"Module_%i",module);
234 bool mask = side_str.find(
"HalfCylinder_1")!=string::npos||
235 side_str.find(
"HalfCylinder_2")!=string::npos||
236 side_str.find(
"HalfCylinder_4")!=string::npos||
237 disk_str.find(
"Disk_2")!=string::npos;
238 if(
isPIB && mask)
continue;
253 std::map<uint32_t,SiPixelRecHitModule*>::iterator struct_iter;
265 <<
"[SiPixelDigiSource::bookMEs] Creation of DQM folder failed";
272 LogDebug (
"PixelDQM") <<
"PROBLEM WITH LADDER-FOLDER\n";
279 LogDebug (
"PixelDQM") <<
"PROBLEM WITH LAYER-FOLDER\n";
286 LogDebug (
"PixelDQM") <<
"PROBLEM WITH PHI-FOLDER\n";
293 LogDebug (
"PixelDQM") <<
"PROBLEM WITH BLADE-FOLDER\n";
300 LogDebug (
"PixelDQM") <<
"PROBLEM WITH DISK-FOLDER\n";
307 LogDebug (
"PixelDQM") <<
"PROBLEM WITH RING-FOLDER\n";
int plaquetteName() const
plaquetteId (in pannel)
boost::transform_iterator< IterHelp, const_IdIter > const_iterator
bool getByToken(EDGetToken token, Handle< PROD > &result) const
SiPixelRecHitSource(const edm::ParameterSet &conf)
#define DEFINE_FWK_MODULE(type)
virtual void analyze(const edm::Event &, const edm::EventSetup &)
std::map< uint32_t, int > rechit_count
virtual void bookMEs(DQMStore::IBooker &)
virtual void buildStructure(edm::EventSetup const &)
int plaquetteName() const
plaquetteId (in pannel)
std::map< uint32_t, SiPixelRecHitModule * > thePixelStructure
uint32_t rawId() const
get the raw id
int bladeName() const
blade id
virtual void dqmBeginRun(const edm::Run &, edm::EventSetup const &)
bool setModuleFolder(const uint32_t &rawdetid=0, int type=0, bool isUpgrade=false)
Set folder name for a module or plaquette.
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
edm::EDGetTokenT< SiPixelRecHitCollection > src_
int pannelName() const
pannel id
int diskName() const
disk id
std::pair< typename Association::data_type::first_type, double > match(Reference key, Association association, bool bestMatchByMaxValue)
Generic matching function.
volatile std::atomic< bool > shutdown_flag false
HalfCylinder halfCylinder() const
HalfCylinder halfCylinder() const
int pannelName() const
pannel id
virtual void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override