Go to the source code of this file.
Functions | |
std::vector< std::vector < DeltaOutput > > | CalcDeltas (MatchingOutput Mout) |
DeltaOutput | Deltas (MatchingOutput Mout, int zone, int winner) |
std::vector<std::vector<DeltaOutput> > CalcDeltas | ( | MatchingOutput | Mout | ) |
Definition at line 280 of file Deltas.h.
References Deltas(), connectstrParser::o, GenerateHcalLaserBadRunList::out, convertSQLitetoXML_cfg::output, and DeltaOutput::SetNull().
Referenced by L1TMuonEndCapTrackProducer::produce().
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.
need to fix still////
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
if(vstat && verbose){std::cout<<"vstat = "<<vstat<<std::endl;}
vstatindex[11] is a list of possible combinations of valid and present stations in order of increasing quality(i.e. if all stations are present and valid it's better to take delta 12 and 23 as opposed to delta 14 and 34 . Binary representation is below stations 3 and 4 present –> 0xc –> 1100 stations 2 and 4 present –> 0xa –> 1010 stations 2 and 3 present –> 0x6 –> 0110 stations 2,3 and 4 present –> 0xe –> 1110 stations 1 and 4 present –> 0x9 –> 1001 stations 1 and 3 present –> 0x5 –> 0101 stations 1,3 and 4 present –> 0xd –> 1101 stations 1 and 2 present –> 0x3 –> 0011 stations 1,2 and 4 present –> 0xb –> 1011 stations 1,2 and 3 present –> 0x7 –> 0111 all stations present –> 0xf –> 1111
index on which entry of vstatindex[11] to choose for both dphi and dtheta
here we separate stations 3 and 4////
Definition at line 12 of file Deltas.h.
References funct::abs(), EnergyCorrector::c, ztail::d, i, j, cmsLHEtoEOSManager::l, convertSQLitetoXML_cfg::output, AlCaHLTBitMon_ParallelJobs::p, colinearityKinematic::Phi, phi(), MatchingOutput::PhiMatch(), indexGen::s2, MatchingOutput::SetPhOut(), Winner::SetRank(), DeltaOutput::SetValues(), theta(), MatchingOutput::ThetaMatch(), and MatchingOutput::Winners().
Referenced by CalcDeltas(), and DeltaOutput::SetValues().