Go to the source code of this file.
Functions | |
std::vector< std::vector < DeltaOutput > > | CalcDeltas (MatchingOutput Mout) |
DeltaOutArr3 | CalcDeltas_Hold (const std::vector< MatchingOutput > &Mout) |
DeltaOutput | Deltas (MatchingOutput Mout, int zone, int winner) |
std::vector<std::vector<DeltaOutput> > CalcDeltas | ( | MatchingOutput | Mout | ) |
DeltaOutArr3 CalcDeltas_Hold | ( | const std::vector< MatchingOutput > & | Mout | ) |
DeltaOutput Deltas | ( | MatchingOutput | Mout, |
int | zone, | ||
int | winner | ||
) |
Set Null dphi and dtheta arrays///
dphi index order runs like (dphi12,dphi13,dphi14,dphi23,dphi24,dphi34) hence the calc delta phis /// indexing procedure dphi[s2-1] for the first 3 and dphi[s1+s2] for the rest
There is a further index on dTh because there are 4 dth combinations calc delta theta /// possible if there are two theta segments for both stations.
the mask[6] is a way to indicate which stations are present and valid
it is clearer to see in binary below
stations 1 and 2 present and valid –> 0x3 –> 0011 stations 1 and 3 present and valid –> 0x5 –> 0101 stations 1 and 4 present and valid –> 0x9 –> 1001 stations 2 and 3 present and valid –> 0x6 –> 0110 stations 2 and 4 present and valid –> 0xa –> 1010 stations 3 and 4 present and valid –> 0xc –> 1100
here we separate stations 3 and 4////