---
# System prepended metadata

title: Todo list

---

# Todo list

## [$\gamma$+jet](https://hackmd.io/@9xcmmfiZQSedn7yvpCbIsw/Hk6RFczYs)
* [ ] Meeting0804 : Use NLO model instead of NNLO in madgraph. Check how to generate NLO and NNLO.
* [ ] Meeting0804 : 190GeV has very low gamme+jet purity. So what my drawing is normal. Very low purity.
* [ ] Why jet error so large?
    * [x] Swapping error to check the error roll back or not. (Which this is the bug fixed this time)
The error still large. So it is urgent to reduce light composition by selection.
    * [x] Summary intrinsic c paper and additional cut in CMS.
## NTUMAC
* [x] Dispense HD hexaboard
* [ ] DB website
    * [ ] Build a windows Flask env and publish it to innernet
    * [ ] Generalize variable list by python
    * [ ] Correct XML format
    * [ ] Retrieve cached information by GET.
    * [ ] Tab page for each step.
    * [ ] Accomplish Q&A page.
    * [ ] Translate ID to name.
        * [x] Retrieve SQL data by python and json file.
        * [ ] json reader and make a menu for each ID.

* [ ] Activate monitor


## Jun 18 2024
### Apply JetJECUnc on data and MC (JEC). [ggNtuple](https://github.com/cmkuo/ggAnalysis/blob/102X/ggNtuplizer/plugins/ggNtuplizer_jets.cc#L233-L238) and [Twiki](https://twiki.cern.ch/twiki/bin/view/CMSPublic/WorkBookJetEnergyCorrections?redirectedfrom=CMS.WorkBookJetEnergyCorrections)
* [x] Put them into xPhoton
* [x] Put them into makeHisto
* [ ] Put them into fitting
* [ ] Asking cmkuo for microAOD part. Is the ggNtuple applying corrected Jet Energy?
* [ ] Need to apply it on data?
* [ ] How to apply it on data and MC?
    * [ ] Calculate pt / pt+unc / pt-unc and make pre-selection. Than do the same plot?

### Apply JetP4Smear on MC. (JER) [ggNtuple](https://github.com/cmkuo/ggAnalysis/blob/102X/ggNtuplizer/plugins/ggNtuplizer_jets.cc#L430-L445)
* [x] Put them into xPhoton
* [ ] Put them into makehisto
* [ ] Put them into fitting

### Zee Scale Factor : Correct MC discriminant on photon part
* [x] Use Tag and Probe method.
* [ ] High pt regin (500,1000) uses extrapolate method.
    * [x] But it seems to over estimated the scale factor.
    * [ ] Check the flatness of the scale factor from y = 0.2~1.2
    * [ ] Need to use inclusive photon method? [Presentations on Indico](https://indico.cern.ch/event/1357753/contributions/5716080/attachments/2773351/4832757/23_12_15_inclusive_photon_method.pdf)
    
### Create Data / MC plot without binning
Check effectness of each weights
* [ ] Decide k-factor
* [ ] luminosity weight
* [ ] photon scale factor
* [ ] JEC and JER
* [ ] c tagging
* [ ] QCD GenHT cut


# Mini Gantry UI
## Camera Cooperation UI
### Mini gantry
Need a bidirectional communication between mini gantry an raspberry pi pico handling job trigger and movement timer. If not, a configurable timer is also required.
* [x] Wiring SysIn10
* [ ] Wiring sysOut10 (Or known number)
* [ ] **Normal point job data-**
    * Off SysOut
    * Waiting for SysIn
    * On Sysout
* [ ] **Ending poing job data-**
    * Off SysOut
    * Waiting for button (SysOut16)
    
   
### Raspberry Pi Pico
* [x] Pipe IO
* [x] Electrically connects the relay
    * [x] Short DC+/-
    * [x] Dummy connect 24V - resistor - pin IO.
* [x] Encode IO (send 1 and 0)

### Camera 
* [x] Use Python activates program
* [x] Send hotkey by python
* [x] Activate program before sending hotkey

### send hotkey to application
#### bash
* [x] Open applicaion
* [x] Check if the application opened or not.
    * [x] Open application
    * [x] If opened, do related motion.
        * [x] Send warning if not able to handle it
        * [x] Ignore it if nothing found
        * [ ] ~~Delete the instance and reactivate it~~
* [x] Send hotkey
    * [x] focus the application before send hotkey
    * [x] send hotkey
* [x] Yaml configurations
    * [x] Application name.
    * [x] wildcard for opened application.
    * [x] waiting timer for activating application.
    * [x] waiting timer after hotkey clicked.
    
* [x] Control on System Application
    * [x] Windows version of capturing application
    * [x] Install macOS version of capturing application
    * [x] Wiring the electric circuit of raspberry pi pico
    * [x] Windows version of serial device commnication manager
    * [x] Publish alpha version software
* [x] Control on serial device
* [x] run job at background
* [x] UI
    * [x] Provide waiting timer1
    * [x] Provide waiting timer2
    * [x] Add "Set" function to each module
    
### Debugs
* [ ] chhsaio said the program can not work on mini gantry
    * [ ] Program said : Sending command to Mini gantry. But the status wouldn't go t next step.
* [ ] Let this code start / stop only by mini gantry
    * [ ] Workflow : 1. Open GUI, 2. Set mini gantry job 3. Press start button on mini gantry
    * [ ] Once mini gantry got a pause from start button, the mini gantry moving state wouldn't report ended.
        * [ ] Give a counter said there is a pausing.
        * [ ] Remove start/pause button on GUI
    * [ ] Design a new starting method.
        * [ ] Can I add point job data at HOME?
            * [ ] Add additional point 1 for initialize point?
            * [ ] If additional point 1 added, modify sorting method that add additional index.
            * [ ] Not to add additional point. Instead, modify the first point.
                * [ ] Open SysOut
                * [ ] Wait 1 second
                * [ ] Close Sysout
                * [ ] Wait for SysIn
                * [ ] Open SysOut
        * [ ] Let GUI start automatically with receiving GPIO input for N cycle
 