Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Move msgs in EcalProcessFilter to logging system #1277

Merged
merged 1 commit into from
Apr 10, 2024
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
4 changes: 4 additions & 0 deletions Biasing/include/Biasing/EcalProcessFilter.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
/* Framework */
/*~~~~~~~~~~~~~~~*/
#include "Framework/Configure/Parameters.h"
#include "Framework/EventProcessor.h"

// Forward declaration
class G4Step;
Expand Down Expand Up @@ -62,6 +63,9 @@ class EcalProcessFilter : public simcore::UserAction {

/// Process to filter
std::string process_{""};

/// Enable logging
enableLogging("EcalProcessFilter")

}; // EcalProcessFilter
} // namespace biasing
Expand Down
4 changes: 2 additions & 2 deletions Biasing/src/Biasing/EcalProcessFilter.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -166,12 +166,12 @@ void EcalProcessFilter::stepping(const G4Step* step) {
return;
}

std::cout << "[ EcalProcessFilter ]: "
ldmx_log(debug) << "[ EcalProcessFilter ]: "
<< G4EventManager::GetEventManager()
->GetConstCurrentEvent()
->GetEventID()
<< " Brem photon produced " << secondaries->size()
<< " particle via " << processName << " process." << std::endl;
<< " particle via " << processName << " process.";
trackInfo->tagBremCandidate(false);
trackInfo->setSaveFlag(true);
trackInfo->tagPNGamma();
Expand Down
Loading