JobCModule Class Reference

#include <JobCModule.h>

Inheritance diagram for JobCModule:
AlignmentModule AltDeMuxModule AnalysisModule AnaTrim AtmosShowerListModule AtNuDisplayModule AtNuFindModule AtNuFitModule AtNuTreeModule AutoPIDMaker BDAnaModule BDataQualityModule BDSpliceModule BDTestDataModule BDUniquifyTestModule BeamMonBaseModule BeamMonDbuModule BeamMonSwicPedsDbuModule BiggestChopModule Blinder CalDet2003PlotsModule CalDetSIModule CandDigitModule CDAnaModule CDFMonitoringModule CDPreFilterModule CDTrackerModule CheckND CheezyDisplayModule ChopHelperModule ChopModule ClockCalibrationModule Cluster3DModule ClusterSRListModule CompareAll CompareMD CompareMST CompareToReroot CondensedNtpModule CondensedNtpModuleAtm CondensedNtpModuleNC CountPot Cutter DatabaseToucher DataQualityFilter DataQualityReader DbmModule DbuDaqFileModule DbuDaqMonitorModule DcsWriter DDSPaceModule DemoCandNtpModule DemoDataReject DemoEventDump DemoMCFilter DemoNPlaneCut DemoNtupleModule DemoRecordModule DemoSnarlList DeMuxDigitListModule DemuxFast DetectorAlignmentModule DetSim DigitListModule DmxDeMuxCosmicsModule DmxDeMuxFilterModule DmxDeMuxModule DummyModule DumpBadElectronics DumpMomModule EventSRListModule EvtAddRawDigitBlockModule EvtInfoInjectorModule EvtKinNuModule FardetBeamSelect FarDetDataQualityModule FarDetDeadChipModule FarDetEventModule FarDetRawDigitDump FarDetRawRateDump FarDetShieldPlankListModule FarDetSliceListModule FarDetStripListModule FarDetTpSinglesDump FarDetVarcErrorsDump FarmListModule FCPCFilterModule FillBadChannelDB FillDataModule FillFarRunQuality FillHvFromSingles FillNearRunQuality FillPIDFromText FillSpillServerMon FiltCosmicModule FilterDigitListModule FilterEvent FilterLIModule FilterPID FilterRunType FilterStream FiltMBSpillModule FiltSGateModule FiltTriggerPrescale FitShowerEMListModule FitTrackCamAnalysisModule FitTrackCamListModule FitTrackMSListModule FitTrackSAListModule FitTrackSRListModule FixModule GenieModule GetFidModule HelloWorld HepevtModule HistManModule IoOutputModule JobCDemoModuleA JobCDemoModuleB JobCDisplayModule JobCInputModule JobCMsgModule JobCPathModule JobCRootCommandModule JobCRootModule LIRawNt LIStreamHunter LISummaryAnalyser LISummaryModule LoadPlex MakeAlignmentModule MCAnalysis MCInitModule MCMerge MCMonitorBeam MCMonitorCosmic MCNNMergeModule MergeEvent MeuCalModule MicroDSTMaker MNtpModule MnvRawDigitSuppression MSTTemplate NCDataQualityModule NDSgateTimeLooter NeardetBeamSelect NoiseFilterModule NtpBDFullModule NtpBDLiteModule NtpCluster3DModule NtpEMModule NtpFitSAModule NtpMaker NtpMCModule NtpMRModule NtpSRFilterModule NtpSRModule NtpStFilterModule NtpStModule NtpStTrimmer NtpTHModule NuDemoModule NueBeamMonModule NueDisplayModule NueHandScan NueModule NuePrint NueRead NueReadTJPID NueReadwPID NueReweight NueSensitivity NuModule OltBlockScan OltDataIntegrity OltEnds OltNewModule OltRawLI OltTimePlot OltTimeScan ParticleAna ParticleDisplay ParticleFilterModule ParticleFinder ParticlePIDSaver ParticleReport ParticleTruthMaker PEGainModule PETrimmer PhotonTransport PIDEval PlotMuonClusterModule PreFilter PrintStat PTSimModule PulserCollectorModule PulserDBModule PulserDDSCheck PulserFromRawCollectorModule PulserFromRawFilterModule PulserFromRawModule PulserQDP PulserSummaryModule PulserTimingMaker PurgeCandidateModule RateSummary RawLILooker RawRecCounts ReadDispatcherModule RealCalDetPIDModule RecordSetupModule RecoTreeModule RemoveMuon RerootFlsDigitToDigiPE RerootToRawDataModule RerootToTruthModule RotoClientModule RunFileModule RunSummary ScintCalModule ScintHitAna ScintHitTruthModule SelectSpillTimes SelectSpillTriggers SetKNNModule ShieldPlankListModule ShowerEMListModule ShowerSRListModule SimCheck SleepModule SliceFromChopModule SliceSRListModule SpillTypeFilter StopMuFilterModule StripCands StripSRListModule SubShowerSRListModule SystematicGains TestCalibModule TestDataModule TestDemuxModule TestDigitsModule TestSwimmer TrackCamListModule TrackDirectionModule TrackSRListModule TrimModule UberDST UberModule UberModuleLite UberPlotsModule UserAnalysis UserDisplayModule ValidateRawChecksums ValVtxModule VtxModule VtxModule WriteStdHepFileModule XTalkFilter

List of all members.

Public Member Functions

 JobCModule ()
virtual ~JobCModule ()
const char * GetName () const
virtual JobCResult Ana (const MomNavigator *mom)
virtual JobCResult Reco (MomNavigator *mom)
virtual void BeginJob ()
virtual void EndJob ()
virtual void BeginFile ()
virtual void EndFile ()
virtual void BeginRun ()
virtual void EndRun ()
Int_t GetCurrentRun () const
Int_t GetLastRun () const
const char * GetCurrentFile (const char *streamname="*") const
const char * GetLastFile (const char *streamname="*") const
virtual const RegistryDefaultConfig () const
virtual void Config (const Registry &r)
virtual JobCResult Get (MomNavigator *mom)
virtual JobCResult Put (const MomNavigator *mom)
virtual void Cmd (const char *command)
virtual void HandleCommand (JobCommand *command)
virtual void Help ()
virtual void Report ()
virtual void Reset ()
void Init (const char *name)
void Set (const char *paramlist)
void Set (JobCDialog *d=0)
virtual RegistryGetConfig ()
bool SetUniqueName (const char *name)
const char * GetUniqueName () const
JobCPathGetPath ()
void SetPath (JobCPath *path)

Private Member Functions

JobCInputModuleGetJobCInputModule () const

Private Attributes

std::string fName
Registry fConfig
JobCPathfPath

Detailed Description

Definition at line 63 of file JobCModule.h.


Constructor & Destructor Documentation

JobCModule::JobCModule (  ) 

Definition at line 23 of file JobCModule.cxx.

00023 : fName(""), fConfig(false), fPath(0) { }

JobCModule::~JobCModule (  )  [virtual]

Definition at line 44 of file JobCModule.cxx.

00044 {}


Member Function Documentation

JobCResult JobCModule::Ana ( const MomNavigator mom  )  [virtual]

Implement this for read only access to the MomNavigator

