|
FlyoDoc_2011 Pisa 2011 by GmP --- 011
|
Public Member Functions | |
| virtual int | SimulaDev () |
Public Attributes | |
| double | x |
| double | y |
| int | Q1 |
| int | Q2 |
| int | Q3 |
| int | Q4 |
| int | Qx |
| int DevChod::SimulaDev | ( | ) | [virtual] |
operate on the dev_variable of type (2)
Reimplemented from Device.
Definition at line 28 of file devchod.cpp.
{
// tutto da rifare secondo quanto si deciderà.....
// Verifico quale quadrante
// e' stato toccato
// escludo una banda ombra del buco, in x e y
Q1=Q2=Q3=Q4=Qx=0;
if ( mhit<1 ) return nhit;
double rag=Lin[0];
int ht=mhit;
while ( ht>0 )
{
x= M_Hits[ht].Xdev.x;
y= M_Hits[ht].Xdev.y;
if ( x>-rag&&y>-rag ) Q1=1;
if ( x>-rag&&y< rag ) Q2=1;
if ( x< rag&&y< rag ) Q3=1;
if ( x< rag&&y>-rag ) Q4=1;
ht--;
}
// Gout"\n Hodo %2d,%2d,%2d,%2d,%2d",Q1,Q2,Q3,Q4,Qx/////;
return nhit;
}