12 residualType(X_Y_RESIDUALS)
32 edm::LogWarning(
"TrackResiduals") <<
" setting residual over the array size.";
73 for (
int i = 0;
i <= i_hitpattern;
i++) {
79 assert(i_residuals > 0);
80 return i_residuals - 1;
107 edm::LogWarning(
"TrackResiduals") <<
" setting pulls over the array size.";
127 int sgn = 1 - 2 * ((pull & 0x08) >> 3);
128 unsigned char mag = pull & 0x07;
134 unsigned char sgn = (pull < 0) * 0x08;
143 int sgn = 1 - 2 * ((pull & 0x08) >> 3);
144 unsigned char mag = pull & 0x07;
150 unsigned char sgn = (pull < 0) * 0x08;
161 stream <<
"TrackResiduals" << std::endl;
162 std::ios_base::fmtflags
flags = stream.flags();
163 stream.setf (std::ios_base::hex, std::ios_base::basefield);
164 stream.setf (std::ios_base::showbase);
168 printf(
"0x%x\n", residual);
177 stream <<
"TrackResiduals" << std::endl;
T mag() const
The vector magnitude. Equivalent to sqrt(vec.mag2())
std::vector< Variable::Flags > flags
double residualY(int i, const HitPattern &) const
void setPullXY(int idx, double pullX, double pullY)
static double unpack_residual(unsigned char)
static bool validHitFilter(uint16_t pattern)
static int index_to_hitpattern(int i_hitpattern, const HitPattern &h)
static const double pull_char_to_double[8][2]
void setResidualType(enum ResidualType)
unsigned char residuals_[numResiduals]
residuals, bitpacked two hits to a char
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
double residualX(int i, const HitPattern &) const
static unsigned char pack_residual(double)
void print(std::ostream &stream=std::cout) const
tuple idx
DEBUGGING if hasattr(process,"trackMonIterativeTracking2012"): print "trackMonIterativeTracking2012 D...
void setResidualXY(int idx, double residualX, double residualY)
uint16_t getHitPattern(HitCategory category, int position) const
static double unpack_pull(unsigned char)
int numberOfHits(HitCategory category) const
static unsigned char pack_pull(double)