Reimplemented in AlignmentModule, MakeAlignmentModule, TrackDirectionModule, PlotMuonClusterModule, AltDeMuxModule, AnalysisModule, CondensedNtpModule, CondensedNtpModuleAtm, CondensedNtpModuleNC, AtNuDisplayModule, AtNuFindModule, AtNuFitModule, AtNuTreeModule, RecoTreeModule, FarDetEventModule, FarDetShieldPlankListModule, FarDetSliceListModule, FarDetStripListModule, NtpMaker, BDAnaModule, BeamMonDbuModule, BeamMonSwicPedsDbuModule, BDataQualityModule, BeamMonBaseModule, CDFMonitoringModule, BDSpliceModule, BDUniquifyTestModule, TestCalibModule, CalDet2003PlotsModule, ParticleFilterModule, ScintHitTruthModule, UberDST, UberPlotsModule, AutoPIDMaker, Cutter, CDAnaModule, CDPreFilterModule, CDTrackerModule, BiggestChopModule, ChopHelperModule, ChopModule, SliceFromChopModule, EventSRListModule, FitTrackCamAnalysisModule, FitTrackMSListModule, FitTrackSAListModule, DataQualityReader, DumpBadElectronics, FillBadChannelDB, FillNearRunQuality, Cluster3DModule, DbuDaqFileModule, DbuDaqMonitorModule, DatabaseToucher, DumpMomModule, RawRecCounts, SleepModule, ValidateRawChecksums, DcsWriter, DemoDataReject, DemoEventDump, DemoMCFilter, DemoNPlaneCut, DemoSnarlList, HelloWorld, PrintStat, UserAnalysis, DmxDeMuxCosmicsModule, DmxDeMuxModule, CustomLightInjector, DetSim, LightInjector, SimCheck, DDSPaceModule, GenieModule, HepevtModule, EvtAddRawDigitBlockModule, EvtInfoInjectorModule, MnvRawDigitSuppression, FarDetDataQualityModule, FarDetDeadChipModule, FarDetRawDigitDump, FarDetRawRateDump, FarDetTpSinglesDump, FarDetVarcErrorsDump, FCPCFilterModule, PreFilter, FilterLIModule, Blinder, DataQualityFilter, FardetBeamSelect, FiltSGateModule, FiltTriggerPrescale, NeardetBeamSelect, StopMuFilterModule, JobCDisplayModule, JobCRootCommandModule, JobCDemoModuleA, JobCDemoModuleB, LIStreamHunter, LISummaryAnalyser, LIRawNt, RawLILooker, UserDisplayModule, MeuCalModule, CountPot, FiltMBSpillModule, MNtpModule, FiltCosmicModule, MCAnalysis, MergeEvent, RemoveMuon, StripCands, NoiseFilterModule, NuDemoModule, DummyModule, NuModule, CompareAll, CompareMD, CompareMST, NueHandScan, NuePrint, NueRead, NueReadTJPID, NueReadwPID, NueSensitivity, NueDisplayModule, MSTTemplate, ParticleDisplay, MCMonitorBeam, MCMonitorCosmic, PEGainModule, PhotonTransport, CompareToReroot, ScintHitAna, ToyMCModule, PulserDDSCheck, PulserTimingMaker, DemoRecordModule, CheezyDisplayModule, RerootToTruthModule, WriteStdHepFileModule, FarmListModule, FilterRunType, FilterStream, RateSummary, RunFileModule, RunSummary, ScintCalModule, ShieldPlankListModule, CheckND, NDSgateTimeLooter, SelectSpillTimes, SelectSpillTriggers, TestSwimmer, CandDigitModule, ClockCalibrationModule, GetFidModule, DemuxFast, FilterEvent, TestDemuxModule, and TestDigitsModule.

Definition at line 202 of file JobCModule.cxx.

References gsMessage, Msg::kError, JobCResult::kError, and MSG.

Referenced by JobCDisplayModule::Ana(), and JobCMethod::Execute().

00203 {
00204 //======================================================================
00205 // Purpose: Dummy Ana method
00206 //======================================================================
00207   MSG("JobC", Msg::kError) << gsMessage << "'Ana'\n";
00208   return JobCResult::kError;
00209 }

void JobCModule::BeginFile (  )  [virtual]
void JobCModule::BeginJob ( void   )  [virtual]

Implement for notification of begin of job

Reimplemented in DetectorAlignmentModule, MakeAlignmentModule, TrackDirectionModule, AltDeMuxModule, AnalysisModule, CondensedNtpModule, CondensedNtpModuleAtm, CondensedNtpModuleNC, AtmosShowerListModule, AtNuDisplayModule, AtNuFindModule, AtNuFitModule, AtNuTreeModule, RecoTreeModule, FarDetEventModule, FarDetShieldPlankListModule, FarDetSliceListModule, FarDetStripListModule, NtpMaker, BDAnaModule, NtpBDFullModule, CDFMonitoringModule, HadMuMonModule, HornModule, LossModule, NpotModule, TargetModule, TempModule, BDUniquifyTestModule, TestCalibModule, CalDet2003PlotsModule, ParticleFilterModule, ScintHitTruthModule, UberPlotsModule, AutoPIDMaker, RealCalDetPIDModule, CalDetSIModule, ClusterSRListModule, RecordSetupModule, DeMuxDigitListModule, DigitListModule, FilterDigitListModule, EventSRListModule, FitShowerEMListModule, FitTrackCamAnalysisModule, FitTrackCamListModule, FitTrackSAListModule, FitTrackSRListModule, DataQualityReader, DumpBadElectronics, FillBadChannelDB, FillFarRunQuality, FillHvFromSingles, FillNearRunQuality, ShowerEMListModule, ShowerSRListModule, SliceSRListModule, StripSRListModule, SubShowerSRListModule, TrackCamListModule, TrackSRListModule, Cluster3DModule, DbuDaqFileModule, DbuDaqMonitorModule, DcsWriter, PrintStat, UserAnalysis, DmxDeMuxCosmicsModule, DmxDeMuxFilterModule, DmxDeMuxModule, CustomLightInjector, LightInjector, EvtKinNuModule, HepevtModule, EvtAddRawDigitBlockModule, EvtInfoInjectorModule, MnvRawDigitSuppression, FarDetDataQualityModule, FarDetDeadChipModule, FarDetRawDigitDump, FarDetRawRateDump, FarDetTpSinglesDump, FarDetVarcErrorsDump, FCPCFilterModule, PreFilter, FilterLIModule, DataQualityFilter, StopMuFilterModule, IoInputModule, IoOutputModule, JobCDisplayModule, JobCInput, JobCRootCommandModule, JobCDemoModuleA, LISummaryModule, RawLILooker, MeuCalModule, MCMerge, CountPot, FiltMBSpillModule, MNtpModule, FiltCosmicModule, MCAnalysis, RemoveMuon, StripCands, NoiseFilterModule, DemoCandNtpModule, DummyModule, NuModule, CompareAll, CompareMD, CompareMST, FillPIDFromText, NuePrint, NueSensitivity, FixModule, MCNNMergeModule, NtpStTrimmer, NueModule, PETrimmer, SetKNNModule, SpillTypeFilter, TrimModule, XTalkFilter, MSTTemplate, AnaTrim, ParticleAna, ParticleFinder, ParticleReport, SystematicGains, ParticleTruthMaker, ParticlePIDSaver, PIDEval, PTSimModule, MCInitModule, MCMonitorBeam, MCMonitorCosmic, PhotonTransport, ToyMCModule, FillDataModule, TestDataModule, DemoRecordModule, RotoClientModule, FarmListModule, FilterRunType, RateSummary, RunFileModule, RunSummary, ShieldPlankListModule, FillSpillServerMon, ClockCalibrationModule, DemuxFast, ValVtxModule, VtxModule, and VtxModule.

Definition at line 59 of file JobCModule.cxx.

References GetName(), Msg::kDebug, and MSG.

Referenced by JobCDisplayModule::BeginJob(), JobController::BuildSystemPath(), and JobCInput::Use().

