Warning, file /coresoftware/offline/packages/mbd/MbdRawContainer.cc was not indexed
or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 #include "MbdRawContainer.h"
0002 #include "MbdReturnCodes.h"
0003 #include "MbdRawHit.h"
0004
0005 #include <phool/phool.h>
0006
0007 #include <iostream>
0008 #include <iomanip>
0009 #include <cmath>
0010
0011 void MbdRawContainer::identify(std::ostream& os) const
0012 {
0013 os << "virtual MbdRawContainer object" << std::endl;
0014 return;
0015 }
0016
0017 void MbdRawContainer::Reset()
0018 {
0019 std::cout << PHWHERE << "ERROR Reset() not implemented by daughter class" << std::endl;
0020 return;
0021 }
0022
0023 int MbdRawContainer::isValid() const
0024 {
0025 virtual_warning("isValid()");
0026 return 0;
0027 }
0028
0029 void MbdRawContainer::set_clocks(const Int_t , const UShort_t , const UShort_t )
0030 {
0031 virtual_warning("set_clocks(const Int_t ievt, const UShort_t iclk, const UShort_t ifemclk");
0032 return;
0033 }
0034
0035 Int_t MbdRawContainer::get_evt() const
0036 {
0037 virtual_warning("get_evt()");
0038 return 0;
0039 }
0040
0041 UShort_t MbdRawContainer::get_clock() const
0042 {
0043 virtual_warning("get_clock()");
0044 return 0;
0045 }
0046
0047 UShort_t MbdRawContainer::get_femclock() const
0048 {
0049 virtual_warning("get_femclock(const int iarm)");
0050 return 0;
0051 }
0052
0053 void MbdRawContainer::set_npmt(const Short_t )
0054 {
0055 virtual_warning("set_npmt(const Short_t ival)");
0056 return;
0057 }
0058
0059 Short_t MbdRawContainer::get_npmt() const
0060 {
0061 virtual_warning("get_npmt()");
0062 return MbdReturnCodes::MBD_INVALID_SHORT;
0063 }
0064
0065 MbdRawHit *MbdRawContainer::get_pmt(const int ) const
0066 {
0067 virtual_warning("get_pmt(const short iPmt)");
0068 return nullptr;
0069 }
0070
0071 void MbdRawContainer::Print(Option_t * ) const
0072 {
0073 Short_t npmt = get_npmt();
0074 std::cout << "MbdRaw, evt " << get_evt() << std::endl;
0075 std::cout << "clk\t" << std::setw(12) << get_clock() << std::setw(12) << get_femclock() << std::endl;
0076 for (Short_t ipmt=0; ipmt<npmt; ipmt++)
0077 {
0078 Float_t adc = get_pmt(ipmt)->get_adc();
0079 Float_t ttdc = get_pmt(ipmt)->get_ttdc();
0080 Float_t qtdc = get_pmt(ipmt)->get_qtdc();
0081
0082 std::cout << std::setw(8) << ipmt << std::setw(12) << adc << "\t" << std::setw(12) << ttdc <<"\t" << std::setw(12) << qtdc << std::endl;
0083 }
0084 }
0085
0086 void MbdRawContainer::virtual_warning(const std::string& funcsname)
0087 {
0088 std::cout << "MbdRawContainer::" << funcsname << " is virtual, doing nothing" << std::endl;
0089 return;
0090 }