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

Public Member Functions | |
| TridModelCrate (RawChannelId rcid) | |
| virtual Bool_t | ShouldContain (RawChannelId rcid) const |
| virtual void | Print (std::ostream &os=std::cout) const |
Public Attributes | |
| RawChannelId | fChannel |
|
|
Definition at line 6 of file TridModelCrate.cxx. References fChannel, RawChannelId::GetCrate(), RawChannelId::GetElecType(), RawChannelId::SetMinderChannel(), TridModel::SetSortKey(), RawChannelId::SetVaChannel(), and RawChannelId::SetVaChip(). 00007 {
00008 fChannel = rcid;
00009 SetSortKey(rcid.GetCrate());
00010
00011 // Take out least significant info;
00012 if(fChannel.GetElecType() == ElecType::kQIE) {
00013 fChannel.SetMinderChannel(0);
00014 } else {
00015 fChannel.SetVaChannel(0);
00016 fChannel.SetVaChip(0);
00017 }
00018 }
|
|
|
Reimplemented from TridModel. Definition at line 33 of file TridModelCrate.cxx. References RawChannelId::AsString(), fChannel, Form(), RawChannelId::GetCrate(), TridModel::GetDigits(), RawChannelId::GetElecType(), RawChannelId::GetGeographicAddress(), RawChannelId::GetMasterChannel(), TridModel::GetTotalCharge(), RawChannelId::GetVaAdcSel(), RawChannelId::GetVarcId(), and RawChannelId::GetVmm(). 00034 {
00035 os << Form("Channel: %s",fChannel.AsString("e")) << std::endl;
00036 if(fChannel.GetElecType()==ElecType::kQIE) {
00037 os << Form("Type: QIE") << std::endl;
00038 os << Form("Crate: %d",fChannel.GetCrate()) << std::endl;
00039 os << Form("Geographic Address: %d",fChannel.GetGeographicAddress()) << std::endl;
00040 os << Form("MasterChannel: %d",fChannel.GetMasterChannel()) << std::endl;
00041 os << "" << std::endl;
00042 } else {
00043 os << Form("Type: VA") << std::endl;
00044 os << Form("Crate: %d",fChannel.GetCrate()) << std::endl;
00045 os << Form("Varc: %d",fChannel.GetVarcId()) << std::endl;
00046 os << Form("Vmm: %d",fChannel.GetVmm()) << std::endl;
00047 os << Form("Vfb (VaAdcSel): %d",fChannel.GetVaAdcSel()) << std::endl;
00048 }
00049
00050 os << "" << std::endl;
00051 os << Form("Hits on this channel: %d",GetDigits()) << std::endl;
00052 os << Form("Total charge: %.1f ADC",GetTotalCharge(CalStripType::kNone)) << std::endl;
00053 os << Form("Total pe: %.1f PE",GetTotalCharge(CalStripType::kPE)) << std::endl;
00054 os << "" << std::endl;
00055
00056 }
|
|
|
Definition at line 20 of file TridModelCrate.cxx. References fChannel, RawChannelId::GetElecType(), RawChannelId::IsSameChannel(), RawChannelId::SetMinderChannel(), RawChannelId::SetVaChannel(), and RawChannelId::SetVaChip(). Referenced by TridModelMaker::CreateChannelModels(). 00022 {
00023 if(comp.GetElecType() == ElecType::kQIE) {
00024 comp.SetMinderChannel(0);
00025 } else {
00026 comp.SetVaChannel(0);
00027 comp.SetVaChip(0);
00028 }
00029
00030 return fChannel.IsSameChannel(comp);
00031 }
|
|
|
Definition at line 10 of file TridModelCrate.h. Referenced by TridCratePage::CreateSketches(), Print(), ShouldContain(), and TridModelCrate(). |
1.3.9.1