237 std::stringstream err_str;
238 err_str <<
"ERROR! Really sorry, but we can only do mixing for one collection right now! ";
239 err_str <<
"\nYep. We're gonna throw an exception now. You should change your fcl to set 'EventsToMix' to 1";
267 &OverlayRawDataDetailDUNE35t::MixSimpleCopy<simb::MCTruth>,
273 &OverlayRawDataDetailDUNE35t::MixSimpleCopy<simb::MCParticle>,
281 &OverlayRawDataDetailDUNE35t::MixSimpleCopy<sim::SimChannel>,
285 &OverlayRawDataDetailDUNE35t::MixSimpleCopy<sim::AuxDetSimChannel>,
290 &OverlayRawDataDetailDUNE35t::MixSimpleCopy<raw::ExternalTrigger>,
295 &OverlayRawDataDetailDUNE35t::MixSimpleCopy<raw::RawDigit>,
312 &OverlayRawDataDetailDUNE35t::MixSimpleCopy<raw::RawDigit>,
329 helper.
produces< std::vector<dunemix::EventMixingSummary> >();
348 const char*
c =
getenv(
"SAM_STATION");
349 if(c == 0 || *c == 0)
360 throw cet::exception(
"OverlayRawDataDUNE35t") <<
"Failed to find project uri.";
365 gethostname(hostname,
sizeof hostname);
372 const char* c =
getenv(
"SAM_USER");
373 if(c == 0 || *c == 0)
375 if(c != 0 && *c != 0)
382 std::cout <<
"Mix SAM: fSamProjectURI = " <<
fSamProjectURI <<
"\n" 383 <<
"Mix SAM: fSamAppName = " <<
fSamAppName <<
"\n" 385 <<
"Mix SAM: hostname = " << hostname <<
"\n" 386 <<
"Mix SAM: fSamUser = " <<
fSamUser <<
"\n" 390 <<
"Mix SAM: fSamSchema = " <<
fSamSchema <<
"\n";
406 throw cet::exception(
"OverlayRawDataDUNE35t") <<
"Failed to start sam process.";
bool fForceStuckBitRetention
void registerSecondaryFileNameProvider(ProviderFunc_ func)
fhicl::ParameterSet fpset
std::string fGeneratorInputModuleLabel
std::string fRawDigitMCModuleLabel
std::string fSamAppVersion
MaybeLogger_< ELseverityLevel::ELsev_info, false > LogInfo
std::string fSamProjectURI
std::string fMCRecoInputModuleLabel
const std::string instance
short fDefaultRawDigitSatPoint
std::string fChannelGainFile
void produces(std::string const &instanceName={})
std::string fRawDigitDataModuleLabel
std::string fSamProcessID
void declareMixOp(InputTag const &inputTag, MixFunc< PROD, OPROD > mixFunc, bool outputProduct=true)
std::string getenv(std::string const &name)
T get(std::string const &key) const
std::string fTriggerInputModuleLabel
bool get_if_present(std::string const &key, T &value) const
std::string fSamDescription
std::unique_ptr< std::vector< dunemix::EventMixingSummary > > fEventMixingSummary
bool MixRawDigits(std::vector< std::vector< raw::RawDigit > const * > const &inputs, std::vector< raw::RawDigit > &output, art::PtrRemapper const &)
std::string fSamAppFamily
std::string fG4InputModuleLabel
std::string fRawDigitMixerSourceModuleLabel
float fDefaultMCRawDigitScale
std::string fRawDigitInputSourceModuleLabel
cet::coded_exception< error, detail::translate > exception
QTextStream & endl(QTextStream &s)