117 dri != driEnd; ++dri )
119 const CSCDetId& cscDetId = (*dri).first;
120 unsigned int rawid = cscDetId.
rawId();
126 << rawid << std::endl;
136 float length = shape[4];
137 float topWidth = shape[2];
138 float bottomWidth = shape[1];
150 dit != range.second; ++dit )
152 TEveStraightLineSet* wireDigiSet =
new TEveStraightLineSet();
153 wireDigiSet->SetLineWidth(3);
156 int wireGroup = (*dit).getWireGroup();
157 float yOfWire = yOfFirstWire + ((wireGroup-1)*wireSpacing);
158 float wireLength = yOfWire*(topWidth-bottomWidth) / length;
159 wireLength += bottomWidth*2.0;
161 float localPointLeft[3] =
163 static_cast<float>(-wireLength*0.5), yOfWire,
static_cast<float>(0.0)
168 float localPointRight[3] =
170 static_cast<float>(wireLength*0.5), yOfWire,
static_cast<float>(0.0)
174 float globalPointLeft[3];
175 float globalPointRight[3];
177 geom->
localToGlobal( rawid, localPointLeft, globalPointLeft, localPointRight, globalPointRight );
179 wireDigiSet->AddLine( globalPointLeft[0], globalPointLeft[1], globalPointLeft[2],
180 globalPointRight[0], globalPointRight[1], globalPointRight[2] );
void setupAddElement(TEveElement *el, TEveElement *parent, bool set_color=true) const
void get(const T *&oData) const
double getAverageWireSpacing(const int station, const int ring)
uint32_t rawId() const
get the raw id
const float * getShapePars(unsigned int id) const
void localToGlobal(unsigned int id, const float *local, float *global, bool translatep=true) const
bool contains(unsigned int id) const
std::vector< CSCWireDigi >::const_iterator const_iterator
TEveCompound * createCompound(bool set_color=true, bool propagate_color_to_all_children=false) const
std::pair< const_iterator, const_iterator > Range
double getYOfFirstWire(const int station, const int ring, const double length)
const FWGeometry * getGeom() const