CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Classes | Public Member Functions | Private Member Functions | Private Attributes
PixelUnpackingRegions Class Reference

#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 nBarrelFEDs () const
 
unsigned int nBarrelModules () const
 
unsigned int nFEDs () const
 various informational accessors: More...
 
unsigned int nForwardFEDs () const
 
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_
 
std::vector< double > dPhi_
 
std::set< unsigned int > feds_
 
std::vector< edm::InputTaginputs_
 
std::vector< double > maxZ_
 
std::set< unsigned int > modules_
 
unsigned int nreg_
 
std::vector< ModulephiBPIX_
 
std::vector< ModulephiFPIXm_
 
std::vector< ModulephiFPIXp_
 
edm::EDGetTokenT< reco::BeamSpottBeamSpot
 
std::vector< edm::EDGetTokenT
< reco::CandidateView > > 
tCandidateView
 
edm::ESWatcher
< SiPixelFedCablingMapRcd
watcherSiPixelFedCablingMap_
 

Detailed Description

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 30 of file PixelUnpackingRegions.h.

Constructor & Destructor Documentation

PixelUnpackingRegions::PixelUnpackingRegions ( const edm::ParameterSet conf,
edm::ConsumesCollector &&  iC 
)

Definition at line 40 of file PixelUnpackingRegions.cc.

PixelUnpackingRegions::~PixelUnpackingRegions ( )
inline

Definition at line 55 of file PixelUnpackingRegions.h.

55 {}

Member Function Documentation

void PixelUnpackingRegions::addRegion ( Region r)
private

Definition at line 153 of file PixelUnpackingRegions.cc.

void PixelUnpackingRegions::addRegionLocal ( Region r,
std::vector< Module > &  container,
const Module lo,
const Module hi 
)
private

Definition at line 174 of file PixelUnpackingRegions.cc.

void PixelUnpackingRegions::gatherFromRange ( Region r,
std::vector< Module >::const_iterator  a,
std::vector< Module >::const_iterator  b 
)
private

Definition at line 204 of file PixelUnpackingRegions.cc.

void PixelUnpackingRegions::initialize ( const edm::EventSetup es)
private

run by the run method: (re)initialize the cabling data when it's necessary

Definition at line 91 of file PixelUnpackingRegions.cc.

bool PixelUnpackingRegions::mayUnpackFED ( unsigned int  fed_n) const

check whether a FED has to be unpacked

Definition at line 220 of file PixelUnpackingRegions.cc.

bool PixelUnpackingRegions::mayUnpackModule ( unsigned int  id) const

check whether a module has to be unpacked

Definition at line 237 of file PixelUnpackingRegions.cc.

const std::set<unsigned int>* PixelUnpackingRegions::modulesToUnpack ( ) const
inline

full set of module ids to unpack

Definition at line 67 of file PixelUnpackingRegions.h.

References modules_.

67 {return &modules_;}
std::set< unsigned int > modules_
unsigned int PixelUnpackingRegions::nBarrelFEDs ( ) const

Definition at line 226 of file PixelUnpackingRegions.cc.

unsigned int PixelUnpackingRegions::nBarrelModules ( ) const

Definition at line 243 of file PixelUnpackingRegions.cc.

unsigned int PixelUnpackingRegions::nFEDs ( ) const
inline

various informational accessors:

Definition at line 70 of file PixelUnpackingRegions.h.

References feds_.

70 { return feds_.size(); }
std::set< unsigned int > feds_
unsigned int PixelUnpackingRegions::nForwardFEDs ( ) const

Definition at line 231 of file PixelUnpackingRegions.cc.

unsigned int PixelUnpackingRegions::nForwardModules ( ) const

Definition at line 248 of file PixelUnpackingRegions.cc.

unsigned int PixelUnpackingRegions::nModules ( ) const
inline

Definition at line 73 of file PixelUnpackingRegions.h.

References modules_.

73 { return modules_.size(); }
std::set< unsigned int > modules_
unsigned int PixelUnpackingRegions::nRegions ( ) const
inline

Definition at line 76 of file PixelUnpackingRegions.h.

References nreg_.

76 { return nreg_; }
void PixelUnpackingRegions::run ( const edm::Event e,
const edm::EventSetup es 
)

has to be run during each event

Definition at line 59 of file PixelUnpackingRegions.cc.

Member Data Documentation

math::XYZPoint PixelUnpackingRegions::beamSpot_
private

Definition at line 129 of file PixelUnpackingRegions.h.

edm::InputTag PixelUnpackingRegions::beamSpotTag_
private

Definition at line 102 of file PixelUnpackingRegions.h.

std::unique_ptr<SiPixelFedCablingTree> PixelUnpackingRegions::cabling_
private

Definition at line 128 of file PixelUnpackingRegions.h.

std::vector<double> PixelUnpackingRegions::dPhi_
private

Definition at line 100 of file PixelUnpackingRegions.h.

std::set<unsigned int> PixelUnpackingRegions::feds_
private

Definition at line 107 of file PixelUnpackingRegions.h.

Referenced by nFEDs().

std::vector<edm::InputTag> PixelUnpackingRegions::inputs_
private

Definition at line 99 of file PixelUnpackingRegions.h.

std::vector<double> PixelUnpackingRegions::maxZ_
private

Definition at line 101 of file PixelUnpackingRegions.h.

std::set<unsigned int> PixelUnpackingRegions::modules_
private

Definition at line 108 of file PixelUnpackingRegions.h.

Referenced by modulesToUnpack(), and nModules().

unsigned int PixelUnpackingRegions::nreg_
private

Definition at line 109 of file PixelUnpackingRegions.h.

Referenced by nRegions().

std::vector<Module> PixelUnpackingRegions::phiBPIX_
private

Definition at line 124 of file PixelUnpackingRegions.h.

std::vector<Module> PixelUnpackingRegions::phiFPIXm_
private

Definition at line 126 of file PixelUnpackingRegions.h.

std::vector<Module> PixelUnpackingRegions::phiFPIXp_
private

Definition at line 125 of file PixelUnpackingRegions.h.

edm::EDGetTokenT<reco::BeamSpot> PixelUnpackingRegions::tBeamSpot
private

Definition at line 104 of file PixelUnpackingRegions.h.

std::vector<edm::EDGetTokenT<reco::CandidateView> > PixelUnpackingRegions::tCandidateView
private

Definition at line 105 of file PixelUnpackingRegions.h.

edm::ESWatcher<SiPixelFedCablingMapRcd> PixelUnpackingRegions::watcherSiPixelFedCablingMap_
private

Definition at line 131 of file PixelUnpackingRegions.h.