1 #ifndef RECOTRACKER_RING_H
2 #define RECOTRACKER_RING_H
80 }
else if ( type == 1 ) {
82 }
else if ( type == 2 ) {
84 }
else if ( type == 3 ) {
86 }
else if ( type == 4 ) {
88 }
else if ( type == 5 ) {
111 double dphi_scalefactor = 1.5)
const {
118 if (
phi != 999999. ) {
119 phi_inner =
map_phi(
phi - dphi_scalefactor*delta_phi);
120 phi_outer =
map_phi(
phi + dphi_scalefactor*delta_phi);
124 if ( phi_inner > phi_outer ) {
127 if (
id ==
ring->second ) {
132 if (
id ==
ring->second ) {
138 if (
id ==
ring->second ) {
167 inline void initialize(
float rmin,
float rmax,
float zmin,
float zmax) {
175 edm::LogWarning(
"RoadSearch") <<
"Ring " <<
index_ <<
" does not have initialized values for r_min, r_max, z_min, z_max! Using default value of 0. !"; }
197 std::ostringstream stream;
198 stream <<
"Ring: " <<
index_
199 <<
" rmin: " <<
rmin_
200 <<
" rmax: " <<
rmax_
201 <<
" zmin: " <<
zmin_
202 <<
" zmax: " <<
zmax_
203 <<
" number of DetUnits: " <<
detids_.size();
207 inline std::string
dump()
const {
208 std::ostringstream stream;
209 stream <<
"### Ring with index: " <<
index_ <<
" ###" << std::endl;
215 <<
" " <<
type_ << std::endl;
216 stream <<
detids_.size() << std::endl;
218 stream <<
entry->first <<
" " <<
entry->second.rawId() << std::endl;
std::pair< const_iterator, const_iterator > ConstIteratorRange
unsigned int getindex() const
const_iterator upper_bound(double phi) const
bool isInitialized() const
std::pair< iterator, iterator > IteratorRange
bool containsDetId(DetId id, double phi=999999., double dphi_scalefactor=1.5) const
void setzmax(float input)
int operator!=(const Ring &ring) const
inequality
DetIdMap getDetIdMap() const
void setindex(unsigned int input)
void setrmin(float input)
Ring(unsigned int index, float rmin, float rmax, float zmin, float zmax, unsigned int type)
const_iterator lower_bound(double phi) const
const_iterator begin() const
int operator==(const Ring &ring) const
equality
std::string print() const
std::pair< std::string, MonitorElement * > entry
void setrmax(float input)
void notInitializedMsg() const
void setzmin(float input)
double delta_phi(double ph11, double phi2)
int operator<(const Ring &ring) const
comparison
void initialize(float rmin, float rmax, float zmin, float zmax)
std::multimap< double, DetId > DetIdMap
const_iterator end() const
double map_phi(double phi) const
DetIdMap::const_iterator const_iterator
DetIdMap::iterator iterator
void setInitialized(bool input)
void addId(double phi, DetId id)