Public Member Functions | |
| KnotImp (TTree &tree) | |
| ~KnotImp () | |
| const AcnetDevice * | GetDevice (const char *devname) |
| int | GetEntry (int entry) |
Public Attributes | |
| TTree & | fTree |
| int | fCurrentEntry |
| Knot::DeviceMap | fDeviceMap |
|
|
Definition at line 31 of file Knot.cxx. 00031 : fTree(tree), fCurrentEntry(-1) {}
|
|
|
Definition at line 32 of file Knot.cxx. References done(). 00032 {
00033 Knot::DeviceMap::iterator it, done = fDeviceMap.end();
00034 for (it = fDeviceMap.begin(); it != done; ++it) {
00035 delete it->second;
00036 it->second = 0;
00037 }
00038 }
|
|
|
Definition at line 40 of file Knot.cxx. References acnet2branchname(). Referenced by Knot::GetDevice(). 00040 {
00041 Knot::DeviceMap::iterator it = fDeviceMap.find(devname);
00042 if (it != fDeviceMap.end()) return it->second;
00043
00044 AcnetDevice* ad = new AcnetDevice(devname);
00045 fDeviceMap[devname] = ad;
00046
00047 string dns = acnet2branchname(devname);
00048 //cerr << "Getting device " << devname << " as " << dns << endl;
00049 fTree.SetBranchStatus(dns.c_str(),1);
00050 fTree.SetBranchAddress(dns.c_str(),&fDeviceMap[devname]);
00051 if (fCurrentEntry >= 0)
00052 this->GetEntry(fCurrentEntry);
00053 return ad;
00054 }
|
|
|
Definition at line 56 of file Knot.cxx. Referenced by Knot::GetEntry(). 00056 {
00057 fCurrentEntry = entry;
00058 return fTree.GetEntry(entry);
00059 }
|
|
|
Definition at line 28 of file Knot.cxx. Referenced by Knot::GetEntryNumber(). |
|
|
Definition at line 29 of file Knot.cxx. Referenced by Knot::GetDevices(). |
|
|
Definition at line 27 of file Knot.cxx. Referenced by Knot::GetSize(). |
1.3.9.1