16 #include "StHbtMaker/ThCorrFctn/StHbtThCFManager.h"
17 #include "StHbtMaker/Base/StHbtThPair.hh"
18 #include "StHbtMaker/Base/StHbtThCorrFctn.hh"
19 #include "StHbtMaker/Infrastructure/StHbtTypes.hh"
30 StHbtThCFManager::~StHbtThCFManager()
33 void StHbtThCFManager::AddMixedPair(
const StHbtPair* aPair) {
37 StHbtThCorrFctnIterator iter;
38 for (iter=mThCorrFctnColl.begin(); iter!=mThCorrFctnColl.end();iter++){
39 (*iter)->AddNum(mThPair);
40 (*iter)->AddDen(mThPair);
45 void StHbtThCFManager::AddRealPair(
const StHbtPair*)
48 void StHbtThCFManager::Finish() {
50 StHbtThCorrFctnIterator iter;
51 for (iter=mThCorrFctnColl.begin(); iter!=mThCorrFctnColl.end();iter++){
57 StHbtString StHbtThCFManager::Report() {
58 std::ostringstream tStr;
59 tStr <<
"Theoretical Correlation Function Manager Report" << endl;
61 tStr <<
"ERROR : No Theoretical Pair Plugged " << endl;
63 tStr << mThPair->Report() << endl;
65 tStr << mThCorrFctnColl.size() <<
" Correlations Functions Plugged : " << endl;
66 StHbtThCorrFctnIterator iter;
67 for (iter=mThCorrFctnColl.begin(); iter!=mThCorrFctnColl.end();iter++){
68 tStr <<(*iter)->Report() << endl;
70 StHbtString returnThis = tStr.str();
75 mThCorrFctnColl.push_back(aCorrFctn);};
77 inline void StHbtThCFManager::SetThPair(
StHbtThPair* aThPair) {mThPair=aThPair;};