This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| users:ngadiuba:tools:puweightrecipe [2014/04/15 10:45] – created ngadiuba | users:ngadiuba:tools:puweightrecipe [2014/04/15 14:34] (current) – ngadiuba | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | fsghfsajkf | + | ===== Recipe to Derive the Data Pile-Up Profiles |
| + | |||
| + | * The following two centrally produced files should be used: | ||
| + | * the pile-up JSON file [[https:// | ||
| + | * the list of good lumi sections [[https:// | ||
| + | |||
| + | * The actual pile-up profile is easily generated with the command | ||
| + | |||
| + | | ||
| + | |||
| + | === PU-Related Links and info === | ||
| + | |||
| + | * [[https:// | ||
| + | * If you are interested in a specific run range then you have to filter the two JSON files above as described [[users: | ||
| + | * You can download directly the JSON files with the command | ||
| + | |||
| + | wget --no-check-certificate https:// | ||
| + | |||
| + | ===== How to calculate weights ===== | ||
| + | |||
| + | * Get the MC PU distribution for the scenario of interest from [[https:// | ||
| + | * Then calculate the weights using the true number of PU interactions for the in-time bunch crossing. This information is extracted in CMSSW as follows | ||
| + | |||
| + | | ||
| + | | ||
| + | |||
| + | | ||
| + | |||
| + | float Tnpv = -1; | ||
| + | | ||
| + | |||
| + | int BX = PVI-> | ||
| + | |||
| + | if(BX == 0) { | ||
| + | Tnpv = PVI-> | ||
| + | continue; | ||
| + | } | ||
| + | |||
| + | } | ||
| + | |||
| + | ===== PUweight class for SFrame ===== | ||
| + | * [[users: | ||
| + | * [[users: | ||
| + | |||
| + | | ||