8 #include "TEvePointSet.h" 9 #include "TEveStraightLineSet.h" 35 TEveElement& oItemHolder,
41 fwLog(
fwlog::kError) <<
"failed to get geometry of CSC layer with detid: " << rawid << std::endl;
46 TEveStraightLineSet* recHitSet =
new TEveStraightLineSet;
49 TEvePointSet* pointSet =
new TEvePointSet;
58 float localU1Point[3] = {localPositionX - localPositionXX, localPositionY, 0.0};
60 float localU2Point[3] = {localPositionX + localPositionXX, localPositionY, 0.0};
62 float localV1Point[3] = {localPositionX, localPositionY - localPositionYY, 0.0};
64 float localV2Point[3] = {localPositionX, localPositionY + localPositionYY, 0.0};
66 float globalU1Point[3];
67 float globalU2Point[3];
68 float globalV1Point[3];
69 float globalV2Point[3];
76 pointSet->SetNextPoint(globalU1Point[0], globalU1Point[1], globalU1Point[2]);
77 pointSet->SetNextPoint(globalU2Point[0], globalU2Point[1], globalU2Point[2]);
78 pointSet->SetNextPoint(globalV1Point[0], globalV1Point[1], globalV1Point[2]);
79 pointSet->SetNextPoint(globalV2Point[0], globalV2Point[1], globalV2Point[2]);
82 globalU1Point[0], globalU1Point[1], globalU1Point[2], globalU2Point[0], globalU2Point[1], globalU2Point[2]);
85 globalV1Point[0], globalV1Point[1], globalV1Point[2], globalV2Point[0], globalV2Point[1], globalV2Point[2]);
CSCDetId cscDetId() const
static const int kAllRPZBits
IdToInfoItr find(unsigned int) const
void setupAddElement(TEveElement *el, TEveElement *parent, bool set_color=true) const
constexpr uint32_t rawId() const
get the raw id
LocalPoint localPosition() const override
const FWEventItem * item() const
static const int kAll3DBits
void localToGlobal(unsigned int id, const float *local, float *global, bool translatep=true) const
bool contains(unsigned int id) const
~FWCSCRecHitProxyBuilder(void) override
#define REGISTER_PROXYBUILDER_METHODS()
LocalError localPositionError() const override
#define REGISTER_FWPROXYBUILDER(_name_, _type_, _purpose_, _view_)
const FWCSCRecHitProxyBuilder & operator=(const FWCSCRecHitProxyBuilder &)=delete
std::vector< FWGeometry::GeomDetInfo >::const_iterator IdToInfoItr
const FWGeometry * getGeom() const
FWCSCRecHitProxyBuilder(void)