#include <Event.h>
Public Member Functions | |
| Event () | |
| virtual | ~Event () |
| void | Print () |
| void | Clear (const char *opt="") |
Static Public Member Functions | |
| TFolder * | MakeFolder (TFolder *top, const char *name, const char *title) |
Public Attributes | |
| EventHeader * | fHeader |
| Event header. | |
| TFolder * | fTop |
| Top MIPP event data folder. | |
| TFolder * | fMC |
| MC truth information (particle stack etc.). | |
| TFolder * | fDetSim |
| Information from the detector simulation. | |
| TFolder * | fDAQ |
| Information from the DAQ system. | |
| TFolder * | fRaw |
| Raw data. | |
| TFolder * | fRawAux |
| Auxiliary raw data store. | |
| TFolder * | fCal |
| Calibrated data. | |
| TFolder * | fReco |
| Reconstruction objects. | |
| TFolder * | fUser |
| User scratch area. | |
| TFolder * | fSummary |
| Event summary (DST) area. | |
Definition at line 15 of file Event.h.
|
|
Construct an empty event Definition at line 42 of file Event.cxx. References fCal, fDAQ, fDetSim, fMC, fRaw, fRawAux, fReco, fSummary, fTop, fUser, and MakeFolder(). 00042 : 00043 fHeader (new EventHeader), 00044 fMC (0), 00045 fDetSim (0), 00046 fDAQ (0), 00047 fRaw (0), 00048 fRawAux (0), 00049 fCal (0), 00050 fReco (0), 00051 fUser (0), 00052 fSummary(0) 00053 { 00054 TFolder* rootFldr = gROOT->GetRootFolder(); 00055 00056 fTop = Event::MakeFolder(rootFldr, "mipp", "MIPP Event Data"); 00057 fTop->SetOwner(); 00058 00059 fMC = Event::MakeFolder(fTop,"MC", "Monte Carlo Truth Info"); 00060 fDetSim = Event::MakeFolder(fTop,"DetSim", "Detector Simulation Info"); 00061 fDAQ = Event::MakeFolder(fTop,"DAQ", "DAQ info"); 00062 fRaw = Event::MakeFolder(fTop,"Raw", "Raw Data"); 00063 fRawAux = Event::MakeFolder(fTop,"RawAux", "Raw Aux Data"); 00064 fCal = Event::MakeFolder(fTop,"Cal", "Calibrated Data"); 00065 fReco = Event::MakeFolder(fTop,"Reco", "Reconstruction objects"); 00066 fUser = Event::MakeFolder(fTop,"User", "User scratch area"); 00067 fSummary= Event::MakeFolder(fTop,"Summary","DST Data"); 00068 }
|
|
|
Delete event. Clear all arrays and remove the header Definition at line 74 of file Event.cxx. References Clear(). 00075 {
00076 this->Clear();
00077 if (fHeader) delete fHeader;
00078 }
|
|
|
Clear all data arrays held by the event
Definition at line 86 of file Event.cxx. References edm::DataBucket::ClearArrays(), and fTop. Referenced by edm::EventHandle::Clear(), testBrowse(), testMakeOne(), testRead(), testWrite(), and ~Event(). 00087 {
00088 DataBucket b(fTop);
00089 b.ClearArrays(0);
00090 }
|
|
||||||||||||||||
|
Make a subfolder inside another and configure it correctly
Definition at line 26 of file Event.cxx. Referenced by Event(), and testWrite(). 00028 {
00029 TFolder* fold = (TFolder*)top->FindObject(name);
00030 if (fold!=0 && fold->IsFolder()) return fold;
00031
00032 fold = top->AddFolder(name, title);
00033 fold->SetOwner();
00034
00035 return fold;
00036 }
|
|
|
Print the structure of the event to standard output Definition at line 96 of file Event.cxx. References fHeader, fTop, and edm::DataBucket::List(). 00097 {
00098 fHeader->Print();
00099 DataBucket b(fTop);
00100 b.List();
00101 }
|
|
|
Calibrated data.
Definition at line 32 of file Event.h. Referenced by Event(), and testWrite(). |
|
|
Information from the DAQ system.
Definition at line 29 of file Event.h. Referenced by Event(), and testWrite(). |
|
|
Information from the detector simulation.
Definition at line 28 of file Event.h. Referenced by Event(), testMakeOne(), testRead(), and testWrite(). |
|
|
Event header.
Definition at line 25 of file Event.h. Referenced by edm::EventHandle::Header(), Print(), and testWrite(). |
|
|
MC truth information (particle stack etc.).
Definition at line 27 of file Event.h. Referenced by Event(), and testWrite(). |
|
|
Raw data.
Definition at line 30 of file Event.h. Referenced by Event(), and testWrite(). |
|
|
Auxiliary raw data store.
Definition at line 31 of file Event.h. Referenced by Event(). |
|
|
Reconstruction objects.
Definition at line 33 of file Event.h. Referenced by Event(), and testWrite(). |
|
|
Event summary (DST) area.
Definition at line 35 of file Event.h. Referenced by Event(), and testWrite(). |
|
|
Top MIPP event data folder.
Definition at line 26 of file Event.h. Referenced by Clear(), Event(), Print(), and testWrite(). |
|
|
User scratch area.
Definition at line 34 of file Event.h. Referenced by Event(), and testWrite(). |
1.3.9.1