ToolDAQFramework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
Public Member Functions | Public Attributes | List of all members
DataModel Class Reference

#include <DataModel.h>

Public Member Functions

 DataModel ()
 Simple constructor. More...
 
float get_interpose_interval ()
 
ReconInfoGetFilter (std::string name, bool can_create)
 
void set_interpose_interval (float t)
 

Public Attributes

zmq::context_t * context
 ZMQ contex used for producing zmq sockets for inter thread, process, or computer communication. More...
 
BoostStore CStore
 This is a more efficent binary BoostStore that can be used to store a dynamic set of inter Tool variables. More...
 
int CurrentWCSimEventNum
 The original WCSim files' event number for the current event. More...
 
TObjString CurrentWCSimFile
 The original WCSim files' filename for the current event. More...
 
double detector_length
 height of water tank More...
 
double detector_radius
 radius of water tank More...
 
bool HasOD
 Does the geometry include the outer detector? More...
 
std::vector< PMTInfoIDGeom
 Geometry information for the inner detector. More...
 
int IDNPMTs
 Number of inner detector PMTs. More...
 
double IDPMTDarkRate
 Dark noise rate of inner detector PMTs, unit: ? More...
 
std::vector< SubSampleIDSamples
 Inner detector digit collections. More...
 
TriggerInfo IDTriggers
 Triggered time windows for the inner detector. More...
 
WCSimRootEvent * IDWCSimEvent_Raw
 The original, unmodified WCSimRootEvent for the ID. More...
 
bool IsMC
 Is this simulated data? More...
 
Logging * Log
 Log class pointer for use in Tools, it can be used to send messages which can have multiple error levels and destination end points. More...
 
float m_interpose_interval
 
std::vector< PMTInfoODGeom
 Geometry information for the outer detector. More...
 
int ODNPMTs
 Number of outer detector PMTs. More...
 
double ODPMTDarkRate
 Dark noise rate of outer detector PMTs, unit: ? More...
 
std::vector< SubSampleODSamples
 Outer detector digit collections. More...
 
TriggerInfo ODTriggers
 Triggered time windows for the outer detector. More...
 
WCSimRootEvent * ODWCSimEvent_Raw
 The original, unmodified WCSimRootEvent for the OD. More...
 
double pmt_radius
 radius of each PMT More...
 
ReconInfo RecoInfo
 Store reconstruction information (vertex time/position, fit likelihoods, optionally direction) More...
 
std::map< std::string,
ReconInfo * > 
RecoInfoMap
 Store filtered reconstruction information. More...
 
std::map< std::string,
BoostStore * > 
Stores
 This is a map of named BooStore pointers which can be deffined to hold a nammed collection of any tipe of BoostStore. It is usefull to store data that needs subdividing into differnt stores. More...
 
std::vector< SNWarningParamsSupernovaWarningParameters
 Store the dimensionality, number of reconstructed vertices and the highest nclusters warning threshold passed. More...
 
bool triggeroutput
 DEPRECATED! Use IDTriggers and ODTriggers instead. More...
 
Store vars
 This Store can be used for any variables. It is an inefficent ascii based storage. More...
 
TChain * WCSimEventTree
 The WCSimRootEvent tree from input WCSim file(s) More...
 
TChain * WCSimGeomTree
 The WCSimRootGeom tree from input WCSim file(s) More...
 
TChain * WCSimOptionsTree
 The WCSimRootOptions tree from input WCSim file(s) More...
 

Detailed Description

This class Is a transient data model class for your Tools within the ToolChain. If Tools need to comunicate they pass all data objects through the data model. There fore inter tool data objects should be deffined in this class.

Author:
B.Richards
Date:
2019/05/26 18:34:00

Contact: b.ric.nosp@m.hard.nosp@m.s@qmu.nosp@m.l.ac.nosp@m..uk

Definition at line 39 of file DataModel.h.

Constructor & Destructor Documentation

DataModel::DataModel ( )

Simple constructor.

Definition at line 3 of file DataModel.cpp.

Member Function Documentation

float DataModel::get_interpose_interval ( )
inline

Definition at line 122 of file DataModel.h.

ReconInfo * DataModel::GetFilter ( std::string  name,
bool  can_create 
)

Get filtered reconstructed information.

If name == ALL: pointer to all events (RecoInfo) Otherwise, returns pointer to RecoInfoMap entry name Caveat: if !can_create and name not found, return 0

Definition at line 5 of file DataModel.cpp.

void DataModel::set_interpose_interval ( float  t)
inline

Definition at line 121 of file DataModel.h.

