23 std::vector<QEventLabel>::const_iterator evLabelIter = evDataLabels.begin();
24 bool inclusive = GetBool(
"InclusiveMode",
true);
25 fAction = GetString(
"Action",
"Consolidate",
true);
26 while(evLabelIter != evDataLabels.end()) {
29 QObject** peventData = eva.
Get(label.
owner.c_str(),label.
name.c_str());
30 QObject* eventData = (*peventData);
31 std::string type = eventData->GetName();
32 if(type ==
"QPulse") {
33 fLabelsToStore.push_back(label);
47 std::vector<QEventLabel>::const_iterator iter = fLabelsToStore.begin();
48 while(iter != fLabelsToStore.end()) {
49 QPulse& pulse = eva.
Get<
QPulse>(iter->owner.c_str(),iter->name.c_str());
50 if(fAction ==
"Consolidate") {
52 }
else if(fAction ==
"DeleteADC") {
55 Panic(
"Action %s is not valid",fAction.c_str());
#define REGISTER_MODULE(clazz)
Manages QPulse waveform in the event.
Action Do(Diana::QEventAssembler &eva)
Do method.
Action Done()
Done method.
~MQPulseManager()
destructor
Action Init(Diana::QEventAssembler &eva)
Init method.
class to store ActionId and fEventNumber (in case fActionId=ACT_GOTOEV)
Visitor class of QEvent that provides full handling of QEvent.
QEvent & GetEvent()
Get the QEvent.
void Get(const char *owner, WriteHandle< Q > &handle)
Get QObject from the event in write mode. This method has to be called in the event loop,...
std::vector< QEventLabel > GetWriteLabels() const
Get the list of all writable QObject labels.
label for QObject in the QEvent
std::string GetStringLabel() const
get string in the format "owner@name"
std::string owner
owner of the QObject
std::string name
name of the QObject
void RequireByLabel(const QEventLabel &label) const
notify the QEvent that we need a QObject, if not found an exception is thrown
Raw event: sampled waveform.
void DeleteADC()
Consolidate. Store samples from the fFiller into fSamplesADC
void Consolidate()
Consolidate. Store samples from the fFiller into fSamplesADC
the Diana namespace is needed because sometimes we use Qt libraries, that use same class names of our...