|
|
Go to the documentation of this file.
38 for (
unsigned int t = 0;
t <
inputs_.size();
t++)
43 <<
"Not the same size of config parameters vectors!\n"
44 <<
" inputs " <<
inputs_.size() <<
" deltaPhi " <<
dPhi_.size() <<
" maxZ " <<
maxZ_.size();
60 size_t ninputs =
inputs_.size();
66 for (
size_t i = 0;
i <
n; ++
i) {
104 auto it =
geom->dets().begin();
105 for (; it !=
geom->dets().end(); ++it) {
106 int subdet = (*it)->geographicalId().subdetId();
112 m.x = (*it)->position().x();
113 m.y = (*it)->position().y();
114 m.z = (*it)->position().z();
116 m.phi = (*it)->position().phi();
118 m.id = (*it)->geographicalId().rawId();
119 const std::vector<sipixelobjects::CablingPathToDetUnit> path2det =
cabling_->pathToDetUnit(
m.id);
121 m.fed = path2det[0].fed;
122 assert((
m.fed <= fedMax) && (
m.fed >= fedMin));
144 float phi =
r.v.phi();
150 if (
r.v.eta() > 1.) {
153 if (
r.v.eta() < -1.) {
159 std::vector<Module>& container,
167 std::vector<Module>::const_iterator
a,
b;
171 a =
lower_bound(container.begin(), container.end(), lo);
178 a =
lower_bound(container.begin(), container.end(), pi_m);
184 a =
lower_bound(container.begin(), container.end(), lo);
185 b =
upper_bound(container.begin(), container.end(), pi_p);
191 std::vector<Module>::const_iterator
a,
192 std::vector<Module>::const_iterator
b) {
193 for (;
a !=
b; ++
a) {
207 if (
feds_.count(fed_n))
bool check(const edm::EventSetup &iSetup)
edm::InputTag beamSpotTag_
edm::EDGetTokenT< reco::BeamSpot > tBeamSpot
std::vector< edm::EDGetTokenT< reco::CandidateView > > tCandidateView
static const std::string input
std::set< unsigned int > modules_
std::vector< double > dPhi_
std::unique_ptr< SiPixelFedCablingTree > cabling_
FWCore Framework interface EventSetupRecordImplementation h
Helper function to determine trigger accepts.
bool mayUnpackFED(unsigned int fed_n) const
check whether a FED has to be unpacked
std::vector< double > maxZ_
void gatherFromRange(Region &r, std::vector< Module >::const_iterator, std::vector< Module >::const_iterator)
bool mayUnpackModule(unsigned int id) const
check whether a module has to be unpacked
__host__ constexpr __device__ RandomIt upper_bound(RandomIt first, RandomIt last, const T &value, Compare comp={})
PixelUnpackingRegions(const edm::ParameterSet &, edm::ConsumesCollector &&iC)
std::vector< Module > phiBPIX_
std::vector< Module > phiFPIXm_
__host__ constexpr __device__ RandomIt lower_bound(RandomIt first, RandomIt last, const T &value, Compare comp={})
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum)
std::unique_ptr< SiPixelFedCablingTree > cablingTree() const
void addRegionLocal(Region &r, std::vector< Module > &container, const Module &lo, const Module &hi)
T getParameter(std::string const &) const
void initialize(const edm::EventSetup &es)
run by the run method: (re)initialize the cabling data when it's necessary
std::set< unsigned int > feds_
unsigned int nForwardModules() const
edm::ESWatcher< SiPixelFedCablingMapRcd > watcherSiPixelFedCablingMap_
Abs< T >::type abs(const T &t)
void addRegion(Region &r)
std::vector< Module > phiFPIXp_
void run(const edm::Event &e, const edm::EventSetup &es)
has to be run during each event
std::vector< edm::InputTag > inputs_
unsigned int nBarrelModules() const