#include <ResponseFile.h>
Inheritance diagram for ResponseFile:

Public Types | |
| enum | ios_mode { none_mode = 0, ascii_mode, binary_mode, dual_mode } |
Public Methods | |
| ResponseFile (std::istream*, bool owns = false, ios_mode mode = ascii_mode) | |
| ResponseFile (std::ostream*, bool owns = false, ios_mode mode = ascii_mode) | |
| ResponseFile (const char* fname, bool read = false, ios_mode mode = ascii_mode) | |
| virtual | ~ResponseFile () |
| destructor - ResponseFile destroys the ostream/istream. More... | |
| ResponseFile& | operator>> (GlastDetector&) |
| read/write from the response file (GlastDetectors). More... | |
| ResponseFile& | operator<< (const GlastDetector&) |
| bool | read_event () |
| load the next event - returns true if successful. More... | |
| void | write_event () |
| write the next event. More... | |
| void | write_event ( std::vector<int> header) |
| write the next event, add header info as id=0. More... | |
| bool | good () const |
| bool status information. More... | |
| int | mode () const |
| mode of operation. More... | |
| std::string | version () const |
| std::string | revision () const |
| int | ndet_read () const |
| Number of detector elements read in the last record. More... | |
Static Public Methods | |
| void | loadParameters (xml::IFile& ini) |
| void | createFactories () |
| special global to create the detector factories. More... | |
Protected Methods | |
| void | setin (std::istream* i, ios_mode mode, bool owns = false) |
| void | setout (std::ostream* o, ios_mode mode, bool owns = false) |
| bool | verify (std::istream&, ios_mode) |
| void | verify (std::ostream&, ios_mode) |
| void | end_record () |
| void | end_event () |
| int | next_id () |
| std::string | flush_record () |
| void | backward (CsIDetector&) |
| void | backward (MCTruth&) |
| void | backward (Scintillator&) |
| void | backward (SiDetector&) |
| void | forward (const CsIDetector&) |
| void | forward (const MCTruth&) |
| void | forward (const Scintillator&) |
| void | forward (const SiDetector&) |
Static Protected Methods | |
| int | event_end_id () |
| char | record_end_char () |
Private Types | |
| typedef std::map<GlastDetector::id_type, void*> | DataMap |
Private Attributes | |
| bpkt::istream* | m_binin |
| std::istream* | m_stdin |
| stream to read from (binary). More... | |
| bool | m_ownsin |
| stream to read from (ascii). More... | |
| bpkt::ostream* | m_binout |
| owns the m_in stream? More... | |
| std::ostream* | m_stdout |
| stream to write to (binary). More... | |
| bool | m_ownsout |
| stream to read from (ascii). More... | |
| DataMap | m_data |
| owns the m_out stream? More... | |
| std::string | m_version |
| data for each detector for one event. More... | |
| std::string | m_revision |
| version of the data file (as loaded). More... | |
| int | m_det_read |
| revision of the instrument spec. used to gen. file. More... | |
Static Private Attributes | |
| const char* | s_version = "1.0.0" |
| const char* | s_revision = "1.0" |
Friends | |
| class | CsIDetector |
| class | MCTruth |
| class | Scintillator |
| class | SiDetector |
| template<class_Ty> ResponseFile& | operator<< (ResponseFile&, const _Ty&) |
| number of detector elements read. More... | |
| template<class_Ty> ResponseFile& | operator>> (ResponseFile&, _Ty&) |
Definition at line 26 of file ResponseFile.h.
|
|
Definition at line 113 of file ResponseFile.h. |
|
|
Definition at line 29 of file ResponseFile.h. |
|
|
Definition at line 60 of file ResponseFile.cxx. |
|
|
Definition at line 53 of file ResponseFile.cxx. |
|
|
Definition at line 67 of file ResponseFile.cxx. |
|
|
destructor - ResponseFile destroys the ostream/istream.
Definition at line 137 of file ResponseFile.cxx. |
|
|
Reimplemented from DetectorConverter. Definition at line 278 of file ResponseFile.cxx. |
|
|
Reimplemented from DetectorConverter. Definition at line 269 of file ResponseFile.cxx. |
|
|
Reimplemented from DetectorConverter. Definition at line 255 of file ResponseFile.cxx. |
|
|
Reimplemented from DetectorConverter. Definition at line 246 of file ResponseFile.cxx. |
|
|
special global to create the detector factories.
Definition at line 37 of file ResponseFile.cxx. Referenced by Instrument::initialize(). |
|
|
Definition at line 200 of file ResponseFile.h. Referenced by write_event(). |
|
|
Definition at line 192 of file ResponseFile.h. Referenced by operator<<(). |
|
|
Definition at line 182 of file ResponseFile.h. Referenced by end_event(). |
|
|
Definition at line 215 of file ResponseFile.h. Referenced by read_event(). |
|
|
Reimplemented from DetectorConverter. Definition at line 327 of file ResponseFile.cxx. |
|
|
Reimplemented from DetectorConverter. Definition at line 320 of file ResponseFile.cxx. |
|
|
Reimplemented from DetectorConverter. Definition at line 308 of file ResponseFile.cxx. |
|
|
Reimplemented from DetectorConverter. Definition at line 301 of file ResponseFile.cxx. |
|
|
bool status information.
Definition at line 173 of file ResponseFile.h. Referenced by backward(), forward(), Instrument::openIRF(), read_event(), and write_event(). |
|
|
Definition at line 150 of file ResponseFile.cxx. |
|
|
mode of operation.
Definition at line 237 of file ResponseFile.h. |
|
|
Number of detector elements read in the last record.
Definition at line 71 of file ResponseFile.h. Referenced by Instrument::detectors_with_data(). |
|
|
Definition at line 208 of file ResponseFile.h. Referenced by read_event(). |
|
|
Definition at line 162 of file ResponseFile.h. |
|
|
read/write from the response file (GlastDetectors).
Definition at line 156 of file ResponseFile.h. |
|
|
load the next event - returns true if successful.
Definition at line 219 of file ResponseFile.cxx. Referenced by Instrument::readIRF(). |
|
|
Definition at line 187 of file ResponseFile.h. Referenced by end_record(), and flush_record(). |
|
|
Definition at line 232 of file ResponseFile.h. |
|
|
Definition at line 88 of file ResponseFile.cxx. Referenced by ResponseFile(). |
|
|
Definition at line 114 of file ResponseFile.cxx. Referenced by ResponseFile(). |
|
|
Definition at line 158 of file ResponseFile.cxx. |
|
|
Definition at line 171 of file ResponseFile.cxx. |
|
|
Definition at line 227 of file ResponseFile.h. |
|
|
write the next event, add header info as id=0.
Definition at line 203 of file ResponseFile.cxx. |
|
|
write the next event.
Definition at line 192 of file ResponseFile.cxx. Referenced by write_event(). |
|
|
Definition at line 106 of file ResponseFile.h. |
|
|
Definition at line 107 of file ResponseFile.h. |
|
|
Definition at line 108 of file ResponseFile.h. |
|
|
Definition at line 109 of file ResponseFile.h. |
|
||||||
|
number of detector elements read.
Definition at line 141 of file ResponseFile.h. |
|
||||||
|
Definition at line 148 of file ResponseFile.h. |
|
|
Definition at line 116 of file ResponseFile.h. |
|
|
owns the m_in stream?
Definition at line 119 of file ResponseFile.h. |
|
|
owns the m_out stream?
Definition at line 122 of file ResponseFile.h. |
|
|
revision of the instrument spec. used to gen. file.
Definition at line 126 of file ResponseFile.h. |
|
|
stream to read from (ascii).
Definition at line 118 of file ResponseFile.h. |
|
|
stream to read from (ascii).
Definition at line 121 of file ResponseFile.h. |
|
|
version of the data file (as loaded).
Definition at line 124 of file ResponseFile.h. |
|
|
stream to read from (binary).
Definition at line 117 of file ResponseFile.h. |
|
|
stream to write to (binary).
Definition at line 120 of file ResponseFile.h. |
|
|
data for each detector for one event.
Definition at line 123 of file ResponseFile.h. |
|
|
Definition at line 30 of file ResponseFile.cxx. |
|
|
Definition at line 29 of file ResponseFile.cxx. |
1.2.3 written by Dimitri van Heesch,
© 1997-2000