diff --git a/appletree/maps/_nr_spectrum.json b/appletree/maps/_nr_spectrum.json index b7012878..6d1f3f2f 100644 --- a/appletree/maps/_nr_spectrum.json +++ b/appletree/maps/_nr_spectrum.json @@ -1 +1 @@ -{"coordinate_system": [0.0, 0.008674250513574167, 0.017385831342227036, 0.02613401101107591, 0.03491803596549739, 0.04373710290947451, 0.0525904023915049, 0.0614770980395643, 0.07039635304605102, 0.07934727777040364, 0.08832896038443616, 0.09734046973592765, 0.10638086702318948, 0.11544919011693941, 0.12454441909172975, 0.133665530784099, 0.14281147304457437, 0.15198119783528435, 0.16117359618287663, 0.1703875364129425, 0.1796218679596418, 0.18887543586302152, 0.1981470615940093, 0.20743550034431787, 0.2167395089061305, 0.22605781391323232, 0.2353891529410933, 0.24473219422935266, 0.254085584077033, 0.26344795184215675, 0.272817927811564, 0.2821941198809937, 0.2915750609550739, 0.30095929283891454, 0.3103453273000238, 0.3197316967326938, 0.3291168557343893, 0.33849923943313026, 0.34787726996055196, 0.35724937828746545, 0.3666139760391421, 0.3759693911619573, 0.38531397081905205, 0.3946460339688193, 0.4039639333155819, 0.4132659355229929, 0.4225502924199234, 0.4318152492688181, 0.44105907117153753, 0.4502800092561409, 0.4594762226134278, 0.46864590341399065, 0.4777872196185201, 0.4868983900052041, 0.495977539627743, 0.5050227859410181, 0.5140322492037933, 0.5230040840667215, 0.5319364393216957, 0.5408273640241416, 0.5496749581540861, 0.5584773039937947, 0.5672325560499414, 0.5759387682951297, 0.5845939972543512, 0.5931963148874382, 0.6017438458723631, 0.610234720146701, 0.6186669611664871, 0.6270386653003385, 0.6353479204685936, 0.6435929125954173, 0.651771721426127, 0.6598824424218407, 0.6679232024518588, 0.6758922031323418, 0.683787665454075, 0.6916076983782674, 0.6993505096733181, 0.7070143105886918, 0.7145974400786342, 0.7220981265908185, 0.7295146301857607, 0.736845261286985, 0.7440884301755678, 0.7512425831671699, 0.7583060502570543, 0.7652772891441487, 0.7721547750929328, 0.7789371434648913, 0.7856229160509068, 0.7922106640079921, 0.7986990298093253, 0.8050867825194014, 0.811372745355052, 0.8175556219023288, 0.8236342735788843, 0.8296075944251897, 0.8354746714593915, 0.8412344758594399, 0.8468860462088508, 0.8524285135114671, 0.8578611613866691, 0.8631833452141051, 0.8683942979083284, 0.8734934385833695, 0.8784802330415387, 0.8833543698490365, 0.8881154194734794, 0.8927630355014605, 0.897296982348325, 0.9017171987034962, 0.9060237072167462, 0.9102164106865437, 0.914295414528494, 0.9182608830687138, 0.9221132251904172, 0.9258527281917908, 0.929479772331229, 0.9329948604862989, 0.9363986822918908, 0.9396920180787702, 0.94287552336351, 0.9459500668561801, 0.9489165789400514, 0.9517762422156, 0.9545301113412471, 0.9571793336367344, 0.9597251794237142, 0.9621691034424912, 0.9645126461890613, 0.9667572147739493, 0.9689044227402475, 0.9709559364429498, 0.9729136613283946, 0.9747793643627848, 0.9765548903487579, 0.9782421913658214, 0.9798433813321221, 0.9813606391928589, 0.9827959975032644, 0.9841516656747114, 0.9854298822617409, 0.9866330856745581, 0.9877635608279232, 0.988823638482599, 0.9898157218507749, 0.9907423301651228, 0.991606009472444, 0.9924091432447222, 0.9931542373685055, 0.9938437884905035, 0.9944804266957321, 0.9950666119485576, 0.9956048022204868, 0.9960974622272872, 0.9965471469265694, 0.996956345780815, 0.997327384702356, 0.9976626380439038, 0.9979644238769665, 0.9982351083721674, 0.9984768766480808, 0.9986918580089603, 0.9988821336204634, 0.9990497888737323, 0.9991968045500048, 0.9993249922909321, 0.9994361367068881, 0.9995319269114, 0.9996140190881634, 0.9996838982621323, 0.999742955526716, 0.9997924964132655, 0.999833765166545, 0.999867890207725, 0.9998958566741145, 0.9999185798569857, 0.9999368769055774, 0.9999514955943983, 0.9999630636934566, 0.99997212587712, 0.9999791544457013, 0.9999845599766313, 0.9999886823890205, 0.9999917907617311, 0.9999941105124707, 0.9999958231418894, 0.9999970770541755, 0.9999979839802485, 0.9999986308038148, 0.9999990855520497, 0.9999994011244926, 0.999999617092682, 0.9999997617711627, 0.9999998566659399, 0.9999999174309635, 0.9999999555504395, 0.9999999787477784, 0.9999999923450269, 1.0], "coordinate_type": "point", "coordinate_name": "cdf", "map": [0.29999999999999993, 0.30391067028671026, 0.30787231838039175, 0.3118856088056944, 0.3159512147497243, 0.32006981817496355, 0.3242421099336622, 0.32846878988372163, 0.33275056700608807, 0.33708815952367716, 0.34148229502184746, 0.34593371057044603, 0.35044315284744365, 0.3550113782641822, 0.35963915309225486, 0.36432725359204, 0.36907646614291045, 0.3738875873751409, 0.3787614243035334, 0.3836987944627864, 0.3887005260446269, 0.3937674580367316, 0.3989004403634571, 0.4041003340284072, 0.40936801125885586, 0.4147043556520548, 0.4201102623234476, 0.42558663805681546, 0.43113440145638116, 0.4367544831008948, 0.44244782569972874, 0.44821538425100704, 0.45405812620179653, 0.4599770316103856, 0.4659730933106787, 0.4720473170787339, 0.4782007218014709, 0.484434339647579, 0.490749216240652, 0.4971464108345809, 0.5036269964912324, 0.5101920602604437, 0.5168427033623639, 0.5235800413721712, 0.5304052044072002, 0.5373193373165059, 0.544323599872901, 0.5514191669674948, 0.5586072288067692, 0.5658889911122232, 0.57326567532262, 0.5807385187988702, 0.5883087750315865, 0.595977713851343, 0.6037466216416763, 0.6116168015548623, 0.6195895737305069, 0.6276662755169848, 0.6358482616957661, 0.6441369047086661, 0.6525335948880585, 0.6610397406900884, 0.6696567689309264, 0.6783861250261017, 0.6872292732329555, 0.6961876968962541, 0.7052628986970056, 0.7144564009045175, 0.7237697456317417, 0.7332044950939481, 0.7427622318707691, 0.7524445591716612, 0.7622531011048259, 0.7721895029496374, 0.7822554314326198, 0.792452575007024, 0.8027826441360474, 0.813247371579746, 0.8238485126856865, 0.8345878456833877, 0.8454671719825996, 0.8564883164754707, 0.8676531278426545, 0.8789634788634062, 0.8904212667297215, 0.9020284133645711, 0.9137868657442819, 0.9256985962251228, 0.9377656028741461, 0.9499899098043424, 0.9623735675141638, 0.974918653231474, 0.9876272712619805, 1.0005015533422101, 1.0135436589970865, 1.0267557759021648, 1.0401401202505942, 1.0536989371248584, 1.067434500873366, 1.0813491154919492, 1.095445115010332, 1.1097248638836414, 1.1241907573890193, 1.1388452220274046, 1.1536907159305532, 1.1687297292733636, 1.1839647846915777, 1.1993984377049267, 1.2150332771457915, 1.2308719255934524, 1.2469170398139995, 1.2631713112059773, 1.2796374662518377, 1.2963182669752786, 1.313216511404545, 1.3303350340417688, 1.3476767063384252, 1.3652444371769894, 1.383041173358871, 1.4010699000987092, 1.4193336415251099, 1.4378354611879118, 1.4565784625720646, 1.475565789618207, 1.4948006272500276, 1.514286201908503, 1.5340257820930991, 1.5540226789100293, 1.5742802466276538, 1.5948018832391262, 1.6155910310323693, 1.6366511771674819, 1.6579858542616763, 1.6795986409818335, 1.701493162644789, 1.7236730918254408, 1.746142148972787, 1.7689041030339883, 1.7919627720865714, 1.8153220239788708, 1.8389857769788207, 1.8629580004312005, 1.8872427154234523, 1.911843995460175, 1.9367659671464137, 1.9620128108798511, 1.9875887615520271, 2.013498109258696, 2.039745200019447, 2.0663344365067005, 2.093270278784211, 2.120557245055194, 2.1481999124202127, 2.1762029176449307, 2.204570957937885, 2.233308791738392, 2.2624212395147256, 2.2919131845727008, 2.3217895738747942, 2.3520554188699467, 2.3827157963341823, 2.4137758492221804, 2.4452407875299538, 2.4771158891687723, 2.5094065008504725, 2.542118038984318, 2.575255990585539, 2.608825914195724, 2.6428334408152065, 2.677284274847608, 2.7121841950566856, 2.747539055535664, 2.7833547866891943, 2.819637396228122, 2.8563929701772106, 2.8936276738960114, 2.9313477531130365, 2.969559534973417, 3.008269429100209, 3.047483928669546, 3.0872096114997967, 3.1274531411549256, 3.168221268062237, 3.2095208306446854, 3.251358756467952, 3.2937420634024672, 3.3366778608005854, 3.3801733506891085, 3.4242358289773414, 3.4688726866809096, 3.5140914111615227, 3.5598995873829002, 3.606304899183069, 3.6533151305632456, 3.700938166993522, 3.7491819967355653, 3.798054712182575, 3.8475645112166834, 3.8977196985840705, 3.9485286872879977, 4.0]} \ No newline at end of file +{"coordinate_system": [0.0, 0.008674250513574166, 0.017385831342227036, 0.026134011011075906, 0.03491803596549739, 0.04373710290947451, 0.0525904023915049, 0.0614770980395643, 0.07039635304605102, 0.07934727777040364, 0.08832896038443616, 0.09734046973592765, 0.10638086702318948, 0.11544919011693941, 0.12454441909172975, 0.133665530784099, 0.14281147304457437, 0.15198119783528433, 0.16117359618287658, 0.17038753641294246, 0.17962186795964177, 0.1888754358630215, 0.19814706159400924, 0.20743550034431782, 0.2167395089061304, 0.22605781391323224, 0.23538915294109322, 0.24473219422935258, 0.25408558407703297, 0.26344795184215664, 0.27281792781156394, 0.2821941198809936, 0.29157506095507385, 0.3009592928389145, 0.31034532730002373, 0.31973169673269375, 0.32911685573438926, 0.3384992394331302, 0.34787726996055185, 0.3572493782874654, 0.36661397603914203, 0.37596939116195727, 0.385313970819052, 0.39464603396881925, 0.40396393331558184, 0.41326593552299284, 0.42255029241992337, 0.43181524926881804, 0.4410590711715375, 0.45028000925614087, 0.45947622261342774, 0.4686459034139906, 0.47778721961852, 0.486898390005204, 0.49597753962774294, 0.505022785941018, 0.5140322492037932, 0.5230040840667214, 0.5319364393216955, 0.5408273640241414, 0.549674958154086, 0.5584773039937946, 0.5672325560499413, 0.5759387682951296, 0.5845939972543511, 0.5931963148874381, 0.6017438458723628, 0.6102347201467008, 0.618666961166487, 0.6270386653003384, 0.6353479204685935, 0.6435929125954172, 0.6517717214261269, 0.6598824424218406, 0.6679232024518587, 0.6758922031323417, 0.683787665454075, 0.6916076983782674, 0.6993505096733181, 0.7070143105886918, 0.7145974400786342, 0.7220981265908185, 0.7295146301857607, 0.736845261286985, 0.7440884301755678, 0.7512425831671699, 0.7583060502570543, 0.7652772891441487, 0.7721547750929328, 0.7789371434648913, 0.7856229160509068, 0.7922106640079921, 0.7986990298093253, 0.8050867825194014, 0.811372745355052, 0.8175556219023288, 0.8236342735788843, 0.8296075944251897, 0.8354746714593915, 0.8412344758594399, 0.8468860462088508, 0.8524285135114671, 0.8578611613866691, 0.8631833452141051, 0.8683942979083284, 0.8734934385833695, 0.8784802330415387, 0.8833543698490365, 0.8881154194734794, 0.8927630355014605, 0.897296982348325, 0.9017171987034962, 0.9060237072167462, 0.9102164106865437, 0.914295414528494, 0.9182608830687138, 0.9221132251904172, 0.9258527281917908, 0.929479772331229, 0.9329948604862989, 0.9363986822918908, 0.9396920180787702, 0.94287552336351, 0.9459500668561801, 0.9489165789400514, 0.9517762422156, 0.9545301113412471, 0.9571793336367344, 0.9597251794237142, 0.9621691034424912, 0.9645126461890613, 0.9667572147739493, 0.9689044227402475, 0.9709559364429498, 0.9729136613283946, 0.9747793643627848, 0.9765548903487579, 0.9782421913658214, 0.9798433813321221, 0.9813606391928589, 0.9827959975032644, 0.9841516656747114, 0.9854298822617409, 0.9866330856745581, 0.9877635608279232, 0.988823638482599, 0.9898157218507749, 0.9907423301651228, 0.991606009472444, 0.9924091432447222, 0.9931542373685055, 0.9938437884905035, 0.9944804266957321, 0.9950666119485576, 0.9956048022204868, 0.9960974622272872, 0.9965471469265694, 0.996956345780815, 0.997327384702356, 0.9976626380439038, 0.9979644238769665, 0.9982351083721674, 0.9984768766480808, 0.9986918580089603, 0.9988821336204634, 0.9990497888737323, 0.9991968045500048, 0.9993249922909321, 0.9994361367068881, 0.9995319269114, 0.9996140190881634, 0.9996838982621323, 0.999742955526716, 0.9997924964132655, 0.999833765166545, 0.999867890207725, 0.9998958566741145, 0.9999185798569857, 0.9999368769055774, 0.9999514955943983, 0.9999630636934566, 0.99997212587712, 0.9999791544457013, 0.9999845599766313, 0.9999886823890205, 0.9999917907617311, 0.9999941105124707, 0.9999958231418894, 0.9999970770541755, 0.9999979839802485, 0.9999986308038148, 0.9999990855520497, 0.9999994011244926, 0.999999617092682, 0.9999997617711627, 0.9999998566659399, 0.9999999174309635, 0.9999999555504395, 0.9999999787477784, 0.9999999923450269, 1.0], "coordinate_type": "point", "coordinate_name": "cdf", "map": [0.29999999999999993, 0.30391067028671026, 0.30787231838039175, 0.3118856088056944, 0.3159512147497243, 0.32006981817496355, 0.3242421099336622, 0.32846878988372163, 0.33275056700608807, 0.33708815952367716, 0.34148229502184746, 0.34593371057044603, 0.35044315284744365, 0.3550113782641822, 0.35963915309225486, 0.36432725359204, 0.36907646614291045, 0.3738875873751409, 0.3787614243035334, 0.3836987944627864, 0.3887005260446269, 0.3937674580367316, 0.3989004403634571, 0.4041003340284072, 0.40936801125885586, 0.4147043556520548, 0.4201102623234476, 0.42558663805681546, 0.43113440145638116, 0.4367544831008948, 0.44244782569972874, 0.44821538425100704, 0.45405812620179653, 0.4599770316103856, 0.4659730933106787, 0.4720473170787339, 0.4782007218014709, 0.484434339647579, 0.490749216240652, 0.4971464108345809, 0.5036269964912324, 0.5101920602604437, 0.5168427033623639, 0.5235800413721712, 0.5304052044072002, 0.5373193373165059, 0.544323599872901, 0.5514191669674948, 0.5586072288067692, 0.5658889911122232, 0.57326567532262, 0.5807385187988702, 0.5883087750315865, 0.595977713851343, 0.6037466216416763, 0.6116168015548623, 0.6195895737305069, 0.6276662755169848, 0.6358482616957661, 0.6441369047086661, 0.6525335948880585, 0.6610397406900884, 0.6696567689309264, 0.6783861250261017, 0.6872292732329555, 0.6961876968962541, 0.7052628986970056, 0.7144564009045175, 0.7237697456317417, 0.7332044950939481, 0.7427622318707691, 0.7524445591716612, 0.7622531011048259, 0.7721895029496374, 0.7822554314326198, 0.792452575007024, 0.8027826441360474, 0.813247371579746, 0.8238485126856865, 0.8345878456833877, 0.8454671719825996, 0.8564883164754707, 0.8676531278426545, 0.8789634788634062, 0.8904212667297215, 0.9020284133645711, 0.9137868657442819, 0.9256985962251228, 0.9377656028741461, 0.9499899098043424, 0.9623735675141638, 0.974918653231474, 0.9876272712619805, 1.0005015533422101, 1.0135436589970865, 1.0267557759021648, 1.0401401202505942, 1.0536989371248584, 1.067434500873366, 1.0813491154919492, 1.095445115010332, 1.1097248638836414, 1.1241907573890193, 1.1388452220274046, 1.1536907159305532, 1.1687297292733636, 1.1839647846915777, 1.1993984377049267, 1.2150332771457915, 1.2308719255934524, 1.2469170398139995, 1.2631713112059773, 1.2796374662518377, 1.2963182669752786, 1.313216511404545, 1.3303350340417688, 1.3476767063384252, 1.3652444371769894, 1.383041173358871, 1.4010699000987092, 1.4193336415251099, 1.4378354611879118, 1.4565784625720646, 1.475565789618207, 1.4948006272500276, 1.514286201908503, 1.5340257820930991, 1.5540226789100293, 1.5742802466276538, 1.5948018832391262, 1.6155910310323693, 1.6366511771674819, 1.6579858542616763, 1.6795986409818335, 1.701493162644789, 1.7236730918254408, 1.746142148972787, 1.7689041030339883, 1.7919627720865714, 1.8153220239788708, 1.8389857769788207, 1.8629580004312005, 1.8872427154234523, 1.911843995460175, 1.9367659671464137, 1.9620128108798511, 1.9875887615520271, 2.013498109258696, 2.039745200019447, 2.0663344365067005, 2.093270278784211, 2.120557245055194, 2.1481999124202127, 2.1762029176449307, 2.204570957937885, 2.233308791738392, 2.2624212395147256, 2.2919131845727008, 2.3217895738747942, 2.3520554188699467, 2.3827157963341823, 2.4137758492221804, 2.4452407875299538, 2.4771158891687723, 2.5094065008504725, 2.542118038984318, 2.575255990585539, 2.608825914195724, 2.6428334408152065, 2.677284274847608, 2.7121841950566856, 2.747539055535664, 2.7833547866891943, 2.819637396228122, 2.8563929701772106, 2.8936276738960114, 2.9313477531130365, 2.969559534973417, 3.008269429100209, 3.047483928669546, 3.0872096114997967, 3.1274531411549256, 3.168221268062237, 3.2095208306446854, 3.251358756467952, 3.2937420634024672, 3.3366778608005854, 3.3801733506891085, 3.4242358289773414, 3.4688726866809096, 3.5140914111615227, 3.5598995873829002, 3.606304899183069, 3.6533151305632456, 3.700938166993522, 3.7491819967355653, 3.798054712182575, 3.8475645112166834, 3.8977196985840705, 3.9485286872879977, 4.0]} \ No newline at end of file diff --git a/notebooks/6. maps.ipynb b/notebooks/6. maps.ipynb index bb02ce65..6d673a7a 100644 --- a/notebooks/6. maps.ipynb +++ b/notebooks/6. maps.ipynb @@ -27,7 +27,7 @@ "metadata": {}, "outputs": [], "source": [ - "file_name = './3fold_recon_eff.json'\n", + "file_name = './_3fold_recon_eff.json'\n", "\n", "data = {}\n", "coordinate_system = np.linspace(0, 5, 6)\n", @@ -49,7 +49,7 @@ "metadata": {}, "outputs": [], "source": [ - "file_name = './elife.json'\n", + "file_name = './_elife.json'\n", "\n", "data = {}\n", "\n", @@ -69,7 +69,7 @@ "metadata": {}, "outputs": [], "source": [ - "file_name = './s1_bias_3f.json'\n", + "file_name = './_s1_bias.json'\n", "\n", "data = {}\n", "\n", @@ -89,7 +89,7 @@ "metadata": {}, "outputs": [], "source": [ - "file_name = './s2_bias.json'\n", + "file_name = './_s2_bias.json'\n", "\n", "data = {}\n", " \n", @@ -109,7 +109,7 @@ "metadata": {}, "outputs": [], "source": [ - "file_name = './s1_correction_map_regbin.json'\n", + "file_name = './_s1_correction.json'\n", "\n", "data = {}\n", " \n", @@ -130,7 +130,7 @@ "metadata": {}, "outputs": [], "source": [ - "file_name = './s2_correction_map_regbin.json'\n", + "file_name = './_s2_correction.json'\n", "\n", "data = {}\n", " \n", @@ -151,7 +151,7 @@ "metadata": {}, "outputs": [], "source": [ - "file_name = './s1_cut_acc.json'\n", + "file_name = './_s1_cut_acc.json'\n", "\n", "data = {}\n", " \n", @@ -171,7 +171,7 @@ "metadata": {}, "outputs": [], "source": [ - "file_name = './s2_cut_acc.json'\n", + "file_name = './_s2_cut_acc.json'\n", "\n", "data = {}\n", " \n", @@ -191,7 +191,7 @@ "metadata": {}, "outputs": [], "source": [ - "file_name = './s1_smearing_3f.json'\n", + "file_name = './_s1_smearing.json'\n", "\n", "data = {}\n", " \n", @@ -213,7 +213,7 @@ "metadata": {}, "outputs": [], "source": [ - "file_name = './s2_smearing.json'\n", + "file_name = './_s2_smearing.json'\n", "\n", "data = {}\n", " \n", @@ -227,6 +227,27 @@ "with open(file_name, 'w') as file:\n", " json.dump(data, file)" ] + }, + { + "cell_type": "code", + "execution_count": 12, + "id": "6441f63c-239f-48ca-8394-02e01c00b332", + "metadata": {}, + "outputs": [], + "source": [ + "file_name = './_posrec_reso.json'\n", + "\n", + "data = {}\n", + " \n", + "coordinate_system = np.arange(1000)\n", + "data['coordinate_system'] = coordinate_system.tolist()\n", + "data['coordinate_type'] = 'point'\n", + "data['coordinate_name'] = 'num_e'\n", + "data['map'] = (np.ones_like(coordinate_system) * 0.1).tolist()\n", + "\n", + "with open(file_name, 'w') as file:\n", + " json.dump(data, file)" + ] } ], "metadata": { @@ -245,7 +266,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.8.16" + "version": "3.9.16" } }, "nbformat": 4,