30 edm::LogWarning(
"TrackResiduals")<<
" setting residual over the array size.";
68 for (
int i = 0;
i <= i_hitpattern;
i++) {
72 assert(i_residuals > 0);
73 return i_residuals - 1;
96 edm::LogWarning(
"TrackResiduals")<<
" setting pulls over the array size.";
115 int sgn = 1 - 2 * ((pull & 0x08) >> 3);
116 unsigned char mag = pull & 0x07;
123 unsigned char sgn = (pull < 0) * 0x08;
142 int sgn = 1 - 2 * ((pull & 0x08) >> 3);
143 unsigned char mag = pull & 0x07;
150 unsigned char sgn = (pull < 0) * 0x08;
158 stream <<
"TrackResiduals" << std::endl;
159 std::ios_base::fmtflags
flags = stream.flags();
160 stream.setf ( std::ios_base::hex, std::ios_base::basefield );
161 stream.setf ( std::ios_base::showbase );
164 printf(
"0x%x\n", residual);
172 stream <<
"TrackResiduals" << std::endl;
175 "valid hit: " :
"invalid hit: ") <<
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 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
static bool validHitFilter(uint32_t pattern)
static const double residual_char_to_double[8][2]
double residualX(int i, const HitPattern &) const
static unsigned char pack_residual(double)
void print(std::ostream &stream=std::cout) const
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
tuple idx
DEBUGGING if hasattr(process,"trackMonIterativeTracking2012"): print "trackMonIterativeTracking2012 D...
void setResidualXY(int idx, double residualX, double residualY)
uint32_t getHitPattern(int position) const
static double unpack_pull(unsigned char)
static unsigned char pack_pull(double)