Member Data Documentation

zmq::context_t* DataModel::context

ZMQ contex used for producing zmq sockets for inter thread, process, or computer communication.

Definition at line 62 of file DataModel.h.

BoostStore DataModel::CStore

This is a more efficent binary BoostStore that can be used to store a dynamic set of inter Tool variables.

Definition at line 57 of file DataModel.h.

int DataModel::CurrentWCSimEventNum

The original WCSim files' event number for the current event.

Definition at line 111 of file DataModel.h.

TObjString DataModel::CurrentWCSimFile

The original WCSim files' filename for the current event.

Definition at line 113 of file DataModel.h.

double DataModel::detector_length

height of water tank

Definition at line 98 of file DataModel.h.

double DataModel::detector_radius

radius of water tank

Definition at line 100 of file DataModel.h.

bool DataModel::HasOD

Does the geometry include the outer detector?

Definition at line 128 of file DataModel.h.

std::vector<PMTInfo> DataModel::IDGeom

Geometry information for the inner detector.

Definition at line 70 of file DataModel.h.

int DataModel::IDNPMTs

Number of inner detector PMTs.

Definition at line 94 of file DataModel.h.

double DataModel::IDPMTDarkRate

Dark noise rate of inner detector PMTs, unit: ?

Definition at line 89 of file DataModel.h.

std::vector<SubSample> DataModel::IDSamples

Inner detector digit collections.

Definition at line 65 of file DataModel.h.

TriggerInfo DataModel::IDTriggers

Triggered time windows for the inner detector.

Definition at line 75 of file DataModel.h.

WCSimRootEvent* DataModel::IDWCSimEvent_Raw

The original, unmodified WCSimRootEvent for the ID.

Definition at line 115 of file DataModel.h.

bool DataModel::IsMC

Is this simulated data?

Definition at line 130 of file DataModel.h.

Logging* DataModel::Log

Log class pointer for use in Tools, it can be used to send messages which can have multiple error levels and destination end points.

Definition at line 60 of file DataModel.h.

float DataModel::m_interpose_interval

Definition at line 120 of file DataModel.h.

std::vector<PMTInfo> DataModel::ODGeom

Geometry information for the outer detector.

Definition at line 72 of file DataModel.h.

int DataModel::ODNPMTs

Number of outer detector PMTs.

Definition at line 96 of file DataModel.h.

double DataModel::ODPMTDarkRate

Dark noise rate of outer detector PMTs, unit: ?

Definition at line 91 of file DataModel.h.

std::vector<SubSample> DataModel::ODSamples

Outer detector digit collections.

Definition at line 67 of file DataModel.h.

TriggerInfo DataModel::ODTriggers

Triggered time windows for the outer detector.

Definition at line 77 of file DataModel.h.

WCSimRootEvent* DataModel::ODWCSimEvent_Raw

The original, unmodified WCSimRootEvent for the OD.

Definition at line 117 of file DataModel.h.

double DataModel::pmt_radius

radius of each PMT

Definition at line 102 of file DataModel.h.

ReconInfo DataModel::RecoInfo

Store reconstruction information (vertex time/position, fit likelihoods, optionally direction)

Definition at line 84 of file DataModel.h.

std::map<std::string, ReconInfo*> DataModel::RecoInfoMap

Store filtered reconstruction information.

Definition at line 86 of file DataModel.h.

std::map<std::string,BoostStore*> DataModel::Stores

This is a map of named BooStore pointers which can be deffined to hold a nammed collection of any tipe of BoostStore. It is usefull to store data that needs subdividing into differnt stores.

Definition at line 58 of file DataModel.h.

std::vector<SNWarningParams> DataModel::SupernovaWarningParameters

Store the dimensionality, number of reconstructed vertices and the highest nclusters warning threshold passed.

Definition at line 125 of file DataModel.h.

bool DataModel::triggeroutput

DEPRECATED! Use IDTriggers and ODTriggers instead.

Definition at line 81 of file DataModel.h.

Store DataModel::vars

This Store can be used for any variables. It is an inefficent ascii based storage.

Definition at line 56 of file DataModel.h.

TChain* DataModel::WCSimEventTree

The WCSimRootEvent tree from input WCSim file(s)

Definition at line 109 of file DataModel.h.

TChain* DataModel::WCSimGeomTree

The WCSimRootGeom tree from input WCSim file(s)

Definition at line 105 of file DataModel.h.

TChain* DataModel::WCSimOptionsTree

The WCSimRootOptions tree from input WCSim file(s)

Definition at line 107 of file DataModel.h.


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