gerbaudo/SusyCommon — pull request #3 by sparticlesteve (2014-04-28 08:41:12+00:00)
Title: Bch cleaning

Added BCH cleaning variables and additional necessary updates.

Some of these updates probably could (or should) have gone in separate pull requests, but after making several substantial commits just to get the BCH stuff to work, I was too lazy to go through and split up the relevant commits into different branches.

This required an update to SUSYTools (now SUSYTools-00-03-19), which required several other updates to get working:
* Updating the electron medium SF file (now version 7)
* Updating and fixing usage of SUSYTools::initialize
* Adding additional criteria for flagging samples as SUSY MC
* This shouldn't have had anything to do with the SUSYTools update, but for some reason I haven't seen the issue before. In a ttbar p1512 sample, I was getting events where the SUSY spart pdgId branches are "available" but the values are zero. So, the new criteria is that the branches be available *and* the values be nonzero.

And something else of importance:
* ***I increased the electron pt from 6 GeV to 7 GeV***
* This was because I was getting a lot of errors from the electron efficiency tools that SFs are not available for electrons below 7 GeV.
* I think this is ok because people are not seriously using electrons down to 6 GeV for an analysis, and probably shouldn't anyway if there aren't official SFs for them.

Specifically for the BCH cleaning, I added the necessary random determination of run and lb number using the pileup tool. The members and a single method were added to SusyD3PDAna, and the results are used in the fillJetVars method with SUSYObjDef to compute the cleaning flags for medium (including 2 sys variations) and tight.

These updates require the new tag MultiLep-01-06-06.