54 saveFile( conf_.getUntrackedParameter<
bool>(
"saveFile",
false) ),
55 isPIB( conf_.getUntrackedParameter<
bool>(
"isPIB",
false) ),
56 slowDown( conf_.getUntrackedParameter<
bool>(
"slowDown",
false) ),
57 modOn( conf_.getUntrackedParameter<
bool>(
"modOn",
true) ),
58 twoDimOn( conf_.getUntrackedParameter<
bool>(
"twoDimOn",
true) ),
59 reducedSet( conf_.getUntrackedParameter<
bool>(
"reducedSet",
false) ),
60 ladOn( conf_.getUntrackedParameter<
bool>(
"ladOn",
false) ),
61 layOn( conf_.getUntrackedParameter<
bool>(
"layOn",
false) ),
62 phiOn( conf_.getUntrackedParameter<
bool>(
"phiOn",
false) ),
63 ringOn( conf_.getUntrackedParameter<
bool>(
"ringOn",
false) ),
64 bladeOn( conf_.getUntrackedParameter<
bool>(
"bladeOn",
false) ),
65 diskOn( conf_.getUntrackedParameter<
bool>(
"diskOn",
false) ),
66 isUpgrade( conf_.getUntrackedParameter<
bool>(
"isUpgrade",
false) )
69 LogInfo (
"PixelDQM") <<
"SiPixelRecHitSource::SiPixelRecHitSource: Got DQM BackEnd interface"<<endl;
78 LogInfo (
"PixelDQM") <<
"SiPixelRecHitSource::~SiPixelRecHitSource: Destructor"<<endl;
79 std::map<uint32_t,SiPixelRecHitModule*>::iterator struct_iter;
81 delete struct_iter->second;
82 struct_iter->second =
nullptr;
89 LogInfo (
"PixelDQM") <<
" SiPixelRecHitSource::beginJob - Initialisation ... " << std::endl;
120 std::map<uint32_t,SiPixelRecHitModule*>::iterator struct_iter;
122 uint32_t TheID = (*struct_iter).first;
131 if (match != recHitColl->
end()) {
137 for ( ; pixeliter != pixelrechitRangeIteratorEnd; pixeliter++)
144 int sizeX = (*clust).sizeX();
146 int sizeY = (*clust).sizeY();
152 LocalError lerr = pixeliter->localPositionError();
153 float lerr_x =
sqrt(lerr.
xx());
154 float lerr_y =
sqrt(lerr.
yy());
156 (*struct_iter).second->fill(rechit_x, rechit_y, sizeX, sizeY, lerr_x, lerr_y,
176 LogInfo (
"PixelDQM") <<
" SiPixelRecHitSource::buildStructure" ;
187 LogVerbatim (
"PixelDQM") <<
" *** Geometry node for TrackerGeom is "<<&(*pDD)<<std::endl;
188 LogVerbatim (
"PixelDQM") <<
" *** I have " << pDD->
dets().size() <<
" detectors"<<std::endl;
189 LogVerbatim (
"PixelDQM") <<
" *** I have " << pDD->
detTypes().size() <<
" types"<<std::endl;
191 for(TrackerGeometry::DetContainer::const_iterator it = pDD->
dets().begin(); it != pDD->
dets().end(); it++){
193 if(dynamic_cast<PixelGeomDetUnit const *>((*it))!=
nullptr){
195 DetId detId = (*it)->geographicalId();
200 uint32_t
id = detId();
205 LogDebug (
"PixelDQM") <<
" ---> Adding Barrel Module " << detId.
rawId() << endl;
210 LogDebug (
"PixelDQM") <<
" ---> Adding Endcap Module " << detId.
rawId() << endl;
218 char sside[80]; sprintf(sside,
"HalfCylinder_%i",side);
219 char sdisk[80]; sprintf(sdisk,
"Disk_%i",disk);
220 char sblade[80]; sprintf(sblade,
"Blade_%02i",blade);
221 char spanel[80]; sprintf(spanel,
"Panel_%i",panel);
222 char smodule[80];sprintf(smodule,
"Module_%i",module);
225 bool mask = side_str.find(
"HalfCylinder_1")!=string::npos||
226 side_str.find(
"HalfCylinder_2")!=string::npos||
227 side_str.find(
"HalfCylinder_4")!=string::npos||
228 disk_str.find(
"Disk_2")!=string::npos;
229 if(
isPIB && mask)
continue;
245 std::map<uint32_t,SiPixelRecHitModule*>::iterator struct_iter;
257 <<
"[SiPixelDigiSource::bookMEs] Creation of DQM folder failed";
264 LogDebug (
"PixelDQM") <<
"PROBLEM WITH LADDER-FOLDER\n";
271 LogDebug (
"PixelDQM") <<
"PROBLEM WITH LAYER-FOLDER\n";
278 LogDebug (
"PixelDQM") <<
"PROBLEM WITH PHI-FOLDER\n";
285 LogDebug (
"PixelDQM") <<
"PROBLEM WITH BLADE-FOLDER\n";
292 LogDebug (
"PixelDQM") <<
"PROBLEM WITH DISK-FOLDER\n";
299 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
const_iterator end(bool update=false) const
bool getByToken(EDGetToken token, Handle< PROD > &result) const
SiPixelRecHitSource(const edm::ParameterSet &conf)
#define DEFINE_FWK_MODULE(type)
const DetTypeContainer & detTypes() const override
Return a vector of all det types.
~SiPixelRecHitSource() override
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
void dqmBeginRun(const edm::Run &, edm::EventSetup const &) override
int bladeName() const
blade id
const DetContainer & dets() const override
Returm a vector of all GeomDet (including all GeomDetUnits)
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) ...
void analyze(const edm::Event &, const edm::EventSetup &) override
edm::EDGetTokenT< SiPixelRecHitCollection > src_
const_iterator find(id_type i, bool update=false) const
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.
HalfCylinder halfCylinder() const
T const * product() const