#include <PixelUnpackingRegions.h>
Classes | |
struct | Module |
struct | Region |
Public Member Functions | |
bool | mayUnpackFED (unsigned int fed_n) const |
check whether a FED has to be unpacked More... | |
bool | mayUnpackModule (unsigned int id) const |
check whether a module has to be unpacked More... | |
const std::set< unsigned int > * | modulesToUnpack () const |
full set of module ids to unpack More... | |
unsigned int | nBarrelModules () const |
unsigned int | nFEDs () const |
various informational accessors: More... | |
unsigned int | nForwardModules () const |
unsigned int | nModules () const |
unsigned int | nRegions () const |
PixelUnpackingRegions (const edm::ParameterSet &, edm::ConsumesCollector &&iC) | |
void | run (const edm::Event &e, const edm::EventSetup &es) |
has to be run during each event More... | |
~PixelUnpackingRegions () | |
Private Member Functions | |
void | addRegion (Region &r) |
void | addRegionLocal (Region &r, std::vector< Module > &container, const Module &lo, const Module &hi) |
void | gatherFromRange (Region &r, std::vector< Module >::const_iterator, std::vector< Module >::const_iterator) |
void | initialize (const edm::EventSetup &es) |
run by the run method: (re)initialize the cabling data when it's necessary More... | |
Private Attributes | |
math::XYZPoint | beamSpot_ |
edm::InputTag | beamSpotTag_ |
std::unique_ptr< SiPixelFedCablingTree > | cabling_ |
edm::ESGetToken< SiPixelFedCablingMap, SiPixelFedCablingMapRcd > | cablingMapToken_ |
std::vector< double > | dPhi_ |
std::set< unsigned int > | feds_ |
std::vector< edm::InputTag > | inputs_ |
std::vector< double > | maxZ_ |
std::set< unsigned int > | modules_ |
unsigned int | nreg_ |
std::vector< Module > | phiBPIX_ |
std::vector< Module > | phiFPIXm_ |
std::vector< Module > | phiFPIXp_ |
edm::EDGetTokenT< reco::BeamSpot > | tBeamSpot |
std::vector< edm::EDGetTokenT< reco::CandidateView > > | tCandidateView |
edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord > | trackerGeomToken_ |
edm::ESWatcher< SiPixelFedCablingMapRcd > | watcherSiPixelFedCablingMap_ |
Input: One or several collections of Candidate-based seeds with their objects defining the directions of unpacking regions; separate deltaPhi and maxZ tolerances could be given to each input collection. Output: FED ids and module detIds that need to be unpacked
Definition at line 32 of file PixelUnpackingRegions.h.
PixelUnpackingRegions::PixelUnpackingRegions | ( | const edm::ParameterSet & | conf, |
edm::ConsumesCollector && | iC | ||
) |
Definition at line 28 of file PixelUnpackingRegions.cc.
References beamSpotTag_, cablingMapToken_, dPhi_, edm::ParameterSet::getParameter(), inputs_, maxZ_, submitPVValidationJobs::t, tBeamSpot, tCandidateView, and trackerGeomToken_.
|
inline |
Definition at line 51 of file PixelUnpackingRegions.h.
|
private |
Definition at line 139 of file PixelUnpackingRegions.cc.
References addRegionLocal(), nreg_, phi, phiBPIX_, phiFPIXm_, phiFPIXp_, and alignCSCRings::r.
Referenced by run().
|
private |
Definition at line 156 of file PixelUnpackingRegions.cc.
References a, b, gatherFromRange(), pfDeepBoostedJetPreprocessParams_cfi::lower_bound, M_PI, PixelUnpackingRegions::Module::phi, alignCSCRings::r, and pfDeepBoostedJetPreprocessParams_cfi::upper_bound.
Referenced by addRegion().
|
private |
Definition at line 188 of file PixelUnpackingRegions.cc.
References a, funct::abs(), b, beamSpot_, feds_, modules_, and alignCSCRings::r.
Referenced by addRegionLocal().
|
private |
run by the run method: (re)initialize the cabling data when it's necessary
Definition at line 76 of file PixelUnpackingRegions.cc.
References cms::cuda::assert(), cabling_, cablingMapToken_, SiPixelFedCablingMap::cablingTree(), edm::ESWatcher< T >::check(), relativeConstraints::geom, edm::EventSetup::getHandle(), visualization-live-secondInstance_cfg::m, FEDNumbering::MAXSiPixelFEDID, FEDNumbering::MAXSiPixeluTCAFEDID, FEDNumbering::MINSiPixelFEDID, FEDNumbering::MINSiPixeluTCAFEDID, GeomDetEnumerators::P1PXB, GeomDetEnumerators::P1PXEC, phiBPIX_, phiFPIXm_, phiFPIXp_, PixelSubdetector::PixelBarrel, PixelSubdetector::PixelEndcap, jetsAK4_CHS_cff::sort, trackerGeomToken_, and watcherSiPixelFedCablingMap_.
Referenced by run().
bool PixelUnpackingRegions::mayUnpackFED | ( | unsigned int | fed_n | ) | const |
check whether a FED has to be unpacked
Definition at line 204 of file PixelUnpackingRegions.cc.
References feds_.
Referenced by SiPixelRawToDigi::produce().
bool PixelUnpackingRegions::mayUnpackModule | ( | unsigned int | id | ) | const |
check whether a module has to be unpacked
Definition at line 210 of file PixelUnpackingRegions.cc.
References modules_.
|
inline |
full set of module ids to unpack
Definition at line 63 of file PixelUnpackingRegions.h.
References modules_.
Referenced by SiPixelRawToDigi::produce().
unsigned int PixelUnpackingRegions::nBarrelModules | ( | ) | const |
Definition at line 216 of file PixelUnpackingRegions.cc.
References modules_.
Referenced by SiPixelRawToDigi::produce().
|
inline |
various informational accessors:
Definition at line 66 of file PixelUnpackingRegions.h.
References feds_.
Referenced by SiPixelRawToDigi::produce().
unsigned int PixelUnpackingRegions::nForwardModules | ( | ) | const |
Definition at line 220 of file PixelUnpackingRegions.cc.
References modules_.
Referenced by SiPixelRawToDigi::produce().
|
inline |
Definition at line 67 of file PixelUnpackingRegions.h.
References modules_.
Referenced by SiPixelRawToDigi::produce().
|
inline |
void PixelUnpackingRegions::run | ( | const edm::Event & | e, |
const edm::EventSetup & | es | ||
) |
has to be run during each event
Definition at line 48 of file PixelUnpackingRegions.cc.
References addRegion(), pwdgSkimBPark_cfi::beamSpot, beamSpot_, c, dPhi_, MillePedeFileConverter_cfg::e, feds_, h, mps_fire::i, initialize(), input, inputs_, maxZ_, modules_, dqmiodumpmetadata::n, nreg_, alignCSCRings::r, tBeamSpot, and tCandidateView.
Referenced by Types.EventID::cppID(), Types.LuminosityBlockID::cppID(), and SiPixelRawToDigi::produce().
|
private |
Definition at line 122 of file PixelUnpackingRegions.h.
Referenced by gatherFromRange(), and run().
|
private |
Definition at line 95 of file PixelUnpackingRegions.h.
Referenced by PixelUnpackingRegions().
|
private |
Definition at line 121 of file PixelUnpackingRegions.h.
Referenced by initialize().
|
private |
Definition at line 126 of file PixelUnpackingRegions.h.
Referenced by initialize(), and PixelUnpackingRegions().
|
private |
Definition at line 93 of file PixelUnpackingRegions.h.
Referenced by PixelUnpackingRegions(), and run().
|
private |
Definition at line 100 of file PixelUnpackingRegions.h.
Referenced by gatherFromRange(), mayUnpackFED(), nFEDs(), and run().
|
private |
Definition at line 92 of file PixelUnpackingRegions.h.
Referenced by PixelUnpackingRegions(), and run().
|
private |
Definition at line 94 of file PixelUnpackingRegions.h.
Referenced by PixelUnpackingRegions(), and run().
|
private |
Definition at line 101 of file PixelUnpackingRegions.h.
Referenced by gatherFromRange(), mayUnpackModule(), modulesToUnpack(), nBarrelModules(), nForwardModules(), nModules(), and run().
|
private |
Definition at line 102 of file PixelUnpackingRegions.h.
Referenced by addRegion(), nRegions(), and run().
|
private |
Definition at line 117 of file PixelUnpackingRegions.h.
Referenced by addRegion(), and initialize().
|
private |
Definition at line 119 of file PixelUnpackingRegions.h.
Referenced by addRegion(), and initialize().
|
private |
Definition at line 118 of file PixelUnpackingRegions.h.
Referenced by addRegion(), and initialize().
|
private |
Definition at line 97 of file PixelUnpackingRegions.h.
Referenced by PixelUnpackingRegions(), and run().
|
private |
Definition at line 98 of file PixelUnpackingRegions.h.
Referenced by PixelUnpackingRegions(), and run().
|
private |
Definition at line 125 of file PixelUnpackingRegions.h.
Referenced by initialize(), and PixelUnpackingRegions().
|
private |
Definition at line 124 of file PixelUnpackingRegions.h.
Referenced by initialize().