77 virtual void endJob()
override ;
121 m_multiplicityMaps(iConfig.getParameter<std::vector<edm::InputTag> >(
"multiplicityMaps")),
122 m_occupancyMaps(iConfig.getParameter<std::vector<edm::InputTag> >(
"occupancyMaps")),
123 m_fp(iConfig.getUntrackedParameter<edm::
FileInPath>(
"file",edm::
FileInPath(
"CalibTracker/SiPixelESProducers/data/PixelSkimmedGeometry.txt"))),
124 m_rhm(), m_wantedsubdets()
147 std::vector<edm::ParameterSet> wantedsubdets_ps = iConfig.
getParameter<std::vector<edm::ParameterSet> >(
"wantedSubDets");
149 for(std::vector<edm::ParameterSet>::const_iterator wsdps = wantedsubdets_ps.begin();wsdps!=wantedsubdets_ps.end();++wsdps) {
151 unsigned int detsel = wsdps->getParameter<
unsigned int>(
"detSelection");
152 std::vector<std::string> selstr = wsdps->getUntrackedParameter<std::vector<std::string> >(
"selection");
186 for(std::map<unsigned int,int>::const_iterator
mult=mults->begin();
mult!=mults->end();
mult++) {
198 for(std::map<unsigned int,int>::const_iterator occu=occus->begin();occu!=occus->end();occu++) {
237 for(TrackingGeometry::DetIdContainer::const_iterator det = detunits.begin(); det!=detunits.end(); ++det) {
244 GlobalPoint zpos = trkgeo->idToDet(*det)->toGlobal(locz);
245 GlobalPoint xpos = trkgeo->idToDet(*det)->toGlobal(locx);
246 GlobalPoint ypos = trkgeo->idToDet(*det)->toGlobal(locy);
252 double dzdr = posvect.
perp()>0 ? (dz.
x()*posvect.
x()+dz.
y()*posvect.
y())/posvect.
perp() : 0. ;
253 double dxdr = posvect.
perp()>0 ? (dx.
x()*posvect.
x()+dx.
y()*posvect.
y())/posvect.
perp() : 0. ;
254 double dydr = posvect.
perp()>0 ? (dy.
x()*posvect.
x()+dy.
y()*posvect.
y())/posvect.
perp() : 0. ;
256 double dzdrphi = posvect.
perp()>0 ? (dz.
y()*posvect.
x()-dz.
x()*posvect.
y())/posvect.
perp() : 0. ;
257 double dxdrphi = posvect.
perp()>0 ? (dx.
y()*posvect.
x()-dx.
x()*posvect.
y())/posvect.
perp() : 0. ;
258 double dydrphi = posvect.
perp()>0 ? (dy.
y()*posvect.
x()-dy.
x()*posvect.
y())/posvect.
perp() : 0. ;
262 if(
sel->second.isSelected(*det)) {
287 const std::vector<uint32_t>& detids = reader->
getAllDetIds();
289 for(std::vector<uint32_t>::const_iterator
detid=detids.begin();
detid!=detids.end();++
detid) {
294 for(
int strip = 0; strip < nchannideal; ++strip) {
295 if(!quality->IsStripBad(*
detid,strip)) ++nchannreal;
301 if(
sel->second.isSelected(*
detid)) {
316 const std::vector<uint32_t>& pxldetids = pxlreader.
getAllDetIds();
318 for(std::vector<uint32_t>::const_iterator
detid=pxldetids.begin();
detid!=pxldetids.end();++
detid) {
320 int nchannideal = pxlreader.getDetUnitDimensions(*detid).first*pxlreader.getDetUnitDimensions(*detid).second;
322 if(!pxlquality->IsModuleBad(*
detid)) {
323 nchannreal = pxlreader.getDetUnitDimensions(*detid).first*pxlreader.getDetUnitDimensions(*detid).second;
334 if(
sel->second.isSelected(*
detid)) {
OccupancyPlots(const edm::ParameterSet &)
T getParameter(std::string const &) const
const std::vector< uint32_t > & getAllDetIds() const
TH1F ** m_nchannels_ideal
const std::pair< unsigned short, double > getNumberOfApvsAndStripLength(uint32_t detId) const
virtual void beginRun(const edm::Run &, const edm::EventSetup &) override
std::vector< edm::InputTag > m_multiplicityMaps
#define DEFINE_FWK_MODULE(type)
virtual void beginJob() override
RunHistogramManager m_rhm
static int position[TOTALCHAMBERS][3]
std::map< unsigned int, DetIdSelector > m_wantedsubdets
TH1F ** makeTH1F(const char *name, const char *title, const unsigned int nbinx, const double xmin, const double xmax)
const std::vector< uint32_t > & getAllDetIds() const
TProfile ** m_aveoccupancy
TProfile ** makeTProfile(const char *name, const char *title, const unsigned int nbinx, const double xmin, const double xmax)
std::vector< edm::InputTag > m_occupancyMaps
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
TProfile ** m_avemultiplicity
void beginRun(const edm::Run &iRun)
std::string fullPath() const
virtual void endJob() override
virtual void endRun(const edm::Run &, const edm::EventSetup &) override
std::vector< DetId > DetIdContainer
virtual void analyze(const edm::Event &, const edm::EventSetup &) override