18 unsigned short bitmask = 0;
21 bitmask = bitmask | 1;
22 bitmask = bitmask | (absx << 1);
24 bitmask = bitmask | (1 << 4);
25 bitmask = bitmask | (absy << 5);
27 bitmask = bitmask | (1 << 8);
28 bitmask = bitmask | (absz << 9);
47 unsigned short absx =
abs(
x);
48 unsigned short absy =
abs(y);
49 unsigned short absz =
abs(z);
51 unsigned short bitmask = 0;
54 bitmask = bitmask | 1;
55 bitmask = bitmask | (absx << 1);
57 bitmask = bitmask | (1 << 4);
58 bitmask = bitmask | (absy << 5);
60 bitmask = bitmask | (1 << 8);
61 bitmask = bitmask | (absz << 9);
76 out <<
"hit id:" <<
hit.detId() <<
" l:" <<
hit.layer() <<
" E:" <<
hit.energy() <<
" t:" <<
hit.time();
77 if (
hit.hasCaloCell()) {
78 auto const&
pos =
hit.positionREP();
79 out <<
" rep:" <<
pos.rho() <<
"," <<
pos.eta() <<
"," <<
pos.phi() <<
"|";
std::vector< unsigned short > neighbourInfos_
std::vector< unsigned int > neighbours_
indices to existing neighbours (1 common side)
unsigned int neighbours4_
void addNeighbour(short x, short y, short z, unsigned int)
unsigned int neighbours8_
Particle flow rechit (rechit + geometry and topology information). See clustering algorithm in PFClus...
std::ostream & operator<<(std::ostream &out, const reco::PFRecHit &hit)
Abs< T >::type abs(const T &t)
unsigned int getNeighbour(short x, short y, short z) const