Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[root6] Set attributes on StrangeMuDstMaker in StBFChain, rather than using interpreter to configure #444

Merged
merged 1 commit into from
Nov 18, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions StRoot/StBFChain/StBFChain.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -638,12 +638,12 @@ Int_t StBFChain::Instantiate()
}

if (maker == "StStrangeMuDstMaker" && GetOption("CMuDST")&& GetOption("StrngMuDST") ) {
TString cmd(Form("StStrangeMuDstMaker *pSMMk = (StStrangeMuDstMaker*) %p;",mk));
cmd += "pSMMk->DoV0();"; // Set StrangeMuDstMaker parameters
cmd += "pSMMk->DoXi();";
cmd += "pSMMk->DoKink();";
cmd += "pSMMk->SetNoKeep();"; // Set flag for output OFF
ProcessLine(cmd);

mk -> SetAttr( "DoV0", 1 );
mk -> SetAttr( "DoXi", 1 );
mk -> SetAttr( "DoKink", 1 );
mk -> SetAttr( "SetNoKeep", 1 );

}

// Alex requested an option (not turned by default) to disable all
Expand Down
5 changes: 5 additions & 0 deletions StRoot/StStrangeMuDstMaker/StStrangeMuDstMaker.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,11 @@ StStrangeMuDstMaker::~StStrangeMuDstMaker() {
//_____________________________________________________________________________
Int_t StStrangeMuDstMaker::Init() {

if ( 1 == IAttr( "DoV0" ) ) DoV0();
if ( 1 == IAttr( "DoXi" ) ) DoXi();
if ( 1 == IAttr( "DoKink" ) ) DoKink();
if ( 1 == IAttr( "SetNoKeep" ) ) SetNoKeep();

abortEvent = kFALSE;
firstEvent = kTRUE;
if (Debug()) gMessMgr->Debug() << "In StStrangeMuDstMaker::Init() ... "
Expand Down