00059                           {
00060   MSG("JobC",Msg::kDebug) << 
00061     "JobCModule::BeginJob for module " << this->GetName() << "\n";
00062 }

void JobCModule::BeginRun (  )  [virtual]

Implement for notification of begin of run (meaningful for Daq data only). See GetCurrentRun().

Reimplemented in AutoPIDMaker, Cluster3DModule, DbuDaqFileModule, SleepModule, GenieModule, JobCDisplayModule, JobCInput, JobCRootCommandModule, JobCDemoModuleA, UserDisplayModule, FiltMBSpillModule, FiltCosmicModule, NueDisplayModule, ParticleDisplay, PulserDBModule, PulserSummaryModule, and RotoClientModule.

Definition at line 87 of file JobCModule.cxx.

References GetName(), Msg::kDebug, and MSG.

Referenced by JobCDisplayModule::BeginRun().

00088 {
00089   MSG("JobC",Msg::kDebug) << 
00090     "JobCModule::BeginRun for module " << this->GetName() << "\n";
00091 }

void JobCModule::Cmd ( const char *  command  )  [virtual]

Implement to handle a command

Reimplemented in JobCInput.

Definition at line 224 of file JobCModule.cxx.

References HandleCommand().

Referenced by attach_mrcc_path(), attach_mrcc_path_far(), attach_mrcc_path_near(), set_cand_output_bntp(), set_ntpst_output_bntp(), set_ntpst_output_bntpsa(), SetCandOutputNoBNtp(), SetCandOutputWithBNtp(), SetNtpStOutputNoBNtp(), and SetNtpStOutputWithBNtp().

00225 {
00226 //======================================================================
00227 // Pass commands through like this for now...
00228 //======================================================================
00229   JobCommand c(cmd);
00230   this->HandleCommand(&c);
00231 }

void JobCModule::Config ( const Registry r  )  [virtual]

Return the actual configuration. If your module directly pulls its configuration from the fConfig Registry, you don't need to override this. Override if you have local config variables.

Reimplemented in AlignmentModule, AltDeMuxModule, AnalysisModule, CondensedNtpModule, CondensedNtpModuleAtm, CondensedNtpModuleNC, AtmosShowerListModule, AtNuDisplayModule, AtNuFindModule, AtNuFitModule, AtNuTreeModule, RecoTreeModule, FarDetEventModule, FarDetShieldPlankListModule, FarDetSliceListModule, FarDetStripListModule, NtpMaker, NtpBDLiteModule, BDSpliceModule, CalDet2003PlotsModule, ParticleFilterModule, ScintHitTruthModule, UberPlotsModule, AutoPIDMaker, RealCalDetPIDModule, Cutter, CDPreFilterModule, RecordSetupModule, DeMuxDigitListModule, DigitListModule, FilterDigitListModule, FitTrackCamAnalysisModule, FitTrackCamListModule, FitTrackMSListModule, NtpFitSAModule, DataQualityReader, DumpBadElectronics, FillBadChannelDB, FillFarRunQuality, FillHvFromSingles, FillNearRunQuality, NtpEMModule, NtpSRFilterModule, NtpSRModule, TrackCamListModule, Cluster3DModule, NtpCluster3DModule, DbuDaqFileModule, DbuDaqMonitorModule, PurgeCandidateModule, RawRecCounts, ValidateRawChecksums, DemoDataReject, DemoEventDump, DemoMCFilter, DemoNPlaneCut, PrintStat, UserAnalysis, DmxDeMuxCosmicsModule, DmxDeMuxModule, CustomLightInjector, DetSim, LightInjector, SimCheck, DDSPaceModule, EvtKinNuModule, GenieModule, HepevtModule, EvtAddRawDigitBlockModule, EvtInfoInjectorModule, MnvRawDigitSuppression, FarDetDataQualityModule, FarDetDeadChipModule, FarDetRawDigitDump, FarDetRawRateDump, FarDetTpSinglesDump, FCPCFilterModule, PreFilter, FilterLIModule, Blinder, DataQualityFilter, FardetBeamSelect, FiltSGateModule, FiltTriggerPrescale, NeardetBeamSelect, IoInputModule, IoOutputModule, JobCInput, JobCDemoModuleA, LISummaryModule, MeuCalModule, MCMerge, NtpMCModule, CountPot, FiltMBSpillModule, MNtpModule, MCAnalysis, MergeEvent, NtpMRModule, RemoveMuon, StripCands, NCDataQualityModule, MicroDSTMaker, NoiseFilterModule, DemoCandNtpModule, NuDemoModule, DummyModule, NuModule, CompareAll, CompareMD, FillPIDFromText, NueHandScan, NuePrint, NueSensitivity, NueDisplayModule, FixModule, MCNNMergeModule, NtpStTrimmer, NueBeamMonModule, NueModule, PETrimmer, SetKNNModule, SpillTypeFilter, TrimModule, XTalkFilter, MSTTemplate, AnaTrim, ParticleAna, ParticleDisplay, ParticleFinder, ParticleReport, SystematicGains, ParticleTruthMaker, ParticlePIDSaver, PIDEval, NueReweight, OltBlockScan, OltDataIntegrity, OltEnds, OltNewModule, OltRawLI, OltTimePlot, OltTimeScan, PTSimModule, MCInitModule, MCMonitorBeam, MCMonitorCosmic, PhotonInjector, PhotonTransport, ToyMCModule, FillDataModule, TestDataModule, PulserDDSCheck, PulserTimingMaker, DemoRecordModule, RerootFlsDigitToDigiPE, RerootToTruthModule, WriteStdHepFileModule, RotoClientModule, FarmListModule, FilterRunType, FilterStream, RateSummary, RunFileModule, RunSummary, ScintCalModule, ShieldPlankListModule, CheckND, FillSpillServerMon, NDSgateTimeLooter, SelectSpillTimes, SelectSpillTriggers, NtpStFilterModule, NtpStModule, GetFidModule, ReadDispatcherModule, NtpTHModule, VtxModule, and VtxModule.

Definition at line 165 of file JobCModule.cxx.

References GetConfig(), GetName(), Msg::kDebug, Registry::LockValues(), MSG, Registry::UnLockValues(), and Registry::ValuesLocked().

Referenced by Init(), Reset(), run(), and Set().

00166 {
00167   MSG("JobC",Msg::kDebug) << 
00168     "JobCModule::Config for module " << this->GetName() << "\n";
00169   
00170   // The default config command just does a copy...
00171   bool islocked = this->GetConfig().ValuesLocked();
00172   if (islocked) this->GetConfig().UnLockValues();
00173   this->GetConfig() = r;
00174   if (islocked) this->GetConfig().LockValues();  
00175 }

const Registry & JobCModule::DefaultConfig ( void   )  const [virtual]

Get the default configuration registry. This should normally be overridden. One useful idiom is to implement it like:

