![]() |
Project
|
#include <stdio.h>#include <stdlib.h>#include <memory.h>#include <math.h>#include <queue>#include <map>#include <iterator>#include <algorithm>#include <iostream>Go to the source code of this file.
Classes | |
| union | cluster_struct |
| class | INode |
| class | InternalNode |
| class | LeafNode |
| struct | NodeCmp |
Macros | |
| #define | EVENT 0 |
| #define | SECTOR 1 |
| #define | PATCH 2 |
| #define | ROW 3 |
| #define | PAD 4 |
| #define | TIME 5 |
| #define | SIGMA_PAD 6 |
| #define | SIGMA_TIME 7 |
| #define | QMAX 8 |
| #define | QTOT 9 |
| #define | FLAG_PADTIME 10 |
| #define | CLUSTER_ID 11 |
| #define | RES_PAD 12 |
| #define | RES_TIME 13 |
| #define | AVG_TOT 14 |
| #define | AVG_MAX 15 |
| #define | QMAX_QTOT 16 |
| #define | SIGMA_PAD_TIME 17 |
| #define | DIFF_SIGMA_PAD 18 |
| #define | DIFF_SIGMA_TIME 19 |
| #define | DIFF_SIGMA_PAD_TIME 20 |
| #define | AVG_TOT_MAX 21 |
| #define | ROW_TRACK_FIRST 22 |
| #define | ROW_TRACK 23 |
| #define | PAD_80 24 |
| #define | PAD_92 25 |
| #define | PAD_104 26 |
| #define | PAD_116 27 |
| #define | PAD_128 28 |
| #define | PAD_140 29 |
Typedefs | |
| typedef std::vector< bool > | HuffCode |
| typedef std::map< uint32_t, HuffCode > | HuffCodeMap |
Functions | |
| INode * | BuildTree (const double *frequencies, uint32_t UniqueSymbols) |
| void | GenerateCodes (const INode *node, const HuffCode &prefix, HuffCodeMap &outCodes) |
| bool | clustercompare_padtime (cluster_struct a, cluster_struct b) |
| bool | clustercompare_timepad (cluster_struct a, cluster_struct b) |
| bool | clustercompare_padtime_mixed (cluster_struct a, cluster_struct b) |
| bool | clustercompare_timepad_mixed (cluster_struct a, cluster_struct b) |
| bool | clustercompare_inevent (cluster_struct a, cluster_struct b) |
| void | do_diff (uint32_t &val, int32_t &last, uint32_t bits, uint32_t maxval=0) |
| uint32_t | truncate (int32_t j, uint32_t val) |
| int32_t | main (int argc, char **argv) |
Variables | |
| const int32_t | sort_method = 1 |
| const int32_t | sector_diff = 1 |
| const int32_t | row_diff = 1 |
| const int32_t | pad_diff = 1 |
| const int32_t | time_diff = 1 |
| const int32_t | res_diff = 0 |
| const int32_t | approximate_qtot = 0 |
| const int32_t | combine_maxtot = 1 |
| const int32_t | combine_sigmapadtime = 1 |
| const int32_t | track_based = 1 |
| const int32_t | track_avgtot = track_based && 0 |
| const int32_t | track_avgmax = track_based && 0 |
| const int32_t | track_diffqtot = track_based && 0 |
| const int32_t | track_diffqmax = track_based && 0 |
| const int32_t | track_separate_q = track_based && 1 |
| const int32_t | track_diffsigma = track_based && 0 |
| const int32_t | track_separate_sigma = track_based && 1 |
| const int32_t | truncate_bits = 1 |
| const int32_t | separate_sectors = 0 |
| const int32_t | separate_patches = 0 |
| const int32_t | separate_sides = 0 |
| const int32_t | full_row_numbers = 1 |
| const int32_t | distinguish_rows = 0 |
| const int32_t | optimized_negative_values = 1 |
| const int32_t | print_clusters = 0 |
| const char * | file = "clusters-pbpb.dump" |
| const int32_t | max_clusters = 2000000 |
| const int32_t | truncate_sigma = 3 |
| const int32_t | truncate_charge = 4 |
| const int32_t | sort_pad_mixed_bins = 100 |
| const int32_t | sort_time_mixed_bins = 400 |
| const int32_t | rr = optimized_negative_values && 0 ? 13 : 14 |
| const uint32_t | field_bits [] = {0, 6, 0, 8, 14, 15, 8, 8, 10, 16, 2, 0, 14, 15, 16, 10, 26, 16, 8, 8, 16, 26, 8, 8, rr, rr, rr, rr, rr, 14} |
| const uint32_t | significant_bits [] = {0, 6, 0, 8, 14, 15, truncate_sigma, truncate_sigma, truncate_charge, truncate_charge, 2, 0, 14, 15, truncate_charge, truncate_charge, 26, 16, truncate_sigma, truncate_sigma, 16, 26, 8, 8, rr, rr, rr, rr, rr, 14} |
| const int32_t | nFields = sizeof(field_bits) / sizeof(field_bits[0]) |
| const char * | field_names [] |
| int32_t | fgRows [6][2] = {{0, 30}, {30, 62}, {63, 90}, {90, 116}, {117, 139}, {139, 158}} |
| int32_t | fgNRows [6] = {31, 33, 28, 27, 23, 20} |
| int32_t | fgNPads [159] |
| int32_t | fgNPadsMod [159] |
Definition in file standalone-cluster-dump-entropy-analysed.cxx.
| #define AVG_MAX 15 |
Definition at line 76 of file standalone-cluster-dump-entropy-analysed.cxx.
| #define AVG_TOT 14 |
Definition at line 75 of file standalone-cluster-dump-entropy-analysed.cxx.
| #define AVG_TOT_MAX 21 |
Definition at line 82 of file standalone-cluster-dump-entropy-analysed.cxx.
| #define CLUSTER_ID 11 |
Definition at line 72 of file standalone-cluster-dump-entropy-analysed.cxx.
| #define DIFF_SIGMA_PAD 18 |
Definition at line 79 of file standalone-cluster-dump-entropy-analysed.cxx.
| #define DIFF_SIGMA_PAD_TIME 20 |
Definition at line 81 of file standalone-cluster-dump-entropy-analysed.cxx.
| #define DIFF_SIGMA_TIME 19 |
Definition at line 80 of file standalone-cluster-dump-entropy-analysed.cxx.
| #define EVENT 0 |
Definition at line 61 of file standalone-cluster-dump-entropy-analysed.cxx.
| #define FLAG_PADTIME 10 |
Definition at line 71 of file standalone-cluster-dump-entropy-analysed.cxx.
| #define PAD 4 |
Definition at line 65 of file standalone-cluster-dump-entropy-analysed.cxx.
| #define PAD_104 26 |
Definition at line 88 of file standalone-cluster-dump-entropy-analysed.cxx.
| #define PAD_116 27 |
Definition at line 89 of file standalone-cluster-dump-entropy-analysed.cxx.
| #define PAD_128 28 |
Definition at line 90 of file standalone-cluster-dump-entropy-analysed.cxx.
| #define PAD_140 29 |
Definition at line 91 of file standalone-cluster-dump-entropy-analysed.cxx.
| #define PAD_80 24 |
Definition at line 86 of file standalone-cluster-dump-entropy-analysed.cxx.
| #define PAD_92 25 |
Definition at line 87 of file standalone-cluster-dump-entropy-analysed.cxx.
| #define PATCH 2 |
Definition at line 63 of file standalone-cluster-dump-entropy-analysed.cxx.
| #define QMAX 8 |
Definition at line 69 of file standalone-cluster-dump-entropy-analysed.cxx.
| #define QMAX_QTOT 16 |
Definition at line 77 of file standalone-cluster-dump-entropy-analysed.cxx.
| #define QTOT 9 |
Definition at line 70 of file standalone-cluster-dump-entropy-analysed.cxx.
| #define RES_PAD 12 |
Definition at line 73 of file standalone-cluster-dump-entropy-analysed.cxx.
| #define RES_TIME 13 |
Definition at line 74 of file standalone-cluster-dump-entropy-analysed.cxx.
| #define ROW 3 |
Definition at line 64 of file standalone-cluster-dump-entropy-analysed.cxx.
| #define ROW_TRACK 23 |
Definition at line 84 of file standalone-cluster-dump-entropy-analysed.cxx.
| #define ROW_TRACK_FIRST 22 |
Definition at line 83 of file standalone-cluster-dump-entropy-analysed.cxx.
| #define SECTOR 1 |
Definition at line 62 of file standalone-cluster-dump-entropy-analysed.cxx.
| #define SIGMA_PAD 6 |
Definition at line 67 of file standalone-cluster-dump-entropy-analysed.cxx.
| #define SIGMA_PAD_TIME 17 |
Definition at line 78 of file standalone-cluster-dump-entropy-analysed.cxx.
| #define SIGMA_TIME 7 |
Definition at line 68 of file standalone-cluster-dump-entropy-analysed.cxx.
| #define TIME 5 |
Definition at line 66 of file standalone-cluster-dump-entropy-analysed.cxx.
| typedef std::vector<bool> HuffCode |
Definition at line 125 of file standalone-cluster-dump-entropy-analysed.cxx.
| typedef std::map<uint32_t, HuffCode> HuffCodeMap |
Definition at line 126 of file standalone-cluster-dump-entropy-analysed.cxx.
| INode * BuildTree | ( | const double * | frequencies, |
| uint32_t | UniqueSymbols | ||
| ) |
Definition at line 165 of file standalone-cluster-dump-entropy-analysed.cxx.
| bool clustercompare_inevent | ( | cluster_struct | a, |
| cluster_struct | b | ||
| ) |
Definition at line 212 of file standalone-cluster-dump-entropy-analysed.cxx.
| bool clustercompare_padtime | ( | cluster_struct | a, |
| cluster_struct | b | ||
| ) |
Definition at line 204 of file standalone-cluster-dump-entropy-analysed.cxx.
| bool clustercompare_padtime_mixed | ( | cluster_struct | a, |
| cluster_struct | b | ||
| ) |
Definition at line 208 of file standalone-cluster-dump-entropy-analysed.cxx.
| bool clustercompare_timepad | ( | cluster_struct | a, |
| cluster_struct | b | ||
| ) |
Definition at line 206 of file standalone-cluster-dump-entropy-analysed.cxx.
| bool clustercompare_timepad_mixed | ( | cluster_struct | a, |
| cluster_struct | b | ||
| ) |
Definition at line 210 of file standalone-cluster-dump-entropy-analysed.cxx.
| void do_diff | ( | uint32_t & | val, |
| int32_t & | last, | ||
| uint32_t | bits, | ||
| uint32_t | maxval = 0 |
||
| ) |
Definition at line 214 of file standalone-cluster-dump-entropy-analysed.cxx.
| void GenerateCodes | ( | const INode * | node, |
| const HuffCode & | prefix, | ||
| HuffCodeMap & | outCodes | ||
| ) |
Definition at line 187 of file standalone-cluster-dump-entropy-analysed.cxx.
Definition at line 239 of file standalone-cluster-dump-entropy-analysed.cxx.
| uint32_t truncate | ( | int32_t | j, |
| uint32_t | val | ||
| ) |
Definition at line 228 of file standalone-cluster-dump-entropy-analysed.cxx.
| const int32_t approximate_qtot = 0 |
Definition at line 31 of file standalone-cluster-dump-entropy-analysed.cxx.
| const int32_t combine_maxtot = 1 |
Definition at line 32 of file standalone-cluster-dump-entropy-analysed.cxx.
| const int32_t combine_sigmapadtime = 1 |
Definition at line 33 of file standalone-cluster-dump-entropy-analysed.cxx.
| const int32_t distinguish_rows = 0 |
Definition at line 47 of file standalone-cluster-dump-entropy-analysed.cxx.
| int32_t fgNPads[159] |
Definition at line 115 of file standalone-cluster-dump-entropy-analysed.cxx.
| int32_t fgNPadsMod[159] |
Definition at line 119 of file standalone-cluster-dump-entropy-analysed.cxx.
| int32_t fgNRows[6] = {31, 33, 28, 27, 23, 20} |
Definition at line 113 of file standalone-cluster-dump-entropy-analysed.cxx.
| int32_t fgRows[6][2] = {{0, 30}, {30, 62}, {63, 90}, {90, 116}, {117, 139}, {139, 158}} |
Definition at line 112 of file standalone-cluster-dump-entropy-analysed.cxx.
| const uint32_t field_bits[] = {0, 6, 0, 8, 14, 15, 8, 8, 10, 16, 2, 0, 14, 15, 16, 10, 26, 16, 8, 8, 16, 26, 8, 8, rr, rr, rr, rr, rr, 14} |
Definition at line 95 of file standalone-cluster-dump-entropy-analysed.cxx.
| const char* field_names[] |
Definition at line 98 of file standalone-cluster-dump-entropy-analysed.cxx.
| const char* file = "clusters-pbpb.dump" |
Definition at line 52 of file standalone-cluster-dump-entropy-analysed.cxx.
| const int32_t full_row_numbers = 1 |
Definition at line 46 of file standalone-cluster-dump-entropy-analysed.cxx.
| const int32_t max_clusters = 2000000 |
Definition at line 53 of file standalone-cluster-dump-entropy-analysed.cxx.
| const int32_t nFields = sizeof(field_bits) / sizeof(field_bits[0]) |
Definition at line 97 of file standalone-cluster-dump-entropy-analysed.cxx.
| const int32_t optimized_negative_values = 1 |
Definition at line 48 of file standalone-cluster-dump-entropy-analysed.cxx.
| const int32_t pad_diff = 1 |
Definition at line 28 of file standalone-cluster-dump-entropy-analysed.cxx.
| const int32_t print_clusters = 0 |
Definition at line 50 of file standalone-cluster-dump-entropy-analysed.cxx.
| const int32_t res_diff = 0 |
Definition at line 30 of file standalone-cluster-dump-entropy-analysed.cxx.
| const int32_t row_diff = 1 |
Definition at line 27 of file standalone-cluster-dump-entropy-analysed.cxx.
| const int32_t rr = optimized_negative_values && 0 ? 13 : 14 |
Definition at line 93 of file standalone-cluster-dump-entropy-analysed.cxx.
| const int32_t sector_diff = 1 |
Definition at line 26 of file standalone-cluster-dump-entropy-analysed.cxx.
| const int32_t separate_patches = 0 |
Definition at line 44 of file standalone-cluster-dump-entropy-analysed.cxx.
| const int32_t separate_sectors = 0 |
Definition at line 43 of file standalone-cluster-dump-entropy-analysed.cxx.
| const int32_t separate_sides = 0 |
Definition at line 45 of file standalone-cluster-dump-entropy-analysed.cxx.
| const uint32_t significant_bits[] = {0, 6, 0, 8, 14, 15, truncate_sigma, truncate_sigma, truncate_charge, truncate_charge, 2, 0, 14, 15, truncate_charge, truncate_charge, 26, 16, truncate_sigma, truncate_sigma, 16, 26, 8, 8, rr, rr, rr, rr, rr, 14} |
Definition at line 96 of file standalone-cluster-dump-entropy-analysed.cxx.
| const int32_t sort_method = 1 |
Definition at line 25 of file standalone-cluster-dump-entropy-analysed.cxx.
| const int32_t sort_pad_mixed_bins = 100 |
Definition at line 58 of file standalone-cluster-dump-entropy-analysed.cxx.
| const int32_t sort_time_mixed_bins = 400 |
Definition at line 59 of file standalone-cluster-dump-entropy-analysed.cxx.
| const int32_t time_diff = 1 |
Definition at line 29 of file standalone-cluster-dump-entropy-analysed.cxx.
| const int32_t track_avgmax = track_based && 0 |
Definition at line 36 of file standalone-cluster-dump-entropy-analysed.cxx.
| const int32_t track_avgtot = track_based && 0 |
Definition at line 35 of file standalone-cluster-dump-entropy-analysed.cxx.
| const int32_t track_based = 1 |
Definition at line 34 of file standalone-cluster-dump-entropy-analysed.cxx.
| const int32_t track_diffqmax = track_based && 0 |
Definition at line 38 of file standalone-cluster-dump-entropy-analysed.cxx.
| const int32_t track_diffqtot = track_based && 0 |
Definition at line 37 of file standalone-cluster-dump-entropy-analysed.cxx.
| const int32_t track_diffsigma = track_based && 0 |
Definition at line 40 of file standalone-cluster-dump-entropy-analysed.cxx.
| const int32_t track_separate_q = track_based && 1 |
Definition at line 39 of file standalone-cluster-dump-entropy-analysed.cxx.
| const int32_t track_separate_sigma = track_based && 1 |
Definition at line 41 of file standalone-cluster-dump-entropy-analysed.cxx.
| const int32_t truncate_bits = 1 |
Definition at line 42 of file standalone-cluster-dump-entropy-analysed.cxx.
| const int32_t truncate_charge = 4 |
Definition at line 56 of file standalone-cluster-dump-entropy-analysed.cxx.
| const int32_t truncate_sigma = 3 |
Definition at line 55 of file standalone-cluster-dump-entropy-analysed.cxx.