78 virtual void endJob()
override ;
152 std::vector<edm::ParameterSet> wantedsubdets_ps = iConfig.getParameter<std::vector<edm::ParameterSet> >(
"wantedSubDets");
154 for(std::vector<edm::ParameterSet>::const_iterator wsdps = wantedsubdets_ps.begin();wsdps!=wantedsubdets_ps.end();++wsdps) {
156 unsigned int detsel = wsdps->getParameter<
unsigned int>(
"detSelection");
157 std::vector<std::string> selstr = wsdps->getUntrackedParameter<std::vector<std::string> >(
"selection");
191 for(std::map<unsigned int,int>::const_iterator mult=mults->begin();mult!=mults->end();mult++) {
203 for(std::map<unsigned int,int>::const_iterator occu=occus->begin();occu!=occus->end();occu++) {
235 LogDebug(
"IsThereTest") <<
"Test of TrackerGeometry::isThere";
258 for(TrackingGeometry::DetIdContainer::const_iterator det = detunits.begin(); det!=detunits.end(); ++det) {
273 double dzdr = posvect.
perp()>0 ? (dz.
x()*posvect.
x()+dz.
y()*posvect.
y())/posvect.
perp() : 0. ;
274 double dxdr = posvect.
perp()>0 ? (dx.
x()*posvect.
x()+dx.
y()*posvect.
y())/posvect.
perp() : 0. ;
275 double dydr = posvect.
perp()>0 ? (dy.
x()*posvect.
x()+dy.
y()*posvect.
y())/posvect.
perp() : 0. ;
277 double dzdrphi = posvect.
perp()>0 ? (dz.
y()*posvect.
x()-dz.
x()*posvect.
y())/posvect.
perp() : 0. ;
278 double dxdrphi = posvect.
perp()>0 ? (dx.
y()*posvect.
x()-dx.
x()*posvect.
y())/posvect.
perp() : 0. ;
279 double dydrphi = posvect.
perp()>0 ? (dy.
y()*posvect.
x()-dy.
x()*posvect.
y())/posvect.
perp() : 0. ;
283 if(sel->second.isSelected(*det)) {
287 if(
m_avez && *
m_avez) (*m_avez)->Fill(sel->first,position.z());
288 if(
m_avex && *
m_avex) (*m_avex)->Fill(sel->first,position.x());
289 if(
m_avey && *
m_avey) (*m_avey)->Fill(sel->first,position.y());
316 const std::vector<uint32_t>& detids = reader->
getAllDetIds();
318 for(std::vector<uint32_t>::const_iterator detid=detids.begin();detid!=detids.end();++detid) {
330 if(sel->second.isSelected(*detid)) {
345 const std::vector<uint32_t>& pxldetids = pxlreader.
getAllDetIds();
347 for(std::vector<uint32_t>::const_iterator detid=pxldetids.begin();detid!=pxldetids.end();++detid) {
349 int nchannideal = pxlreader.getDetUnitDimensions(*detid).first*pxlreader.getDetUnitDimensions(*detid).second;
352 nchannreal = pxlreader.getDetUnitDimensions(*detid).first*pxlreader.getDetUnitDimensions(*detid).second;
363 if(sel->second.isSelected(*detid)) {
const DetIdContainer & detUnitIds() const override
Returm a vector of all GeomDetUnit DetIds.
OccupancyPlots(const edm::ParameterSet &)
const std::vector< uint32_t > & getAllDetIds() const
TH1F ** m_nchannels_ideal
const std::pair< unsigned short, double > getNumberOfApvsAndStripLength(uint32_t detId) const
bool getByToken(EDGetToken token, Handle< PROD > &result) const
virtual void beginRun(const edm::Run &, const edm::EventSetup &) override
#define DEFINE_FWK_MODULE(type)
bool IsStripBad(const uint32_t &detid, const short &strip) const
GlobalPoint toGlobal(const Local2DPoint &lp) const
Conversion to the global R.F. from the R.F. of the GeomDet.
auto vector_transform(std::vector< InputType > const &input, Function predicate) -> std::vector< typename std::remove_cv< typename std::remove_reference< decltype(predicate(input.front()))>::type >::type >
virtual void beginJob() override
RunHistogramManager m_rhm
std::vector< edm::EDGetTokenT< std::map< unsigned int, int > > > m_multiplicityMapTokens
std::map< unsigned int, DetIdSelector > m_wantedsubdets
bool isThere(GeomDetEnumerators::SubDetector subdet) const
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
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
TProfile ** makeTProfile(const char *name, const char *title, const unsigned int nbinx, const double xmin, const double xmax)
bool IsModuleBad(const uint32_t &detid) const
TProfile ** m_avemultiplicity
void beginRun(const edm::Run &iRun)
std::vector< edm::EDGetTokenT< std::map< unsigned int, int > > > m_occupancyMapTokens
static int position[264][3]
const TrackerGeomDet * idToDet(DetId) const override
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