23 for(
unsigned int i = 0;
i <
nhits; ++
i){
28 for(
unsigned int j =
i+1;
j <
nhits; ++
j){
43 for(
unsigned int i = 0;
i <
nhits; ++
i){
44 int p = tmp[
i].Plane();
45 int c = tmp[
i].Cell();
46 p = ((p>>(factor+1))<<1)+p%2;
51 tmp[
i].cellIdx = (p<<(8-factor))+
c;
55 std::sort(tmp.begin(), tmp.end());
58 std::vector<LiteHit> tmp2;
59 for(
unsigned int i = 0;
i <
nhits; ++
i){
60 if(tmp2.empty() || tmp2.back().cellIdx != tmp[
i].cellIdx)
61 tmp2.push_back(tmp[
i]);
63 tmp2.back().pecorr += tmp[
i].pecorr;
67 ret.
nhits = tmp2.size();
82 if((h.
Plane()%2 == 0 && flipEven) ||
83 (h.
Plane()%2 == 1 && flipOdd)){
Simple representation of event for LEM use.
Attach some information used in matching to an EventSummary.
MatchableEvent Flipped(bool flipEven, bool flipOdd) const
TSpline3 hi("hi", xhi, yhi, 18,"0")
static const DistanceMap & Instance()
Singleton.
MatchableEvent Downsampled(int factor) const
Attach some information used in matching to an EventSummary.
Compressed hit info, basic component of LEM events.
Calculate and cache electrostatic potential between cells.
double InvDist(int aplane, int bplane, int acell, int bcell) const
Calculate and cache electrostatic potential between cells.