Hi Brahms, while trying to calculate the mrs efficiency, I attempt to use peripheral events. So I load the centrality module in the script I am using before the MrsEfficiency module ------------------------------------------- // add centrality modules BrMultCentModule *fMultCentModule = new BrMultCentModule("MultCent", "Mult Centrality"); appendContainer->AddModule(fMultCentModule); BrMrsEfficiencyCalculator *mrsEff = new BrMrsEfficiencyCalculator("mrs","mrs"); appendContainer->AddModule(mrsEff); --------------------------------------------- The centrality object is given the name "CentMult" in the centrality module ============================= // Make the output object. TString tableName = "CentMult"; BrMultCent* centobj = new BrMultCent(tableName.Data(), "TMA + SMA centrality"); output->AddObject(centobj); ============================== So, in the Event part of the efficiency calculator I put the lines -------------------------------------------------- BrMultCent* centobj = (BrMultCent*)inNode->GetObject("CentMult"); if(centobj){ cout<<"centrality object found"<<endl; } else { cout<<"No centrality object found"<<endl; return; } ---------------------------------------------- when I run the script I get the following ============== In BrMrsEfficiencyCalculator::Event(BrEventNode* inNode, BrEventNode* outNode) In BrMrsEfficiencyCalculator::CalculateTpcMatching(BrEventNode* inNode) Getting BB vertex BB vertex found Getting centrality object No centrality object found =============== I am not sure why the centrality object is null. Any ideas? Selemon _______________________________________________ Brahms-dev-l mailing list Brahms-dev-l_at_lists.bnl.gov http://lists.bnl.gov/mailman/listinfo/brahms-dev-lReceived on Thu Nov 30 2006 - 12:58:13 EST
This archive was generated by hypermail 2.2.0 : Thu Nov 30 2006 - 12:58:43 EST