Skip to content

Commit

Permalink
Move msgs in EcalProcessFilter to logging system
Browse files Browse the repository at this point in the history
  • Loading branch information
tvami authored and tomeichlersmith committed Apr 10, 2024
1 parent 2e3ab12 commit 67a948a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
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

0 comments on commit 67a948a

Please sign in to comment.