12 #include <QtCore/QReadWriteLock>
350 result->name(
name());
CachedList::item_type result_t
define the results
Event to store all LCLS Data.
virtual void createHistList(result_t::shared_pointer result)
create result list.
std::string _comment
optional comment that one can add to a processor.
const name_t name() const
retrieve the name of this processor
check if FEL is off by checking for bykick which is eventid
file contains declaration of the CASSEvent
virtual ~AccumulatingProcessor()
virtual destructor
std::tr1::shared_ptr< self_type > shared_pointer
a shared pointer of this class
virtual void aboutToQuit()
function that will be called when the processor is about to be deleted
result_t::shared_pointer resultCopy(const uint64_t eventid)
retrieve histogram for id
virtual void processEvent(const CASSEvent &evt)
process the event
uint64_t id_t
define the id type
bool _hide
flag to tell whether this pp should be hidden in the dropdown list
size_t _nbrEventsAccumulated
the number of events the processor has accumulated
virtual void processCommand(std::string command)
process command in pp
a list of results for caching
std::list< name_t > names_t
define the list of names
virtual ~Processor()
virtual destructor
virtual const result_t & result(const CASSEvent::id_t)
retrieve a result.
base class for processors.
virtual void processEvent(const CASSEvent &event)
process the event
shared_pointer setupDependency(const std::string &depVarName, const name_t &name="")
setup the dependecy.
void clearDependencies()
clear the dependenies
virtual void process(const CASSEvent &event, result_t &result)
process the event
virtual void releaseEvent(const CASSEvent &event)
tell the list that the result for event can be overwritten
CachedList _resultList
the list of results
CachedList::item_sp resultsp_t
define the shared pointer to the result
names_t _dependencies
the list of dependencies
file contains global definitions for project cass
const std::string & comment() const
retrieve the comment of this processor
AccumulatingProcessor(const name_t &name)
constructor
virtual void loadSettings(size_t unused)
Provide default implementation of loadSettings that does nothing.
virtual void createHistList(result_t::shared_pointer result)
create the list of results
Processor(const name_t &name)
constructor
contains a list for caching results
virtual void releaseEvent(const CASSEvent &)
overwrite default behaviour to do nothing
void setupGeneral()
general setup of the processor
std::tr1::shared_ptr< item_type > item_sp
define a shared pointer of the item
virtual void load()
load the general settings
const name_t _name
the processors name
an accumulating processor
const names_t & dependencies()
Define all processors keys a processor depends on.
result_t::shared_pointer _result
the result that accumulates the events
bool hide() const
retrieve the hide flag of this processor
shared_pointer _condition
pointer to the processor that will contain the condition
void clearHistograms()
clear the histograms
bool setupCondition(bool defaultConditionType=true)
setup the condition.
std::string name_t
define the name type
std::tr1::shared_ptr< Processor > shared_pointer
a shared pointer of this
virtual const result_t & result(const CASSEvent::id_t eventid=0)
retrieve a result for a given id.