{"action":"created","issue":{"url":"https://api.github.com/repos/psi46/MoReWeb/issues/43","labels_url":"https://api.github.com/repos/psi46/MoReWeb/issues/43/labels{/name}","comments_url":"https://api.github.com/repos/psi46/MoReWeb/issues/43/comments","events_url":"https://api.github.com/repos/psi46/MoReWeb/issues/43/events","html_url":"https://github.com/psi46/MoReWeb/issues/43","id":56373702,"number":43,"title":"Vcal calibration -> DB Upload","user":{"login":"veloxid","id":1712549,"avatar_url":"https://avatars.githubusercontent.com/u/1712549?v=3","gravatar_id":"","url":"https://api.github.com/users/veloxid","html_url":"https://github.com/veloxid","followers_url":"https://api.github.com/users/veloxid/followers","following_url":"https://api.github.com/users/veloxid/following{/other_user}","gists_url":"https://api.github.com/users/veloxid/gists{/gist_id}","starred_url":"https://api.github.com/users/veloxid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/veloxid/subscriptions","organizations_url":"https://api.github.com/users/veloxid/orgs","repos_url":"https://api.github.com/users/veloxid/repos","events_url":"https://api.github.com/users/veloxid/events{/privacy}","received_events_url":"https://api.github.com/users/veloxid/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"macjohnny","id":5589029,"avatar_url":"https://avatars.githubusercontent.com/u/5589029?v=3","gravatar_id":"","url":"https://api.github.com/users/macjohnny","html_url":"https://github.com/macjohnny","followers_url":"https://api.github.com/users/macjohnny/followers","following_url":"https://api.github.com/users/macjohnny/following{/other_user}","gists_url":"https://api.github.com/users/macjohnny/gists{/gist_id}","starred_url":"https://api.github.com/users/macjohnny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/macjohnny/subscriptions","organizations_url":"https://api.github.com/users/macjohnny/orgs","repos_url":"https://api.github.com/users/macjohnny/repos","events_url":"https://api.github.com/users/macjohnny/events{/privacy}","received_events_url":"https://api.github.com/users/macjohnny/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2015-02-03T12:53:07Z","updated_at":"2015-02-11T13:01:20Z","closed_at":null,"body":"In order to make the Upload to the DB of the vcal calibration as easy as possible, \r\nPlease collect the following variables in the XrayCalibration.py in a similar way as done in the Fulltest.py.\r\nBe found at: https://indico.cern.ch/event/360854/contribution/3/material/slides/4.pdf\r\n\r\nContent for vcal calibration: \r\nX-Ray calibration with known energies\r\n DB name: “XRayVcalCalibration”\r\nOn ROC Level\r\n![screen shot 2015-02-03 at 13 51 09](https://cloud.githubusercontent.com/assets/1712549/6020399/da5acf22-abab-11e4-9f96-53fa13c73af5.png)\r\n\r\nOn Module Level:\r\n![screen shot 2015-02-03 at 13 52 37](https://cloud.githubusercontent.com/assets/1712549/6020418/f8b8328e-abab-11e4-9c06-2a82fc6960e2.png)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/psi46/MoReWeb/issues/comments/73877168","html_url":"https://github.com/psi46/MoReWeb/issues/43#issuecomment-73877168","issue_url":"https://api.github.com/repos/psi46/MoReWeb/issues/43","id":73877168,"user":{"login":"macjohnny","id":5589029,"avatar_url":"https://avatars.githubusercontent.com/u/5589029?v=3","gravatar_id":"","url":"https://api.github.com/users/macjohnny","html_url":"https://github.com/macjohnny","followers_url":"https://api.github.com/users/macjohnny/followers","following_url":"https://api.github.com/users/macjohnny/following{/other_user}","gists_url":"https://api.github.com/users/macjohnny/gists{/gist_id}","starred_url":"https://api.github.com/users/macjohnny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/macjohnny/subscriptions","organizations_url":"https://api.github.com/users/macjohnny/orgs","repos_url":"https://api.github.com/users/macjohnny/repos","events_url":"https://api.github.com/users/macjohnny/events{/privacy}","received_events_url":"https://api.github.com/users/macjohnny/received_events","type":"User","site_admin":false},"created_at":"2015-02-11T13:01:20Z","updated_at":"2015-02-11T13:01:20Z","body":"Hi Felix,\r\n \r\nit is hitrate=N_Hits/(N_Triggers*25ns*Area). You can get from the root file N_Hits for every ROC from the histogram Xray.hMap_target_C%i_V0 and N_Triggers from Xray.ntrig_target_V0. For the area you could estimate 52*80*0,1mm*0,15mm= 62,4 mm².\r\nWith grading for XRay you mean for the Vcal calibration? We could add two cuts on the slope and two on the offset (if cut_1 < slope < cut_2, ROC is ok, if not it is bad) and a cut on chi²/ndf on the fit. To know if this works I would need more data from other centers, because there can be systematic effects and one center could for example measure always slightly higher values.\r\n \r\n \r\nGreetings,\r\nMartin"}}