Skip to content

Adding class to return FR weights in ZHtautau analysis#152

Open
mmusich wants to merge 1 commit intocms2l2v:masterfrom
mmusich:74X_FRWeights
Open

Adding class to return FR weights in ZHtautau analysis#152
mmusich wants to merge 1 commit intocms2l2v:masterfrom
mmusich:74X_FRWeights

Conversation

@mmusich
Copy link
Copy Markdown
Contributor

@mmusich mmusich commented Apr 18, 2016

No description provided.

Comment thread src/FRWeights.cc
double FRWeights::getWeight(const std::string& cat ,const std::string& bin, const std::string& var,const std::string& wrt ,const double& pT)
/*****************************************************************/
{
TGraphErrors* graph = (TGraphErrors*)WeightsFile->Get((cat+"FRWeights"+var+bin+wrt).c_str());
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be move to the constructor and cached
We can't reload the histogram each time we want to compute the weight

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi Loic yes, just testing...
also the branch is not the correct one at the moment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants