#include <Knot.h>
Public Types | |
| typedef std::map< std::string, AcnetDevice * > | DeviceMap |
| Return a reference to all existing devices as map from name->device. | |
Public Member Functions | |
| Knot (TTree &tree) | |
| Knot () | |
| void | SetTree (TTree &tree) |
| (re)Set the tree after creation | |
| int | GetSize () |
| Get the number of entries in the tree. | |
| int | GetEntry (int entry) |
| Get Entry number "entry". Return <0 on error. | |
| int | GetEntryNumber () |
| Get current entry number. <0 if none yet set. | |
| const AcnetDevice * | GetDevice (const char *name) |
| const DeviceMap & | GetDevices () const |
Private Attributes | |
| KnotImp * | fImp |
|
|
Return a reference to all existing devices as map from name->device.
Definition at line 40 of file Knot.h. Referenced by GetDevices(). |
|
|
Definition at line 62 of file Knot.cxx.
|
|
|
Definition at line 63 of file Knot.cxx. 00063 : fImp(0) {}
|
|
|
Get AcnetDevice of given name. This will point to new data each time GetEntry() is called. Returns 0 if not found. Definition at line 88 of file Knot.cxx. References fImp, and KnotImp::GetDevice(). Referenced by book_and_fill(), ProtonDist::Fill(), fill(), Npot::Fill(), MaxDaeDt::Fill(), DeltaT::Fill(), Pedestals::GeneratePeds(), horn_off(), make_plots(), pedmaker(), and tortgt_ok().
|
|
|
Definition at line 94 of file Knot.cxx. References DeviceMap, KnotImp::fDeviceMap, and fImp. 00095 {
00096 return fImp->fDeviceMap;
00097 }
|
|
|
Get Entry number "entry". Return <0 on error.
Definition at line 77 of file Knot.cxx. References fImp, and KnotImp::GetEntry(). Referenced by DeltaT::Fill(), Pedestals::GeneratePeds(), make_plots(), pedmaker(), and PlotterManager::Spin().
|
|
|
Get current entry number. <0 if none yet set.
Definition at line 83 of file Knot.cxx. References KnotImp::fCurrentEntry, and fImp. Referenced by ProtonDist::Fill(), and DeltaT::Fill(). 00084 {
00085 if (!fImp) return -1;
00086 return fImp->fCurrentEntry;
00087 }
|
|
|
Get the number of entries in the tree.
Definition at line 71 of file Knot.cxx. References fImp, and KnotImp::fTree. Referenced by Pedestals::GeneratePeds(), make_plots(), pedmaker(), and PlotterManager::Spin().
|
|
|
(re)Set the tree after creation
Definition at line 65 of file Knot.cxx. References fImp. Referenced by DeltaT::NewFile(), and PlotterManager::Spin().
|
|
|
Definition at line 17 of file Knot.h. Referenced by GetDevice(), GetDevices(), GetEntry(), GetEntryNumber(), GetSize(), and SetTree(). |
1.3.9.1