1 #ifndef FUEVENTPROCESSOR_H
2 #define FUEVENTPROCESSOR_H 1
22 #include "xdaq/Application.h"
23 #include "xdaq/NamespaceURI.h"
25 #include "xdata/String.h"
26 #include "xdata/Integer.h"
27 #include "xdata/Boolean.h"
28 #include "xdata/Vector.h"
29 #include "xdata/UnsignedInteger32.h"
30 #include "xdata/ActionListener.h"
31 #include "xdata/InfoSpaceFactory.h"
33 #include "xgi/Input.h"
34 #include "xgi/Output.h"
35 #include "xgi/exception/Exception.h"
39 #include <sys/resource.h>
61 std::map<std::string, std::string, std::less<std::string> > &
getEnvironment(){
return environment_;}
65 public xdata::ActionListener
82 bool enabling(toolbox::task::WorkLoop* wl);
83 bool stopping(toolbox::task::WorkLoop* wl);
84 bool halting(toolbox::task::WorkLoop* wl);
146 bool scalers(toolbox::task::WorkLoop* wl);
148 bool summarize(toolbox::task::WorkLoop* wl);
150 bool receiving(toolbox::task::WorkLoop* wl);
154 bool sigmon(toolbox::task::WorkLoop* wl);
xdata::Boolean hasModuleWebRegistry_
ShmOutputModuleRegistry * sorRef_
void spotlightWebPage(xgi::Input *, xgi::Output *)
xdata::Vector< xdata::Integer > spMStates_
xdata::InfoSpace * monitorInfoSpace_
void subWeb(xgi::Input *in, xgi::Output *out)
void stopSlavesAndAcknowledge()
std::vector< std::string > logRing_
bool receivingAndMonitor(toolbox::task::WorkLoop *wl)
xdata::UnsignedInteger32 slaveRestartDelaySecs_
xdata::Boolean datasetCounting_
void startSummarizeWorkLoop()
xdata::UnsignedInteger32 runNumber_
void startScalersWorkLoop()
void updater(xgi::Input *in, xgi::Output *out)
toolbox::task::WorkLoop * wlScalers_
void serviceWeb(xgi::Input *in, xgi::Output *out)
pthread_mutex_t start_lock_
void moduleWeb(xgi::Input *in, xgi::Output *out)
std::map< std::string, std::string, std::less< std::string > > & getEnvironment()
ROOT::Math::Plane3D::Vector Vector
xdata::UnsignedInteger32 crashesToDump_
bool restartForkInEDM(unsigned int slotId)
void startReceivingLoop()
FWEPWrapper evtProcessor_
xdata::Boolean isRunNumberSetter_
MsgBuf slave_message_monitoring_
bool signalMonitorActive_
xdata::UnsignedInteger32 forkInEDM_
xdata::Boolean hasServiceWebRegistry_
toolbox::task::WorkLoop * wlReceiving_
toolbox::task::ActionSignature * asReceiveMsgAndExecute_
toolbox::task::ActionSignature * asSignalMonitor_
void startSupervisorLoop()
xdata::InfoSpace * scalersLegendaInfoSpace_
toolbox::task::ActionSignature * asSupervisor_
xdata::Boolean autoRestartSlaves_
xdata::UnsignedInteger32 nbSubProcessesReporting_
unsigned int crashesThisRun_
void css(xgi::Input *in, xgi::Output *out)
toolbox::task::ActionSignature * asReceiveMsgAndRead_
MsgBuf master_message_prr_
xdata::Boolean exitOnError_
std::vector< SubProcess > subs_
xdata::InfoSpace * monitorLegendaInfoSpace_
bool summarize(toolbox::task::WorkLoop *wl)
void getSlavePids(xgi::Input *in, xgi::Output *out)
xdata::Serializable * nbProcessed
xoap::MessageReference fsmCallback(xoap::MessageReference msg)
pthread_mutex_t forkObjLock_
bool halting(toolbox::task::WorkLoop *wl)
bool scalers(toolbox::task::WorkLoop *wl)
rlimit rlimit_coresize_default_
MsgBuf master_message_trr_
toolbox::task::WorkLoop * wlSupervising_
std::string reasonForFailedState_
FUEventProcessor(xdaq::ApplicationStub *s)
std::string logsAsString()
unsigned long long idleProcStats_
xdata::Boolean iDieStatisticsGathering_
bool sigmon(toolbox::task::WorkLoop *wl)
void css(xgi::Input *in, xgi::Output *out)
void scalersWeb(xgi::Input *, xgi::Output *)
xdata::Boolean squidPresent_
std::list< std::string > names_
xdata::Boolean hasPrescaleService_
void handleSignalSlave(int sig, siginfo_t *info, void *c)
MsgBuf slave_message_prr_
bool receiving(toolbox::task::WorkLoop *wl)
bool stopping(toolbox::task::WorkLoop *wl)
void procStat(xgi::Input *in, xgi::Output *out)
moduleweb::ForkInfoObj * forkInfoObj_
toolbox::task::WorkLoop * wlSummarize_
virtual ~FUEventProcessor()
void startSignalMonitorWorkLoop()
xdata::Serializable * nbAccepted
void startReceivingMonitorLoop()
void localLog(std::string)
static void forkProcessFromEDM_helper(void *addr)
ModuleWebRegistry * mwrRef_
bool configuring(toolbox::task::WorkLoop *wl)
xdata::InfoSpace * applicationInfoSpace_
xdata::UnsignedInteger32 nbSubProcesses_
bool enabling(toolbox::task::WorkLoop *wl)
bool rlimit_coresize_changed_
unsigned int scalersUpdates_
xdata::String configString_
xdata::UnsignedInteger32 superSleepSec_
unsigned long long allProcStats_
std::auto_ptr< edm::Presence > messageServicePresence_
void sendMessageOverMonitorQueue(MsgBuf &)
void moduleWeb(xgi::Input *in, xgi::Output *out)
std::string configuration_
void pathNames(xgi::Input *, xgi::Output *)
std::string updaterStatic_
pthread_mutex_t pickup_lock_
void defaultWebPage(xgi::Input *in, xgi::Output *out)
toolbox::task::ActionSignature * asSummarize_
toolbox::task::WorkLoop * wlSignalMonitor_
xdata::Vector< xdata::Integer > spmStates_
xdata::UnsignedInteger32 instance_
void serviceWeb(xgi::Input *in, xgi::Output *out)
toolbox::task::WorkLoop * wlReceivingMonitor_
bool restart_in_progress_
toolbox::task::ActionSignature * asScalers_
bool supervisor(toolbox::task::WorkLoop *wl)
MsgBuf master_message_prg_
pthread_mutex_t stop_lock_
void forkProcessesFromEDM()
unsigned int logRingIndex_
xdata::InfoSpace * scalersInfoSpace_
void actionPerformed(xdata::Event &e)
void microState(xgi::Input *in, xgi::Output *out)
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger list("!*","!HLTx*"if it matches 2 triggers or more) will accept the event if all the matching triggers are FAIL.It will reject the event if any of the triggers are PASS or EXCEPTION(this matches the behavior of"!*"before the partial wildcard feature was incorporated).Triggers which are in the READY state are completely ignored.(READY should never be returned since the trigger paths have been run
static const unsigned int logRingSize_
xdata::Boolean epInitialized_