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;
77 LogInfo (
"PixelDQM") <<
"SiPixelRecHitSource::~SiPixelRecHitSource: Destructor"<<endl;
78 std::map<uint32_t,SiPixelRecHitModule*>::iterator struct_iter;
80 delete struct_iter->second;
81 struct_iter->second = 0;
88 LogInfo (
"PixelDQM") <<
" SiPixelRecHitSource::beginJob - Initialisation ... " << std::endl;
119 std::map<uint32_t,SiPixelRecHitModule*>::iterator struct_iter;
121 uint32_t TheID = (*struct_iter).first;
130 if (match != recHitColl->end()) {
136 for ( ; pixeliter != pixelrechitRangeIteratorEnd; pixeliter++)
143 int sizeX = (*clust).sizeX();
145 int sizeY = (*clust).sizeY();
151 LocalError lerr = pixeliter->localPositionError();
152 float lerr_x =
sqrt(lerr.
xx());
153 float lerr_y =
sqrt(lerr.
yy());
155 (*struct_iter).second->fill(rechit_x, rechit_y, sizeX, sizeY, lerr_x, lerr_y,
175 LogInfo (
"PixelDQM") <<
" SiPixelRecHitSource::buildStructure" ;
186 LogVerbatim (
"PixelDQM") <<
" *** Geometry node for TrackerGeom is "<<&(*pDD)<<std::endl;
187 LogVerbatim (
"PixelDQM") <<
" *** I have " << pDD->dets().size() <<
" detectors"<<std::endl;
188 LogVerbatim (
"PixelDQM") <<
" *** I have " << pDD->detTypes().size() <<
" types"<<std::endl;
190 for(TrackerGeometry::DetContainer::const_iterator it = pDD->dets().begin(); it != pDD->dets().end(); it++){
192 if(dynamic_cast<PixelGeomDetUnit const *>((*it))!=0){
194 DetId detId = (*it)->geographicalId();
199 uint32_t
id = detId();
204 LogDebug (
"PixelDQM") <<
" ---> Adding Barrel Module " << detId.
rawId() << endl;
209 LogDebug (
"PixelDQM") <<
" ---> Adding Endcap Module " << detId.
rawId() << endl;
217 char sside[80]; sprintf(sside,
"HalfCylinder_%i",side);
218 char sdisk[80]; sprintf(sdisk,
"Disk_%i",disk);
219 char sblade[80]; sprintf(sblade,
"Blade_%02i",blade);
220 char spanel[80]; sprintf(spanel,
"Panel_%i",panel);
221 char smodule[80];sprintf(smodule,
"Module_%i",module);
224 bool mask = side_str.find(
"HalfCylinder_1")!=string::npos||
225 side_str.find(
"HalfCylinder_2")!=string::npos||
226 side_str.find(
"HalfCylinder_4")!=string::npos||
227 disk_str.find(
"Disk_2")!=string::npos;
228 if(
isPIB && mask)
continue;
244 std::map<uint32_t,SiPixelRecHitModule*>::iterator struct_iter;
256 <<
"[SiPixelDigiSource::bookMEs] Creation of DQM folder failed";
263 LogDebug (
"PixelDQM") <<
"PROBLEM WITH LADDER-FOLDER\n";
270 LogDebug (
"PixelDQM") <<
"PROBLEM WITH LAYER-FOLDER\n";
277 LogDebug (
"PixelDQM") <<
"PROBLEM WITH PHI-FOLDER\n";
284 LogDebug (
"PixelDQM") <<
"PROBLEM WITH BLADE-FOLDER\n";
291 LogDebug (
"PixelDQM") <<
"PROBLEM WITH DISK-FOLDER\n";
298 LogDebug (
"PixelDQM") <<
"PROBLEM WITH RING-FOLDER\n";
int plaquetteName() const
plaquetteId (in pannel)
T getParameter(std::string const &) const
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 &, const edm::EventSetup &iSetup)
virtual void buildStructure(edm::EventSetup const &)
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 &)
virtual void bookHistograms(DQMStore::IBooker &, edm::Run const &, const edm::EventSetup &) override
std::string topFolderName_
bool setModuleFolder(const uint32_t &rawdetid=0, int type=0, bool isUpgrade=false)
Set folder name for a module or plaquette.
int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
T const * product() const
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