Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DParsedEvent.h File Reference
#include <string>
#include <map>
#include <JANA/jerror.h>
#include <JANA/JObject.h>
#include <JANA/JEventLoop.h>
#include <DANA/DStatusBits.h>
#include <DAQ/daq_param_type.h>
#include <DAQ/DModuleType.h>
#include <DAQ/Df250Config.h>
#include <DAQ/Df250PulseIntegral.h>
#include <DAQ/Df250StreamingRawData.h>
#include <DAQ/Df250WindowSum.h>
#include <DAQ/Df250PulseRawData.h>
#include <DAQ/Df250TriggerTime.h>
#include <DAQ/Df250PulseTime.h>
#include <DAQ/Df250PulsePedestal.h>
#include <DAQ/Df250PulseData.h>
#include <DAQ/Df250WindowRawData.h>
#include <DAQ/Df125Config.h>
#include <DAQ/Df125TriggerTime.h>
#include <DAQ/Df125PulseIntegral.h>
#include <DAQ/Df125PulseTime.h>
#include <DAQ/Df125PulsePedestal.h>
#include <DAQ/Df125PulseRawData.h>
#include <DAQ/Df125WindowRawData.h>
#include <DAQ/Df125CDCPulse.h>
#include <DAQ/Df125FDCPulse.h>
#include <DAQ/DF1TDCConfig.h>
#include <DAQ/DF1TDCHit.h>
#include <DAQ/DF1TDCTriggerTime.h>
#include <DAQ/DCAEN1290TDCConfig.h>
#include <DAQ/DCAEN1290TDCHit.h>
#include <DAQ/DCODAEventInfo.h>
#include <DAQ/DCODAControlEvent.h>
#include <DAQ/DCODAROCInfo.h>
#include <DAQ/Df250Scaler.h>
#include <DAQ/DL1Info.h>
#include <DAQ/DEPICSvalue.h>
#include <DAQ/DEventTag.h>
#include <DAQ/Df250BORConfig.h>
#include <DAQ/Df125BORConfig.h>
#include <DAQ/DF1TDCBORConfig.h>
#include <DAQ/DCAEN1290TDCBORConfig.h>
#include <DAQ/DTSGBORConfig.h>
#include <DAQ/DDIRCTriggerTime.h>
#include <DAQ/DDIRCTDCHit.h>
#include <DAQ/DDIRCADCHit.h>
#include <DAQ/DBORptrs.h>
#include <PID/DVertex.h>
#include <PID/DEventRFBunch.h>

Go to the source code of this file.

Classes

class  DParsedEvent
 
class  DParsedEvent::DFactoryPointers
 

Macros

#define MyTypes(X)
 
#define MyDerivedTypes(X)
 
#define MyNoPoolTypes(X)
 
#define makevector(A)   vector<A*> v##A;
 
#define makepoolvector(A)   vector<A*> v##A##_pool;
 
#define returntopool(A)   if(!v##A.empty()){ v##A##_pool.insert(v##A##_pool.end(), v##A.begin(), v##A.end()); }
 
#define clearvectors(A)   v##A.clear();
 
#define deletepool(A)   for(auto p : v##A##_pool) delete p;
 
#define clearpoolvectors(A)   v##A##_pool.clear();
 
#define deletevector(A)   for(auto p : v##A ) delete p;
 
#define makefactoryptr(A)   JFactory<A> *fac_##A;
 
#define copyfactoryptr(A)   fac_##A = (JFactory<A>*)loop->GetFactory(#A);
 
#define copytofactory(A)   facptrs.fac_##A->CopyTo(v##A);
 
#define copybortofactory(A)   facptrs.fac_##A->CopyTo(borptrs->v##A);
 
#define setevntcalled(A)   facptrs.fac_##A->Set_evnt_called();
 
#define keepownership(A)   facptrs.fac_##A->SetFactoryFlag(JFactory_base::NOT_OBJECT_OWNER);
 
#define copytofactorynonempty(A)   if(!v##A.empty()) facptrs.fac_##A->CopyTo(v##A);
 
#define setevntcallednonempty(A)   if(!v##A.empty()) facptrs.fac_##A->Set_evnt_called();
 
#define keepownershipnonempty(A)   if(!v##A.empty()) facptrs.fac_##A->SetFactoryFlag(JFactory_base::NOT_OBJECT_OWNER);
 
#define checkclassname(A)   if(classname==#A) return true;
 
#define checknonemptyderivedclassname(A)   if((classname==#A)&&(!v##A.empty())) return true;
 
#define addclassname(A)   if(include_all || !v##A.empty())classnames.push_back(#A);
 
#define makeallocator(A)
 
#define printcounts(A)   if(!v##A.empty()) cout << v##A.size() << " : " << #A << endl;
 
#define printpoolcounts(A)   if(!v##A##_pool.empty()) cout << v##A##_pool.size() << " : " << #A << "_pool" << endl;
 

