This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| users:ngadiuba:tools:puweightrecipe [2014/04/15 14:10] – ngadiuba | users:ngadiuba:tools:puweightrecipe [2014/04/15 14:34] (current) – ngadiuba | ||
|---|---|---|---|
| Line 18: | Line 18: | ||
| ===== How to calculate weights ===== | ===== How to calculate weights ===== | ||
| - | | + | |
| + | | ||
| + | * 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: | ||
| + | |||
| + | | ||