1 #include "TEveCompound.h" 16 TEveCompound*
h =
new TEveCompound(
"rechit box",
"tower");
18 h->CSCApplyMainColorToAllChildren();
20 h->AddElement(
m_ls );
38 for(
size_t i = 0;
i < 4; ++
i)
43 m_tower->SetVertex( j, corners[j] );
48 m_tower->SetLineColor( kBlack );
55 m_tower =
new TEveBox(
"EcalRecHitTower" );
56 std::vector<TEveVector> towerCorners = corners;
72 m_ls =
new TEveStraightLineSet(
"EcalRecHitLineSet" );
77 for(
unsigned int i = 0;
i < 4; ++
i )
82 m_ls->AddLine( data[0], data[1], 0, data[0], data[1], 0);
89 m_ls->SetMarkerStyle( 1 );
90 m_ls->AddLine( c.fX, c.fY, c.fZ, c.fX, c.fY, c.fZ );
91 m_ls->AddMarker( 0, 0. );
112 for(
unsigned int i = 0;
i < 4; ++
i )
117 m_tower->SetVertex(
i, data[0], data[1], 0 );
118 m_tower->SetVertex(
i+4, data[0], data[1], scale);
124 float s =
log( 1 + val ) / maxLogVal;
127 float z = scale * 1.001;
128 setLine(0, c.fX - d, c.fY -d, z, c.fX + d, c.fY -d, z);
129 setLine(1, c.fX + d, c.fY -d, z, c.fX + d, c.fY +d, z);
130 setLine(2, c.fX + d, c.fY +d, z, c.fX - d, c.fY +d, z);
131 setLine(3, c.fX - d, c.fY +d, z, c.fX - d, c.fY -d, z);
136 m_ls->AddLine( c.fX - d, c.fY - d, z, c.fX + d, c.fY + d, z );
137 m_ls->AddLine( c.fX - d, c.fY + d, z, c.fX + d, c.fY - d, z );
138 m_ls->GetMarkerPlex().Refit();
141 TEveStraightLineSet::Marker_t*
m = ((TEveStraightLineSet::Marker_t*)(
m_ls->GetMarkerPlex().Atom(0)));
142 m->fV[0] = c.fX; m->fV[1] = c.fY; m->fV[2] =
z;
149 m_ls->StampTransBBox();
157 TEveStraightLineSet::Line_t*
l = ((TEveStraightLineSet::Line_t*)(
m_ls->GetLinePlex().Atom(idx)));
181 m_ls->AddLine( x1, y1, z1, x2, y2, z2 );
188 m_ls->AddLine(v1.fX, v1.fY, v1.fZ, v2.fX, v2.fY, v2.fZ);
void setupEveBox(std::vector< TEveVector > &corners, float scale)
void buildTower(const std::vector< TEveVector > &corners)
TEveStraightLineSet * m_ls
void updateScale(float scale, float maxLogVal, bool plotEt)
void addLine(float x1, float y1, float z1, float x2, float y2, float z2)
void buildLineSet(const std::vector< TEveVector > &corners)
FWBoxRecHit(const std::vector< TEveVector > &corners, TEveElement *comp, float e, float et)
et
define resolution functions of each parameter
char data[epos_bytes_allocation]
void setLine(int idx, float x1, float y1, float z1, float x2, float y2, float z2)
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger list("!*","!HLTx*"if it matches 2 triggers or more) will accept the event if all the matching triggers are FAIL.It will reject the event if any of the triggers are PASS or EXCEPTION(this matches the behavior of"!*"before the partial wildcard feature was incorporated).Triggers which are in the READY state are completely ignored.(READY should never be returned since the trigger paths have been run