Macro Definition Documentation

#define addclassname (   A)    if(include_all || !v##A.empty())classnames.push_back(#A);

Definition at line 288 of file DParsedEvent.h.

Referenced by DParsedEvent::GetParsedDataTypes().

#define checkclassname (   A)    if(classname==#A) return true;

Definition at line 269 of file DParsedEvent.h.

Referenced by DParsedEvent::IsParsedDataType().

#define checknonemptyderivedclassname (   A)    if((classname==#A)&&(!v##A.empty())) return true;

Definition at line 280 of file DParsedEvent.h.

Referenced by DParsedEvent::IsNonEmptyDerivedDataType().

#define clearpoolvectors (   A)    v##A##_pool.clear();

Definition at line 175 of file DParsedEvent.h.

Referenced by DParsedEvent::Clear(), DParsedEvent::Delete(), and DParsedEvent::Prune().

#define clearvectors (   A)    v##A.clear();

Definition at line 173 of file DParsedEvent.h.

Referenced by DParsedEvent::Clear(), and DParsedEvent::Delete().

#define copybortofactory (   A)    facptrs.fac_##A->CopyTo(borptrs->v##A);

Definition at line 241 of file DParsedEvent.h.

Referenced by DParsedEvent::CopyToFactories().

#define copyfactoryptr (   A)    fac_##A = (JFactory<A>*)loop->GetFactory(#A);

Definition at line 215 of file DParsedEvent.h.

Referenced by DParsedEvent::DFactoryPointers::Init().

#define copytofactory (   A)    facptrs.fac_##A->CopyTo(v##A);

Definition at line 240 of file DParsedEvent.h.

Referenced by DParsedEvent::CopyToFactories().

#define copytofactorynonempty (   A)    if(!v##A.empty()) facptrs.fac_##A->CopyTo(v##A);

Definition at line 244 of file DParsedEvent.h.

Referenced by DParsedEvent::CopyToFactories().

#define deletepool (   A)    for(auto p : v##A##_pool) delete p;

Definition at line 174 of file DParsedEvent.h.

Referenced by DParsedEvent::Clear(), DParsedEvent::Delete(), and DParsedEvent::Prune().

#define deletevector (   A)    for(auto p : v##A ) delete p;

Definition at line 188 of file DParsedEvent.h.

Referenced by DParsedEvent::Delete().

#define keepownership (   A)    facptrs.fac_##A->SetFactoryFlag(JFactory_base::NOT_OBJECT_OWNER);

Definition at line 243 of file DParsedEvent.h.

Referenced by DParsedEvent::CopyToFactories().

#define keepownershipnonempty (   A)    if(!v##A.empty()) facptrs.fac_##A->SetFactoryFlag(JFactory_base::NOT_OBJECT_OWNER);

Definition at line 246 of file DParsedEvent.h.

Referenced by DParsedEvent::CopyToFactories().

#define makeallocator (   A)
Value:
template<typename... Args> \
A* NEW_##A(Args&&... args){ \
A* t = NULL; \
if(v##A##_pool.empty()){ \
t = new A(std::forward<Args>(args)...); \
}else{ \
t = v##A##_pool.back(); \
v##A##_pool.pop_back(); \
t->ClearAssociatedObjects(); \
new(t) A(std::forward<Args>(args)...); \
} \
v##A.push_back(t); \
return t; \
}
if(locHist_BCALShowerPhiVsZ!=NULL)

Definition at line 323 of file DParsedEvent.h.

#define makefactoryptr (   A)    JFactory<A> *fac_##A;

Definition at line 214 of file DParsedEvent.h.

#define makepoolvector (   A)    vector<A*> v##A##_pool;

Definition at line 164 of file DParsedEvent.h.

#define makevector (   A)    vector<A*> v##A;

Definition at line 155 of file DParsedEvent.h.

#define MyNoPoolTypes (   X)
#define printcounts (   A)    if(!v##A.empty()) cout << v##A.size() << " : " << #A << endl;

Definition at line 342 of file DParsedEvent.h.

#define printpoolcounts (   A)    if(!v##A##_pool.empty()) cout << v##A##_pool.size() << " : " << #A << "_pool" << endl;

Definition at line 343 of file DParsedEvent.h.

#define returntopool (   A)    if(!v##A.empty()){ v##A##_pool.insert(v##A##_pool.end(), v##A.begin(), v##A.end()); }

Definition at line 172 of file DParsedEvent.h.

Referenced by DParsedEvent::Clear().

#define setevntcalled (   A)    facptrs.fac_##A->Set_evnt_called();

Definition at line 242 of file DParsedEvent.h.

Referenced by DParsedEvent::CopyToFactories().

#define setevntcallednonempty (   A)    if(!v##A.empty()) facptrs.fac_##A->Set_evnt_called();

Definition at line 245 of file DParsedEvent.h.

Referenced by DParsedEvent::CopyToFactories().