26 theDeposits.insert(std::make_pair(relDir, deposit));
40 bool skipDepositVeto)
const {
45 typedef Vetos::const_iterator IV;
48 IV ivEnd = allVetos.end();
51 typedef DepositsMultimap::const_iterator IM;
53 for (IM im =
theDeposits.begin(); im != imLoc; ++im) {
55 for (IV iv = allVetos.begin(); iv < ivEnd; ++iv) {
57 if (dirDep.
deltaR(iv->vetoDir) < iv->dR)
74 typedef Vetos::const_iterator IV;
77 IV ivEnd = allVetos.end();
79 typedef DepositsMultimap::const_iterator IM;
86 for (IV iv = allVetos.begin(); iv < ivEnd; ++iv) {
87 if (dirDep.
deltaR(iv->vetoDir) < iv->dR)
100 bool skipDepositVeto)
const {
104 typedef AbsVetos::const_iterator IV;
106 IV ivEnd =
vetos.end();
109 typedef DepositsMultimap::const_iterator IM;
111 for (IM im =
theDeposits.begin(); im != imLoc; ++im) {
114 for (IV iv =
vetos.begin(); iv < ivEnd; ++iv) {
115 if ((*iv)->veto(dirDep.
eta(), dirDep.
phi(), im->second)) {
135 return algoWithin<CountAlgo>(
coneSize,
vetos, skipDepositVeto);
138 return algoWithin<SumAlgo>(
coneSize,
vetos, skipDepositVeto);
144 return algoWithin<Sum2Algo>(
coneSize,
vetos, skipDepositVeto);
147 return algoWithin<MaxAlgo>(
coneSize,
vetos, skipDepositVeto);
153 typedef AbsVetos::const_iterator IV;
155 IV ivEnd =
vetos.end();
158 typedef DepositsMultimap::const_iterator IM;
160 for (IM im =
theDeposits.begin(); im != imLoc; ++im) {
163 for (IV iv =
vetos.begin(); iv < ivEnd; ++iv) {
164 if ((*iv)->veto(dirDep.
eta(), dirDep.
phi(), im->second)) {
179 std::ostringstream
str;
183 typedef DepositsMultimap::const_iterator IM;
185 for (IM im =
theDeposits.begin(); im != imEnd; ++im) {
186 str <<
"(dR=" << im->first.deltaR <<
", alpha=" << im->first.relativeAngle <<
", Pt=" << im->second <<
"),";