const Registry& MyModule::DefaultConfig() const { static Registry cfg; // never is destroyed if (cfg.Size()) return cfg; // already filled it // set defaults: cfg.Set("TheAnswer",42); cfg.Set("Units","unknown"); return cfg; }

Reimplemented in AlignmentModule, AltDeMuxModule, AnalysisModule, CondensedNtpModule, CondensedNtpModuleAtm, CondensedNtpModuleNC, AtmosShowerListModule, AtNuDisplayModule, AtNuFindModule, AtNuFitModule, AtNuTreeModule, RecoTreeModule, FarDetEventModule, FarDetShieldPlankListModule, FarDetSliceListModule, FarDetStripListModule, NtpMaker, NtpBDLiteModule, BeamMonBaseModule, CDFMonitoringModule, BDSpliceModule, CalDet2003PlotsModule, ParticleFilterModule, ScintHitTruthModule, UberPlotsModule, AutoPIDMaker, RealCalDetPIDModule, Cutter, CDPreFilterModule, ClusterSRListModule, BiggestChopModule, ChopModule, SliceFromChopModule, RecordSetupModule, DeMuxDigitListModule, DigitListModule, FilterDigitListModule, EventSRListModule, FitShowerEMListModule, FitTrackCamAnalysisModule, FitTrackCamListModule, FitTrackMSListModule, FitTrackSAListModule, NtpFitSAModule, FitTrackSRListModule, DataQualityReader, DumpBadElectronics, FillBadChannelDB, FillFarRunQuality, FillHvFromSingles, FillNearRunQuality, NtpEMModule, NtpSRFilterModule, NtpSRModule, ShowerEMListModule, ShowerSRListModule, SliceSRListModule, StripSRListModule, SubShowerSRListModule, TrackCamListModule, TrackSRListModule, Cluster3DModule, NtpCluster3DModule, DbuDaqFileModule, DbuDaqMonitorModule, HistManModule, PurgeCandidateModule, RawRecCounts, SleepModule, ValidateRawChecksums, DemoDataReject, DemoEventDump, DemoMCFilter, DemoNPlaneCut, PrintStat, UserAnalysis, DmxDeMuxCosmicsModule, DmxDeMuxModule, CustomLightInjector, DetSim, LightInjector, SimCheck, DDSPaceModule, EvtKinNuModule, GenieModule, HepevtModule, EvtAddRawDigitBlockModule, EvtInfoInjectorModule, MnvRawDigitSuppression, FarDetDataQualityModule, FarDetDeadChipModule, FarDetRawDigitDump, FarDetRawRateDump, FarDetTpSinglesDump, FCPCFilterModule, PreFilter, FilterLIModule, Blinder, DataQualityFilter, FardetBeamSelect, FiltSGateModule, FiltTriggerPrescale, NeardetBeamSelect, StopMuFilterModule, IoInputModule, IoOutputModule, JobCInput, JobCDemoModuleA, LISummaryModule, MeuCalModule, MCMerge, NtpMCModule, CountPot, FiltMBSpillModule, MNtpModule, MCAnalysis, MergeEvent, NtpMRModule, RemoveMuon, StripCands, NCDataQualityModule, MicroDSTMaker, NoiseFilterModule, DemoCandNtpModule, NuDemoModule, DummyModule, NuModule, CompareAll, CompareMD, FillPIDFromText, NueHandScan, NuePrint, NueSensitivity, NueDisplayModule, FixModule, MCNNMergeModule, NtpStTrimmer, NueBeamMonModule, NueModule, PETrimmer, SpillTypeFilter, TrimModule, XTalkFilter, MSTTemplate, AnaTrim, ParticleAna, ParticleDisplay, ParticleFinder, ParticleReport, SystematicGains, ParticleTruthMaker, ParticlePIDSaver, PIDEval, NueReweight, OltBlockScan, OltDataIntegrity, OltEnds, OltNewModule, OltRawLI, OltTimePlot, OltTimeScan, PTSimModule, MCInitModule, MCMonitorBeam, MCMonitorCosmic, PhotonInjector, PhotonTransport, ToyMCModule, PulserDDSCheck, PulserTimingMaker, DemoRecordModule, RerootFlsDigitToDigiPE, RerootToTruthModule, WriteStdHepFileModule, RotoClientModule, FarmListModule, FilterRunType, FilterStream, RateSummary, RunFileModule, RunSummary, ScintCalModule, ShieldPlankListModule, CheckND, FillSpillServerMon, NDSgateTimeLooter, SelectSpillTimes, SelectSpillTriggers, NtpStFilterModule, NtpStModule, GetFidModule, ReadDispatcherModule, NtpTHModule, VtxModule, and VtxModule.

Definition at line 154 of file JobCModule.cxx.

References GetName(), Msg::kDebug, and MSG.

Referenced by JobCInput::DefaultConfig(), Init(), Reset(), and Set().

00155 {
00156   MSG("JobC",Msg::kDebug) << 
00157     "JobCModule::DefaultConfig for module " << this->GetName() << "\n";
00158 
00159   static const Registry r; // Empty...
00160   return r;
00161 }

void JobCModule::EndFile (  )  [virtual]
void JobCModule::EndJob (  )  [virtual]

Implement for notification of end of job

Reimplemented in AlignmentModule, DetectorAlignmentModule, MakeAlignmentModule, TrackDirectionModule, AltDeMuxModule, AnalysisModule, CondensedNtpModule, CondensedNtpModuleAtm, CondensedNtpModuleNC, AtmosShowerListModule, AtNuDisplayModule, AtNuFindModule, AtNuFitModule, AtNuTreeModule, RecoTreeModule, FarDetEventModule, FarDetShieldPlankListModule, FarDetSliceListModule, FarDetStripListModule, NtpMaker, BDAnaModule, BeamMonDbuModule, BeamMonSwicPedsDbuModule, NtpBDFullModule, CDFMonitoringModule, BDUniquifyTestModule, TestCalibModule, CalDet2003PlotsModule, ScintHitTruthModule, UberDST, UberPlotsModule, AutoPIDMaker, CDAnaModule, CDPreFilterModule, CDTrackerModule, SliceFromChopModule, EventSRListModule, FitTrackCamAnalysisModule, FitTrackCamListModule, FitTrackMSListModule, FitTrackSAListModule, DataQualityReader, DumpBadElectronics, FillBadChannelDB, FillFarRunQuality, FillHvFromSingles, FillNearRunQuality, StripSRListModule, TrackCamListModule, Cluster3DModule, DbuDaqFileModule, DbuDaqMonitorModule, HistManModule, RawRecCounts, DcsWriter, PrintStat, UserAnalysis, DmxDeMuxCosmicsModule, DmxDeMuxModule, EvtKinNuModule, GenieModule, HepevtModule, EvtAddRawDigitBlockModule, EvtInfoInjectorModule, MnvRawDigitSuppression, FarDetDataQualityModule, FarDetDeadChipModule, FarDetRawDigitDump, FarDetRawRateDump, FarDetTpSinglesDump, FarDetVarcErrorsDump, FCPCFilterModule, DataQualityFilter, FiltSGateModule, FiltTriggerPrescale, StopMuFilterModule, IoInputModule, IoOutputModule, JobCDisplayModule, JobCInput, JobCRootCommandModule, JobCDemoModuleA, LIStreamHunter, LISummaryAnalyser, LIRawNt, LISummaryModule, RawLILooker, MeuCalModule, MCMerge, CountPot, FiltMBSpillModule, MNtpModule, FiltCosmicModule, MCAnalysis, MergeEvent, RemoveMuon, StripCands, NCDataQualityModule, MicroDSTMaker, DummyModule, NuModule, CompareAll, CompareMD, CompareMST, NueHandScan, NuePrint, NueRead, NueSensitivity, FixModule, MCNNMergeModule, NtpStTrimmer, NueBeamMonModule, NueModule, PETrimmer, SpillTypeFilter, TrimModule, XTalkFilter, MSTTemplate, AnaTrim, ParticleAna, ParticleFinder, ParticleReport, SystematicGains, ParticleTruthMaker, ParticlePIDSaver, PIDEval, NueReweight, PTSimModule, MCMonitorBeam, MCMonitorCosmic, PEGainModule, FillDataModule, PulserDBModule, PulserFromRawModule, WriteStdHepFileModule, RotoClientModule, FarmListModule, FilterRunType, RateSummary, RunFileModule, RunSummary, ShieldPlankListModule, FillSpillServerMon, ClockCalibrationModule, DemuxFast, ValVtxModule, VtxModule, and VtxModule.

Definition at line 66 of file JobCModule.cxx.

References GetName(), Msg::kDebug, and MSG.

Referenced by JobCDisplayModule::EndJob(), JobCDisplayModule::Stop(), JobCInput::Use(), and JobCInput::~JobCInput().

00066                         {
00067   MSG("JobC",Msg::kDebug) << 
00068     "JobCModule::End for module " << this->GetName() << "\n";
00069 }

void JobCModule::EndRun (  )  [virtual]

Implement for notification of end of run (meaningful for Daq data only). See GetLastRun().

Reimplemented in AutoPIDMaker, Cluster3DModule, DbuDaqFileModule, SleepModule, GenieModule, JobCDisplayModule, JobCInput, JobCRootCommandModule, JobCDemoModuleA, FiltMBSpillModule, FiltCosmicModule, PulserDBModule, PulserSummaryModule, and RotoClientModule.

Definition at line 95 of file JobCModule.cxx.

References GetName(), Msg::kDebug, and MSG.

Referenced by JobCDisplayModule::EndRun().

00096 {
00097   MSG("JobC",Msg::kDebug) << 
00098     "JobCModule::EndRun for module " << this->GetName() << "\n";
00099 }

JobCResult JobCModule::Get ( MomNavigator mom  )  [virtual]
Registry & JobCModule::GetConfig (  )  [virtual]

Reimplemented in JobCInput.

Definition at line 349 of file JobCModule.cxx.

References fConfig.

Referenced by IoInputModule::AddFile(), ScintCalModule::Ana(), StopMuFilterModule::Ana(), NDSgateTimeLooter::Ana(), FilterLIModule::Ana(), ChopModule::Ana(), SleepModule::Ana(), CDFMonitoringModule::BeginJob(), DigitListModule::BeginJob(), EvtKinNuModule::BeginJob(), UserAnalysis::BeginJob(), EvtInfoInjectorModule::BeginJob(), GenieModule::BeginRun(), DbuDaqFileModule::CommitDbuDaqConfigFilesText(), PETrimmer::Config(), XTalkFilter::Config(), SystematicGains::Config(), Config(), GenieModule::CreateGeomVolSelector(), HistManModule::EndFile(), MicroDSTMaker::EndJob(), NCDataQualityModule::EndJob(), HistManModule::EndJob(), NtpFitSAModule::FillNtpFitSA(), RecordSetupModule::Get(), JobCInput::GetConfig(), BeamMonBaseModule::GetHistMan(), Init(), MicroDSTMaker::ParseExtractionsList(), ClusterSRListModule::Reco(), DigitListModule::Reco(), FitShowerEMListModule::Reco(), DeMuxDigitListModule::Reco(), RecordSetupModule::Reco(), ShowerSRListModule::Reco(), FilterDigitListModule::Reco(), FitTrackSRListModule::Reco(), BiggestChopModule::Reco(), FitTrackSAListModule::Reco(), SliceFromChopModule::Reco(), ChopModule::Reco(), StripSRListModule::Reco(), TrackSRListModule::Reco(), ShowerEMListModule::Reco(), EventSRListModule::Reco(), SliceSRListModule::Reco(), SubShowerSRListModule::Reco(), Report(), run(), Set(), NCDataQualityModule::SetPOTValues(), DbuDaqFileModule::Update_ENV_TSQL(), OltNewModule::WriteConfig(), and DbuDaqFileModule::WritePythonFile().

00350 { 
00351 //======================================================================
00352 // This is a faily subtle point. Module's may wish to overwrite which
00353 // Registry holds their configuration. Support that with this virtual
00354 // function. Notice that the code above never nevers to fConfig but
00355 // always to this->GetConfig(). For an example of a mode that makes
00356 // use of this see JobCInput module.
00357 //======================================================================
00358   return fConfig; 
00359 }

const char * JobCModule::GetCurrentFile ( const char *  streamname = "*"  )  const
Int_t JobCModule::GetCurrentRun (  )  const

Return the current run #. This should not be overridden. Use this in BeginRun().

Reimplemented in LightInjector, IoInputModule, JobCInput, and JobCInputModule.

Definition at line 122 of file JobCModule.cxx.

References JobCInputModule::GetCurrentRun(), GetJobCInputModule(), and Munits::m.

Referenced by DbuDaqFileModule::BeginRun(), JobCRootCommandModule::BeginRun(), and DbuDaqFileModule::EndRun().

00123 {
00124     JobCInputModule* m = GetJobCInputModule();
00125     if (!m) return -1;
00126     return m->GetCurrentRun();
00127 }

JobCInputModule * JobCModule::GetJobCInputModule (  )  const [private]

Definition at line 103 of file JobCModule.cxx.

References fName, fPath, JobCPath::GetInputModule(), Msg::kWarning, Munits::m, and MSG.

Referenced by GetCurrentFile(), GetCurrentRun(), GetLastFile(), and GetLastRun().

00104 {
00105   if (!fPath) {
00106     MSG("JobC",Msg::kWarning)
00107       << fName << " has no associated JobCPath" << endl;
00108     return 0;
00109   }     
00110   JobCInputModule* m = fPath->GetInputModule();
00111   if (!m) {
00112     MSG("JobC",Msg::kWarning)
00113       << "the associated path for " << fName
00114       << " has no input module" << endl;
00115     return 0;
00116   }
00117   return m;
00118 }

const char * JobCModule::GetLastFile ( const char *  streamname = "*"  )  const

Return the previously opened input file. This should not be overridden. Use this in EndFile().

Reimplemented in IoInputModule, JobCInput, and JobCInputModule.

Definition at line 145 of file JobCModule.cxx.

References GetJobCInputModule(), JobCInputModule::GetLastFile(), and Munits::m.

Referenced by HistManModule::EndFile(), and JobCRootCommandModule::EndFile().

00146 {
00147     JobCInputModule* m = GetJobCInputModule();
00148     if (!m) return "";
00149     return m->GetLastFile(streamname);
00150 }

Int_t JobCModule::GetLastRun (  )  const

Return the previous run #. This should not be overridden. Use this in EndRun().

Reimplemented in IoInputModule, JobCInput, and JobCInputModule.

Definition at line 129 of file JobCModule.cxx.

References GetJobCInputModule(), JobCInputModule::GetLastRun(), and Munits::m.

Referenced by JobCRootCommandModule::EndRun().

00130 {
00131     JobCInputModule* m = GetJobCInputModule();
00132     if (!m) return -1;
00133     return m->GetLastRun();
00134 }

const char * JobCModule::GetName (  )  const

Returns the canonical name of this module

Reimplemented in AtmosShowerListModule, FitTrackCamListModule, and TrackCamListModule.

Definition at line 48 of file JobCModule.cxx.

References fName.

Referenced by FiltTriggerPrescale::Ana(), WriteStdHepFileModule::Ana(), JobCPathModule::Attach(), JobCMsgModule::Attach(), BeginFile(), BeginJob(), BeginRun(), RerootToTruthModule::Config(), WriteStdHepFileModule::Config(), HepevtModule::Config(), Config(), JobCPath::CreateNode(), DigitListModule::DefaultConfig(), EventSRListModule::DefaultConfig(), EvtKinNuModule::DefaultConfig(), FiltSGateModule::DefaultConfig(), DefaultConfig(), MCAnalysis::DefaultConfig(), MCInitModule::DefaultConfig(), NtpMaker::DefaultConfig(), NtpStTrimmer::DefaultConfig(), NueDisplayModule::DefaultConfig(), PrintStat::DefaultConfig(), RotoClientModule::DefaultConfig(), SpillTypeFilter::DefaultConfig(), BDSpliceModule::DefaultConfig(), DetSim::DefaultConfig(), GenieModule::DefaultConfig(), NeardetBeamSelect::DefaultConfig(), NtpEMModule::DefaultConfig(), Blinder::DefaultConfig(), NtpFitSAModule::DefaultConfig(), NtpMRModule::DefaultConfig(), PurgeCandidateModule::DefaultConfig(), ClusterSRListModule::DefaultConfig(), DDSPaceModule::DefaultConfig(), DemoEventDump::DefaultConfig(), EvtInfoInjectorModule::DefaultConfig(), FardetBeamSelect::DefaultConfig(), NtpStModule::DefaultConfig(), NuePrint::DefaultConfig(), StripSRListModule::DefaultConfig(), VtxModule::DefaultConfig(), FCPCFilterModule::DefaultConfig(), NuDemoModule::DefaultConfig(), PETrimmer::DefaultConfig(), ValidateRawChecksums::DefaultConfig(), XTalkFilter::DefaultConfig(), DummyModule::DefaultConfig(), NtpBDLiteModule::DefaultConfig(), NuModule::DefaultConfig(), OltDataIntegrity::DefaultConfig(), OltNewModule::DefaultConfig(), ParticleTruthMaker::DefaultConfig(), StopMuFilterModule::DefaultConfig(), UberPlotsModule::DefaultConfig(), DbuDaqFileModule::DefaultConfig(), EvtAddRawDigitBlockModule::DefaultConfig(), FilterRunType::DefaultConfig(), MSTTemplate::DefaultConfig(), NtpStFilterModule::DefaultConfig(), NueHandScan::DefaultConfig(), OltEnds::DefaultConfig(), ParticlePIDSaver::DefaultConfig(), SubShowerSRListModule::DefaultConfig(), CountPot::DefaultConfig(), CustomLightInjector::DefaultConfig(), DeMuxDigitListModule::DefaultConfig(), FiltTriggerPrescale::DefaultConfig(), MCMerge::DefaultConfig(), NDSgateTimeLooter::DefaultConfig(), OltRawLI::DefaultConfig(), RealCalDetPIDModule::DefaultConfig(), RunFileModule::DefaultConfig(), ShowerSRListModule::DefaultConfig(), TrimModule::DefaultConfig(), CalDet2003PlotsModule::DefaultConfig(), CDPreFilterModule::DefaultConfig(), DemoDataReject::DefaultConfig(), FilterStream::DefaultConfig(), MergeEvent::DefaultConfig(), NtpSRModule::DefaultConfig(), ParticleAna::DefaultConfig(), ParticleFinder::DefaultConfig(), RateSummary::DefaultConfig(), RecordSetupModule::DefaultConfig(), ShieldPlankListModule::DefaultConfig(), SimCheck::DefaultConfig(), StripCands::DefaultConfig(), UserAnalysis::DefaultConfig(), AutoPIDMaker::DefaultConfig(), ChopModule::DefaultConfig(), CompareAll::DefaultConfig(), FitTrackMSListModule::DefaultConfig(), FitTrackSRListModule::DefaultConfig(), ParticleDisplay::DefaultConfig(), PreFilter::DefaultConfig(), PTSimModule::DefaultConfig(), ReadDispatcherModule::DefaultConfig(), WriteStdHepFileModule::DefaultConfig(), LISummaryModule::DefaultConfig(), NtpMCModule::DefaultConfig(), NueReweight::DefaultConfig(), OltTimePlot::DefaultConfig(), RerootToTruthModule::DefaultConfig(), TrackSRListModule::DefaultConfig(), CheckND::DefaultConfig(), FillPIDFromText::DefaultConfig(), FilterLIModule::DefaultConfig(), FiltMBSpillModule::DefaultConfig(), GetFidModule::DefaultConfig(), LightInjector::DefaultConfig(), MCMonitorBeam::DefaultConfig(), MnvRawDigitSuppression::DefaultConfig(), NueSensitivity::DefaultConfig(), SliceSRListModule::DefaultConfig(), Cutter::DefaultConfig(), FarmListModule::DefaultConfig(), FitShowerEMListModule::DefaultConfig(), NtpCluster3DModule::DefaultConfig(), RunSummary::DefaultConfig(), ShowerEMListModule::DefaultConfig(), Cluster3DModule::DefaultConfig(), FitTrackCamAnalysisModule::DefaultConfig(), FitTrackSAListModule::DefaultConfig(), HepevtModule::DefaultConfig(), OltTimeScan::DefaultConfig(), RemoveMuon::DefaultConfig(), SelectSpillTimes::DefaultConfig(), SelectSpillTriggers::DefaultConfig(), BiggestChopModule::DefaultConfig(), DbuDaqMonitorModule::DefaultConfig(), DemoNPlaneCut::DefaultConfig(), NtpTHModule::DefaultConfig(), RerootFlsDigitToDigiPE::DefaultConfig(), AnaTrim::DefaultConfig(), DemoMCFilter::DefaultConfig(), FilterDigitListModule::DefaultConfig(), IoOutputModule::DefaultConfig(), MCMonitorCosmic::DefaultConfig(), NoiseFilterModule::DefaultConfig(), NtpSRFilterModule::DefaultConfig(), OltBlockScan::DefaultConfig(), ParticleFilterModule::DefaultConfig(), ParticleReport::DefaultConfig(), PIDEval::DefaultConfig(), PulserDDSCheck::DefaultConfig(), ScintHitTruthModule::DefaultConfig(), SliceFromChopModule::DefaultConfig(), ToyMCModule::DefaultConfig(), CompareMD::DefaultConfig(), MeuCalModule::DefaultConfig(), MNtpModule::DefaultConfig(), NueModule::DefaultConfig(), PulserTimingMaker::DefaultConfig(), RawRecCounts::DefaultConfig(), ScintCalModule::DefaultConfig(), SystematicGains::DefaultConfig(), NCDataQualityModule::DrawNearSpectra(), EndFile(), EndJob(), MakeAlignmentModule::EndJob(), EndRun(), JobCPathModule::HandleCommand(), JobCMsgModule::HandleCommand(), DemoEventDump::Help(), Help(), DbuDaqFileModule::Help(), JobCRootCommandModule::Help(), JobCRootModule::Help(), JobCMsgModule::Help(), DbuDaqMonitorModule::Help(), DemoDataReject::Help(), AlignmentModule::Init(), JobCNode::MatchModuleMethod(), WriteStdHepFileModule::OpenFile(), Report(), DemoMCFilter::Report(), and JobCPath::SetUniquePaths().

00048 { return fName.c_str(); }

JobCPath* JobCModule::GetPath (  )  [inline]

Definition at line 174 of file JobCModule.h.

References fPath.

00174 { return fPath; }

const char * JobCModule::GetUniqueName (  )  const
void JobCModule::HandleCommand ( JobCommand command  )  [virtual]

Implement to handle a JobCommand

Reimplemented in PlotMuonClusterModule, AltDeMuxModule, AtNuDisplayModule, AtNuFindModule, AtNuFitModule, AtNuTreeModule, RecoTreeModule, FarDetEventModule, FarDetSliceListModule, FarDetStripListModule, CalDetSIModule, Cutter, CDPreFilterModule, CDTrackerModule, DataQualityReader, DumpBadElectronics, FillFarRunQuality, FillHvFromSingles, DbmModule, DbuDaqMonitorModule, DemoDataReject, DemoEventDump, DemoMCFilter, DemoSnarlList, UserAnalysis, DmxDeMuxCosmicsModule, DmxDeMuxFilterModule, DmxDeMuxModule, FarDetDataQualityModule, DataQualityFilter, IoOutputModule, JobCDisplayModule, JobCInput, JobCMsgModule, JobCPathModule, JobCRootCommandModule, JobCRootModule, JobCDemoModuleA, JobCDemoModuleB, LIRawNt, FiltMBSpillModule, FiltCosmicModule, PTSimModule, MCInitModule, PEGainModule, PulserCollectorModule, PulserFromRawCollectorModule, CheezyDisplayModule, RerootToRawDataModule, RotoClientModule, and FillSpillServerMon.

Definition at line 235 of file JobCModule.cxx.

References gsMessage, Msg::kWarning, MSG, and JobCommand::PopCmd().

Referenced by Cmd(), JobCDisplayModule::HandleCommand(), and JobController::HandleCommand().

00236 {
00237 //======================================================================
00238 // Warn users that this module does not implement HandleCommand
00239 //======================================================================
00240   if (command) {
00241     MSG("JobC", Msg::kWarning) 
00242       << gsMessage << "'HandleCommand': " << command->PopCmd() << endl;
00243   }
00244   else {
00245     MSG("JobC", Msg::kWarning) << gsMessage << "'HandleCommand':\n";
00246   }
00247 }

void JobCModule::Help (  )  [virtual]

Implement to spew some useful help to cout

Reimplemented in PlotMuonClusterModule, AltDeMuxModule, AnalysisModule, CondensedNtpModule, CondensedNtpModuleAtm, CondensedNtpModuleNC, CalDet2003PlotsModule, ParticleFilterModule, UberPlotsModule, AutoPIDMaker, RealCalDetPIDModule, Cluster3DModule, DbmModule, DbuDaqFileModule, DbuDaqMonitorModule, DemoDataReject, DemoEventDump, DemoMCFilter, UserAnalysis, DmxDeMuxCosmicsModule, DmxDeMuxFilterModule, DmxDeMuxModule, JobCDisplayModule, JobCInput, JobCMsgModule, JobCPathModule, JobCRootCommandModule, JobCRootModule, JobCDemoModuleA, JobCDemoModuleB, RawLILooker, MCMerge, and RotoClientModule.

Definition at line 251 of file JobCModule.cxx.

References GetName(), Msg::kWarning, and MSG.

Referenced by JobCDisplayModule::Help(), and JobCModuleProxy::Help().

00252 {
00253 //======================================================================
00254 // Warn users that this module does not implement Help
00255 //======================================================================
00256   MSG("JobC", Msg::kWarning) << 
00257     "No help available for module '" << this->GetName() << "'\n";
00258 }

void JobCModule::Init ( const char *  name  ) 

Definition at line 27 of file JobCModule.cxx.

References Config(), DefaultConfig(), fName, GetConfig(), Registry::LockKeys(), and Registry::UnLockValues().

00028 {
00029   fName = name;
00030   
00031   // Configure the module with the defaults
00032   // "=" doesn't affect the name of the registry...
00033   Registry r = this->DefaultConfig();
00034   this->GetConfig().UnLockValues();
00035   this->GetConfig() = r;
00036   this->GetConfig().SetName(r.GetName());
00037   this->Config(this->GetConfig());
00038 
00039   this->GetConfig().LockKeys();
00040 }

JobCResult JobCModule::Put ( const MomNavigator mom  )  [virtual]

Implement if your module needs to write data to some external sink.

Reimplemented in Cluster3DModule, HistManModule, IoOutputModule, JobCDisplayModule, JobCRootCommandModule, and RotoClientModule.

Definition at line 191 of file JobCModule.cxx.

References gsMessage, Msg::kError, JobCResult::kError, and MSG.

Referenced by JobCMethod::Execute(), and JobCDisplayModule::Put().

00192 {
00193 //======================================================================
00194 // Purpose: Dummy Put method
00195 //======================================================================
00196   MSG("JobC", Msg::kError) << gsMessage << "'Put'\n";
00197   return JobCResult::kError;
00198 }

JobCResult JobCModule::Reco ( MomNavigator mom  )  [virtual]

Implement this for read-write access to the MomNavigator

Reimplemented in DetectorAlignmentModule, AltDeMuxModule, AtmosShowerListModule, AtNuFindModule, AtNuFitModule, FarDetEventModule, FarDetShieldPlankListModule, FarDetSliceListModule, FarDetStripListModule, NtpBDFullModule, NtpBDLiteModule, BDTestDataModule, UberModule, UberModuleLite, AutoPIDMaker, RealCalDetPIDModule, CalDetSIModule, ClusterSRListModule, BiggestChopModule, ChopModule, SliceFromChopModule, RecordSetupModule, DeMuxDigitListModule, DigitListModule, FilterDigitListModule, EventSRListModule, FitShowerEMListModule, FitTrackCamListModule, FitTrackMSListModule, FitTrackSAListModule, NtpFitSAModule, FitTrackSRListModule, DataQualityReader, NtpEMModule, NtpSRFilterModule, NtpSRModule, ShowerEMListModule, ShowerSRListModule, SliceSRListModule, StripSRListModule, SubShowerSRListModule, TrackCamListModule, TrackSRListModule, Cluster3DModule, NtpCluster3DModule, PurgeCandidateModule, DmxDeMuxCosmicsModule, DmxDeMuxFilterModule, DmxDeMuxModule, EvtAddRawDigitBlockModule, MnvRawDigitSuppression, FarDetDataQualityModule, Blinder, JobCDisplayModule, JobCRootCommandModule, JobCDemoModuleA, JobCDemoModuleB, LISummaryModule, NtpMCModule, FiltMBSpillModule, FiltCosmicModule, MergeEvent, NtpMRModule, RemoveMuon, StripCands, DemoCandNtpModule, FillPIDFromText, FilterPID, FixModule, MCNNMergeModule, NtpStTrimmer, NueBeamMonModule, NueModule, PETrimmer, SetKNNModule, SpillTypeFilter, TrimModule, XTalkFilter, AnaTrim, ParticleAna, ParticleFinder, ParticleReport, SystematicGains, ParticleTruthMaker, ParticlePIDSaver, PIDEval, NueReweight, OltBlockScan, OltDataIntegrity, OltEnds, OltNewModule, OltRawLI, OltTimePlot, OltTimeScan, PTSimModule, PEGainModule, PhotonTransport, FillDataModule, TestDataModule, PulserCollectorModule, PulserDBModule, PulserFromRawCollectorModule, PulserFromRawFilterModule, PulserFromRawModule, PulserQDP, PulserSummaryModule, DemoNtupleModule, DemoRecordModule, RerootToRawDataModule, ShieldPlankListModule, NtpStFilterModule, DemuxFast, LoadPlex, NtpTHModule, ValVtxModule, VtxModule, and VtxModule.

Definition at line 213 of file JobCModule.cxx.

References gsMessage, Msg::kError, JobCResult::kError, and MSG.

Referenced by JobCMethod::Execute(), and JobCDisplayModule::Reco().

00214 {
00215 //======================================================================
00216 // Purpose: Dummy Reco method
00217 //======================================================================
00218   MSG("JobC", Msg::kError) << gsMessage << "'Reco'\n";
00219   return JobCResult::kError;
00220 }

void JobCModule::Report (  )  [virtual]

Implement to spew end of running report

Reimplemented in RawRecCounts, DemoMCFilter, DemoSnarlList, DetSim, EvtKinNuModule, GenieModule, FiltSGateModule, FiltTriggerPrescale, JobCDisplayModule, JobCInput, JobCMsgModule, JobCPathModule, JobCRootCommandModule, JobCRootModule, JobCDemoModuleB, FiltMBSpillModule, FiltCosmicModule, WriteStdHepFileModule, and RotoClientModule.

Definition at line 262 of file JobCModule.cxx.

References GetConfig(), GetName(), Msg::kInfo, Munits::m, MSGSTREAM, and Registry::PrettyPrint().

Referenced by atmo_configure_common(), atmo_configure_data(), atmo_configure_mc(), attach_output_mc_srsafitter(), attach_output_srsafitter(), cosmic_do_report(), far_do_report(), far_mc_do_report(), far_spill_do_report(), main(), mc_reco_do_report(), mc_reco_far_do_report(), merge_do_report(), near_cosmic_do_report(), near_do_report(), near_mc_do_report(), JobCDisplayModule::Report(), reroot_do_report(), and spill_do_report().

00263 {
00264 //======================================================================
00265 // The default report command prints the module configuration
00266 //======================================================================
00267   MsgStream& m = MSGSTREAM("JobCReport",Msg::kInfo);
00268   m << this->GetName() << " configured with: " << std::endl;
00269   this->GetConfig().PrettyPrint(std::cout);
00270 }

void JobCModule::Reset (  )  [virtual]

Implement to reset oneself

Reimplemented in FillBadChannelDB, FillFarRunQuality, FillNearRunQuality, Cluster3DModule, JobCDisplayModule, JobCInput, JobCMsgModule, JobCPathModule, JobCRootCommandModule, JobCRootModule, JobCDemoModuleB, FiltMBSpillModule, FiltCosmicModule, AnaTrim, ParticleAna, ParticleFinder, ParticleReport, ParticleTruthMaker, ParticlePIDSaver, PIDEval, and NueReweight.

Definition at line 274 of file JobCModule.cxx.

References Config(), and DefaultConfig().

Referenced by JobCDisplayModule::Reset().

00275 {
00276   // Reset restores the module to its original configuration
00277   this->Config(this->DefaultConfig());
00278 }

void JobCModule::Set ( JobCDialog d = 0  ) 

Definition at line 307 of file JobCModule.cxx.

References Config(), DefaultConfig(), GetConfig(), Registry::LockValues(), Registry::Merge(), JobCDialog::Querry(), JobCDialog::SetCurrent(), JobCDialog::SetDefault(), and Registry::UnLockValues().

00308 {
00309 //======================================================================
00310 // Change the module's configuration using a dialog object
00311 //======================================================================
00312   bool deleted = false; // Delete dialog it before return?
00313   if (d == 0) {
00314     d = new JobCDialog();
00315     deleted = true;
00316   }
00317   
00318   // Set up d with the module's configuration parameters
00319   d->SetDefault(this->DefaultConfig());
00320   d->SetCurrent(this->GetConfig());
00321 
00322   // Do the querry...
00323   Registry r = d->Querry();
00324   
00325   // Set the module config
00326   this->GetConfig().UnLockValues();
00327   this->GetConfig().Merge(r);
00328   this->GetConfig().LockValues();
00329 
00330   this->Config(this->GetConfig());
00331   
00332   // Clean up
00333   if (deleted) { delete d; d=0; }
00334 }

void JobCModule::Set ( const char *  paramlist  ) 

Definition at line 282 of file JobCModule.cxx.

References Config(), GetConfig(), Registry::LockValues(), Registry::Merge(), JobCommand::StringToRegistry(), and Registry::UnLockValues().

Referenced by atmo_configure_common(), atmo_configure_data(), atmo_configure_mc(), attach_mrcc_path(), attach_mrcc_path_far(), attach_mrcc_path_near(), attach_output(), attach_output_mc(), attach_output_mc_srfitter(), attach_output_mc_srsafitter(), attach_output_srfitter(), attach_output_srsafitter(), cosmic_configure(), cosmic_set_filter(), cosmic_set_prescaling(), far_all_configure(), far_all_configure_filters(), far_all_mc_configure(), far_configure(), far_configure_filters(), far_cosmic_mc_configure(), far_cosmic_mc_scale_xtalk(), far_mc_configure(), far_spill_configure(), far_spill_configure_filters(), job_setup(), main(), mc_reco_configure(), mc_reco_cosmic_configure(), mc_reco_cosmic_configure_shower(), mc_reco_far_configure(), merge_configure(), near_configure(), near_configure_filter(), near_configure_shower(), near_cosmic_configure(), near_cosmic_mc_configure(), near_cosmic_mc_configure_shower(), near_cosmic_mc_scale_xtalk(), near_cosmic_set_filter(), near_cosmic_set_prescaling(), near_mc_configure(), reroot_configure(), set_cand_output_bntp(), set_input_data(), set_input_mc(), set_input_merge(), set_ntpst_output_bntp(), set_ntpst_output_bntpsa(), SetCandOutputNoBNtp(), SetCandOutputWithBNtp(), SetNtpStOutputNoBNtp(), SetNtpStOutputWithBNtp(), SetupInput(), spill_configure(), spill_configure_filter(), spill_configure_shower(), IoInputModuleValidate::TestStreams(), and use_new_hv_table().

00283 { 
00284 //======================================================================
00285 // The "Set" command takes a string of the format:
00286 //
00287 // Set("a=1 b=2.0 c=4.0e9 d=astring.option e='another string option'");
00288 //======================================================================
00289   // Build a command like "Set a=1 b=2";
00290   Registry r;
00291   JobCommand::StringToRegistry(r,s);
00292 
00293   // Reset the values in the module's config.
00294   this->GetConfig().UnLockValues();
00295   this->GetConfig().Merge(r);
00296   this->GetConfig().LockValues();
00297 
00298   // Pass the reconfigure signal off to the module
00299   this->Config(this->GetConfig()); // Pass the whole config 
00300                                    // safest but wasteful
00301 
00302   // this->Config(r);    // Pass just the updated values.
00303 }

void JobCModule::SetPath ( JobCPath path  )  [inline]

Definition at line 175 of file JobCModule.h.

References fPath.

Referenced by JobCPath::GetModule().

00175 { fPath = path; }

bool JobCModule::SetUniqueName ( const char *  name  ) 

Definition at line 337 of file JobCModule.cxx.

References fConfig, Registry::KeyExists(), Registry::KeysLocked(), Registry::LockKeys(), Registry::Set(), and Registry::UnLockKeys().

Referenced by JobCPath::SetUniquePaths().

00338 {
00339     if (fConfig.KeyExists("UniqueName")) return false;
00340     bool locked = fConfig.KeysLocked();
00341     fConfig.UnLockKeys();
00342     fConfig.Set("UniqueName",name);
00343     if (locked) fConfig.LockKeys();
00344     return true;
00345 }


Member Data Documentation

Reimplemented in AlignmentModule, BeamMonBaseModule, SetKNNModule, FillDataModule, and TestDataModule.

Definition at line 182 of file JobCModule.h.

Referenced by GetConfig(), GetUniqueName(), and SetUniqueName().

std::string JobCModule::fName [private]

Reimplemented in FillNearRunQuality.

Definition at line 181 of file JobCModule.h.

Referenced by GetJobCInputModule(), GetName(), and Init().

Reimplemented in SetKNNModule.

Definition at line 183 of file JobCModule.h.

Referenced by GetJobCInputModule(), GetPath(), and SetPath().


The documentation for this class was generated from the following files:

Generated on 22 Nov 2017 for loon by  doxygen 1.6.1