Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Events losses after splitting by trigger #42

Closed
bdrum opened this issue Apr 2, 2021 · 2 comments
Closed

Events losses after splitting by trigger #42

bdrum opened this issue Apr 2, 2021 · 2 comments
Assignees
Labels
invalid This doesn't seem right

Comments

@bdrum
Copy link
Owner

bdrum commented Apr 2, 2021

I faced a problem that after splitting event to triggered and untriggered I have a difference between origin total event count and
triggered event plus untriggered:

ind nTPC total_cnt trig_cnt untrig_cnt trig % untrig % trig_cnt_plus_untrig_cnt diff
0 0 19194 10349 8631 53.9 45 18980 214
1 1 17641 10138 7334 57.5 41.6 17472 169
2 2 16506 9572 6780 58 41.1 16352 154
3 3 12952 7583 5249 58.5 40.5 12832 120
4 4 5916 3506 2359 59.3 39.9 5865 51

Definitely this is wrong

@bdrum bdrum added the invalid This doesn't seem right label Apr 2, 2021
@bdrum bdrum self-assigned this Apr 2, 2021
bdrum added a commit that referenced this issue Apr 2, 2021
@bdrum
Copy link
Owner Author

bdrum commented Apr 2, 2021

The reason of the issue is that I threw out events which don't have matched tracks and FORs:

# take only matched tracks and fill vPhi arrays for inner and outer
df = df[(df.Inner_matched.apply(any) | df.Outer_matched.apply(any))][['entry', 'vPhiInner', 'vPhiOuter']].groupby('entry').sum()

What is not necessary I guess.

List of unmatched events(214):

53,    207,   1187,   1393,   1470,   2831,   4890,   5793, 5801,   6607,   6776,   8138,   8252,   8615,   9318,
9333, 9458,   9983,  10132,  11575,  12636,  13020,  13220,  13576, 14594,  15333,  15599,  16113,  16637,  16722,    
17488,  17675, 18140,  19335,  19788,  21091,  21148,  21464,  21515,  21743, 23004,  24480,  24866,  24975,  25122,  
25189,  25288,  25459, 26088,  26191,  26348,  27319,  28226,  28932,  28971,  29011, 29360,  30892,  31715,  33752,  
33863,  34064,  34065,  34205, 34786,  35148,  35539,  36517,  36608,  36941,  36969,  37279, 38149,  38245,  38323,  
38458,  39802,  39948,  40598,  41706, 41738,  42042,  42111,  42172,  43076,  43325,  43416,  43545, 43832,  44401,  
44441,  44922,  44981,  45143,  45266,  45434, 46201,  46266,  46442,  47009,  47826,  48218,  48475,  48493, 48555,  
49198,  49229,  49307,  49411,  49941,  50376,  50512, 51309,  51373,  51545,  53561,  54206,  54387,  54534,  54717, 
54847,  54965,  55156,  55744,  56110,  56160,  56707,  56991, 57009,  57423,  57546,  57681,  58261,  60363,  60608, 
62378, 63191,  63280,  63307,  63582,  64636,  65485,  65500,  65582, 66803,  66932,  67633,  68099,  68270,  69164,  
69292,  69454, 69493,  69804,  70037,  70119,  70132,  70190,  70819,  70830, 71518,  71564,  71616,  71861,  71955,  
72297,  73720,  74438, 74556,  74635,  75132,  75343,  75388,  76152,  77020,  77494, 78058,  78204,  78258,  78277,  
82521,  86346,  87880,  88212, 90219,  92125,  94103,  95638,  96251,  96614,  97483,  97800, 97841,  99239,  99283,  
99314,  99321,  99674, 100162, 100320, 100867, 101043, 101049, 101172, 101767, 101932, 102124, 103264, 104532, 104879,
105287, 105360, 105405, 106001

@bdrum
Copy link
Owner Author

bdrum commented Apr 2, 2021

Incorrect triggering of event

Unmatched tracks: fired chips doesn't match to fired FORs

entry subentry T_ITSModuleInner T_ITSModuleOuter T_ITSSensorNum Inner_matched Outer_matched vPhiInner vPhiOuter vPhiInnerValue vPhiOuterValue
36 53 0 50 181 [ 26 70 71 75 107 124 162 163 210 363 461 524 602 639 [False False False False False False False False False False False False [False False False False False False False False False False False False [False False False False False False False False False False False False [False False False False False False False False False False False False [] []
37 53 1 38 154 [ 26 70 71 75 107 124 162 163 210 363 461 524 602 639 [False False False False False False False False False False False False [False False False False False False False False False False False False [False False False False False False False False False False False False [False False False False False False False False False False False False [] []
38 53 2 66 211 [ 26 70 71 75 107 124 162 163 210 363 461 524 602 639 [False False False False False False False False False False False False [False False False False False False False False False False False False [False False False False False False False False False False False False [False False False False False False False False False False False False [] []
39 53 3 70 218 [ 26 70 71 75 107 124 162 163 210 363 461 524 602 639 [False False False False False False False False False False False False [False False False False False False False False False False False False [False False False False False False False False False False False False [False False False False False False False False False False False False [] []

Incorrect triggering of event

entry subentry T_ITSModuleInner T_ITSModuleOuter T_ITSSensorNum Inner_matched Outer_matched vPhiInner vPhiOuter vPhiInnerValue vPhiOuterValue
0 4 0 0 84 [ 0 7 28 31 37 38 39 45 46 55 57 71 86 143 [ True False False False False False False False False False False False [False False False False False False False False False False False False [ True False False False False False False False False False False False [False True False False False False False False False False False False [0] [1]
1 4 1 36 153 [ 0 7 28 31 37 38 39 45 46 55 57 71 86 143 [False False False False False False False False False False False False [False False False False False False False False False False False False [False False False False False False False False False True False False [False False False False False False False False False False False False [9] []
2 4 2 1 81 [ 0 7 28 31 37 38 39 45 46 55 57 71 86 143 [False True False False False False False False False False False False [False False False False False False False False False False False False [ True False False False False False False False False False False False [ True False False False False False False False False False False False [0] [0]
3 4 3 13 113 [ 0 7 28 31 37 38 39 45 46 55 57 71 86 143 [False False False False False False False False False False False False [False False False False False False False False False False False False [False False False False False False False False False False False False [False False False False False False False False False False False False [] []

Correct triggered for event

entry subentry T_ITSModuleInner T_ITSModuleOuter T_ITSSensorNum Inner_matched Outer_matched vPhiInner vPhiOuter vPhiInnerValue vPhiOuterValue
4 8 0 46 174 [ 53 87 211 232 312 514 564 831 873 1012] [False False False True False False False False False False] [False False False False False False False False True False] [False False False False False False False False False False False True [False False False False False False False False False False False False 11 23
5 8 1 10 102 [ 53 87 211 232 312 514 564 831 873 1012] [ True False False False False False False False False False] [False False False False False True False False False False] [False False True False False False False False False False False False [False False False False False True False False False False False False 2 5
6 8 2 62 202 [ 53 87 211 232 312 514 564 831 873 1012] [False False False False True False False False False False] [False False False False False False False False False True] [False False False False False False False False False False False False [False False False False False False False False False False False False 15 30
7 8 3 42 166 [ 53 87 211 232 312 514 564 831 873 1012] [False False True False False False False False False False] [False False False False False False False True False False] [False False False False False False False False False False True False [False False False False False False False False False False False False 10 21

@bdrum bdrum closed this as completed in 94ef6a2 Apr 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

1 participant