Des
January 11, 2018, 10:18am
1
Hi all,
I would like to ask about the AddNormFactor function in HistFactory, I want to see what it actually does, so looking here where it is defined,
https://root.cern.ch/doc/v606/Sample_8cxx_source.html
I cannot see something else being done other than printing.
So my question is, what the AddNormFactor exactly does, where I could look for it?
Thanks!
moneta
January 12, 2018, 9:53am
2
Hi,
It is explained at the top of page 8 of the HIstFactory guide, see
Best Regards
Lorenzo
Des
January 12, 2018, 10:24am
3
Thanks lorenzo, can I see the actual code for this somewhere?
Best,
Des
moneta
January 12, 2018, 10:41am
4
Hi,
Would you like to see how this is implemented in the workspace ?
The code creating the workspace with this norm factor is here
interp.forceNumInt();
proto->import(interp); // individual params have already been imported in first loop of this function
// now create the product of the overall efficiency times the sigma(params) for this estimate
proto->factory(("prod:"+productPrefix+"("+prefix+","+systTerm+")").c_str() );
}
// GHL: Consider passing the NormFactor list instead of the entire sample
string HistoToWorkspaceFactoryFast::AddNormFactor(RooWorkspace* proto, string& channel, string& sigmaEpsilon, Sample& sample, bool doRatio){
string overallNorm_times_sigmaEpsilon ;
string prodNames;
vector<NormFactor> normList = sample.GetNormFactorList();
vector<string> normFactorNames, rangeNames;
if(normList.size() > 0){
for(vector<NormFactor>::iterator itr = normList.begin(); itr != normList.end(); ++itr){
You might see also what is done by printing the workspace it after having it created with the norm factor
Cheers
Lorenzo
system
Closed
January 26, 2018, 10:41am
5
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.