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

Public Member Functions | |
| PlexHandle (const VldContext &vldc, Bool_t shared=kTRUE) | |
| PlexHandle (const PlexHandle &ph) | |
| virtual | ~PlexHandle () |
| PlexHandle & | operator= (const PlexHandle &ph) |
| virtual RawChannelId | GetRawChannelId (const PlexStripEndId &seid) const |
| virtual RawChannelId | GetRawChannelId (const PlexPixelSpotId &psid) const |
| virtual RawChannelId | GetRawChannelId (const PlexPinDiodeId &diodeid) const |
| virtual PlexSEIdAltL | GetSEIdAltL (const RawChannelId &rcid, const PlexCalib *calib=0, Int_t adc=0, Double_t time=0) const |
| virtual PlexStripEndId | GetStripEndId (const PlexPixelSpotId &psid) const |
| virtual std::vector< PlexPixelSpotId > | GetPixelSpotIdVector (const RawChannelId &rcid, bool uniquePixels=false) const |
| virtual PlexPixelSpotId | GetPixelSpotId (const PlexStripEndId &seid) const |
| virtual PlexPinDiodeId | GetPinDiodeId (const RawChannelId &rcid) const |
| virtual ReadoutType::Readout_t | GetReadoutType (const RawChannelId &rcid) const |
| virtual std::string | GetSpecialDescript (const RawChannelId &rcid) const |
| virtual RawChannelId | GetSpecialChannelContains (const std::string &key) const |
| virtual const std::map< RawChannelId, std::string > & | GetSpecialDescriptMap () const |
| virtual std::vector< PlexStripEndId > | GetStripEndIdVector (const PlexLedId &ledid) const |
| virtual std::pair< PlexPinDiodeId, PlexPinDiodeId > | GetPinDiodeIds (const PlexLedId &ledid) const |
| virtual PlexLedId | GetLedId (const PlexStripEndId &seid) const |
| virtual PlexLedId | GetLedId (const PlexPinDiodeId &diodeid) const |
| virtual RawChannelId | GetTpmtFromLedPulserBox (Int_t ipb) const |
| virtual Int_t | GetLedPulserBoxFromTpmt (const RawChannelId &rcid) const |
| virtual const std::vector< PlexStripEndId > & | GetAllStrips () const |
| virtual const std::vector< PlexStripEndId > & | GetAllStripEnds (StripEnd::StripEnd_t restrictEnd=StripEnd::kUnknown) const |
| virtual const std::vector< PlexPixelSpotId > & | GetAllPixelSpots () const |
| virtual const std::vector< PlexPixelSpotId > & | GetAllPixels () const |
| virtual const std::vector< PlexPixelSpotId > & | GetAllTubes () const |
| virtual const std::vector< RawChannelId > & | GetAllRawChannelIds () const |
| virtual const std::vector< PlexPinDiodeId > & | GetAllPinDiodes () const |
| virtual const std::vector< PlexLedId > & | GetAllLeds () const |
| virtual const VldRange & | GetVldRange () const |
| void | Print (Option_t *option="s") const |
| virtual void | ValidateConsistency () const |
Private Member Functions | |
| PlexHandle () | |
| void | Copy (PlexHandle &ph) const |
| void | Copy (TObject &object) const |
Private Attributes | |
| Plexus * | fPlexus |
|
||||||||||||
|
Definition at line 41 of file PlexHandle.cxx. References fPlexus, VldContext::GetDetector(), PlexLoanPool::GetPlexus(), Plexus::IncrementRef(), PlexLoanPool::Instance(), and PlexVetoShieldHack::SetDefaultContext(). 00042 {
00043 // Build a handle to a plexus
00044 // Get plexus from the loan pool (which will build it if necessary)
00045
00046 // complete hack to keep a "global" context so that decisions about
00047 // veto shield configuration can be made in a pseudo-vacuum.
00048 // set this *before* going to the loan pool
00049 if (vldc.GetDetector() == Detector::kFar)
00050 PlexVetoShieldHack::SetDefaultContext(vldc);
00051
00052 fPlexus = PlexLoanPool::Instance()->GetPlexus(vldc,shared);
00053 fPlexus->IncrementRef();
00054 }
|
|
|
Definition at line 57 of file PlexHandle.cxx. References fPlexus, and Plexus::IncrementRef(). 00057 : PlexusABC() 00058 { 00059 // Copy constructor keeps reference count up-to-date 00060 00061 // patterned after other ROOT objects 00062 00063 ((PlexHandle&)ph).Copy(*this); 00064 fPlexus->IncrementRef(); 00065 }
|
|
|
Definition at line 68 of file PlexHandle.cxx. References Plexus::DecrementRef(), and fPlexus. 00069 {
00070 // handle deletion updates reference count
00071 fPlexus->DecrementRef();
00072
00073 }
|
|
|
Definition at line 30 of file PlexHandle.cxx. References MSG. 00031 : fPlexus(0) 00032 { 00033 // Default constructor 00034 00035 MSG("Plex",Msg::kFatal) << 00036 "PlexHandle created by default ctor" << endl; 00037 assert(0); 00038 }
|
|
|
Definition at line 98 of file PlexHandle.cxx. References MSG. 00099 {
00100 // Copy method
00101
00102 // patterned after other ROOT objects
00103
00104 MSG("Plex",Msg::kFatal) <<
00105 "PlexHandle copied from generic TObject" << endl;
00106
00107 TObject::Copy(obj);
00108 ((PlexHandle&)obj).fPlexus = fPlexus;
00109 }
|
|
|
Definition at line 88 of file PlexHandle.cxx. 00089 {
00090 // Copy method
00091
00092 // patterned after other ROOT objects
00093
00094 TObject::Copy(obj);
00095 ((PlexHandle&)obj).fPlexus = fPlexus;
00096 }
|
|
|
Definition at line 244 of file PlexHandle.h. References fPlexus, and Plexus::GetAllLeds(). 00245 { return fPlexus->GetAllLeds(); }
|
|
|
Definition at line 239 of file PlexHandle.h. References fPlexus, and Plexus::GetAllPinDiodes(). 00240 { return fPlexus->GetAllPinDiodes(); }
|
|
|
Implements PlexusABC. Definition at line 224 of file PlexHandle.h. References fPlexus, and Plexus::GetAllPixels(). 00225 { return fPlexus->GetAllPixels(); }
|
|
|
Implements PlexusABC. Definition at line 219 of file PlexHandle.h. References fPlexus, and Plexus::GetAllPixelSpots(). 00220 { return fPlexus->GetAllPixelSpots(); }
|
|
|
Implements PlexusABC. Definition at line 234 of file PlexHandle.h. References fPlexus, and Plexus::GetAllRawChannelIds(). 00235 { return fPlexus->GetAllRawChannelIds(); }
|
|
|
Implements PlexusABC. Definition at line 214 of file PlexHandle.h. References fPlexus, and Plexus::GetAllStripEnds(). Referenced by FitNdNonlinQuad(), HardwareComponent::GetStripEndsForCalorimeter(), HardwareComponent::GetStripEndsForDetector(), HardwareComponent::GetStripEndsForSpectrometer(), HardwareComponent::GetStripEndsForSupermodule(), HardwareComponent::GetStripEndsForVetoShield(), PhotonDefaultModel::MakeNoise(), PhotonCaldetNoise::MakeNoise(), PhotonDefaultModel::MakeNoiseOld(), and PulserTimingPoint::PulserTimingPoint(). 00215 { return fPlexus->GetAllStripEnds(restrictEnd); }
|
|
|
Definition at line 209 of file PlexHandle.h. References fPlexus, and Plexus::GetAllStripEnds(). 00210 { return fPlexus->GetAllStripEnds(StripEnd::kWhole); }
|
|
|
Implements PlexusABC. Definition at line 229 of file PlexHandle.h. References fPlexus, and Plexus::GetAllTubes(). Referenced by PhotonCaldetNoise::MakeNoise(), PhotonDefaultModel::MakeNoiseOld(), and pmt_plot(). 00230 { return fPlexus->GetAllTubes(); }
|
|
|
Implements PlexusABC. Definition at line 204 of file PlexHandle.h. References fPlexus, and Plexus::GetLedId().
|
|
|
|
Definition at line 118 of file PlexHandle.cxx. References GetReadoutType(), and GetSpecialDescript(). Referenced by RawReadout::GetPulserBox(). 00119 {
00120 if ( GetReadoutType(rcid) != ReadoutType::kFlashTrigPMT ) return -1;
00121 // hopefully the DB has the PB info in it.
00122 std::string descript = GetSpecialDescript(rcid);
00123 Int_t ipb = 999; //
00124 sscanf(descript.c_str(),"FlashTrigPMT-PulserBox%02d",&ipb);
00125 return ipb;
00126 }
|
|
|
Implements PlexusABC. Definition at line 164 of file PlexHandle.h. References fPlexus, and Plexus::GetPinDiodeId(). Referenced by PulserSummaryList::Add(), PulserFromRawSummaryList::Add(), LILookup::GetPinDiodeIds(), and Plotter::myGetPinDiodeIds(). 00165 { return fPlexus->GetPinDiodeId(rcid); }
|
|
|
Implements PlexusABC. Definition at line 194 of file PlexHandle.h. References fPlexus, and Plexus::GetPinDiodeIds(). Referenced by PulserSummaryList::Add(), PulserFromRawSummaryList::Add(), PulserTimePlotter::CreateGraph(), MakeLin::DoCalc(), FitNdNonlinQuad(), PulserSigLinCalScheme::GetDriftPinDiodeValue(), PulserDriftCalScheme::GetDriftPinDiodeValue(), PulserLinearityCalScheme::GetPinDiodeId(), PulserSigLinCalScheme::GetReferencePinDiodeValue(), and MakeLin::MakeLin(). 00195 { return fPlexus->GetPinDiodeIds(ledid); }
|
|
|
||||||||||||
|
Implements PlexusABC. Definition at line 154 of file PlexHandle.h. References fPlexus, and Plexus::GetPixelSpotIdVector(). 00155 { return fPlexus->GetPixelSpotIdVector(rcid,uniquePixels); }
|
|
|
Implements PlexusABC. Definition at line 137 of file PlexHandle.h. References fPlexus, and Plexus::GetRawChannelId(). 00138 { return fPlexus->GetRawChannelId(diodeid); }
|
|
|
Implements PlexusABC. Definition at line 132 of file PlexHandle.h. References fPlexus, and Plexus::GetRawChannelId(). 00133 { return fPlexus->GetRawChannelId(psid); }
|
|
|
|
||||||||||||||||||||
|
|
Definition at line 179 of file PlexHandle.h. References fPlexus, and Plexus::GetSpecialChannelContains(). Referenced by GetTpmtFromLedPulserBox(), and AlgCalDetSI::RunAlg(). 00180 { return fPlexus->GetSpecialChannelContains(key); }
|
|
|
Definition at line 174 of file PlexHandle.h. References fPlexus, and Plexus::GetSpecialDescript(). Referenced by GetLedPulserBoxFromTpmt(). 00175 { return fPlexus->GetSpecialDescript(rcid); }
|
|
|
Definition at line 184 of file PlexHandle.h. References fPlexus, and Plexus::GetSpecialDescriptMap(). Referenced by AlgCalDetSI::RunAlg(). 00185 { return fPlexus->GetSpecialDescriptMap(); }
|
|
|
Implements PlexusABC. Definition at line 149 of file PlexHandle.h. References fPlexus, and Plexus::GetStripEndId(). Referenced by CompareToReroot::Ana(), SimDaqMultTrigger::ApplyTriggerAt(), SimVaElectronics::GenSimulatedADC(), SimQiePerfectElectronics::GenSimulatedADC(), SimQieElectronics::GenSimulatedADC(), SimPmt::GetGainAndWidth(), PEGainCalScheme::GetRow(), PEGainAggCalScheme::GetRow(), HardwareComponent::GetStripEndsForPixelSpot(), PEGainCalScheme::GuessGainAndWidth(), PEGainAggCalScheme::GuessGainAndWidth(), and Coroner::RecordDeadStrips(). 00150 { return fPlexus->GetStripEndId(psid); }
|
|
|
Implements PlexusABC. Definition at line 189 of file PlexHandle.h. References fPlexus, and Plexus::GetStripEndIdVector(). Referenced by PEGainModule::FinishPoint(), and PhotonInjector::SimulateEvent(). 00190 { return fPlexus->GetStripEndIdVector(ledid); }
|
|
|
Definition at line 113 of file PlexHandle.cxx. References Form(), and GetSpecialChannelContains(). 00114 {
00115 return GetSpecialChannelContains(Form("PulserBox%02d",ipb));
00116 }
|
|
|
Implements PlexusABC. Definition at line 249 of file PlexHandle.h. References fPlexus, and Plexus::GetVldRange(). Referenced by LISummarySorter::SetPlexHandle(), and ShieldGeom::SetupShieldGeom(). 00250 { return fPlexus->GetVldRange(); }
|
|
|
Definition at line 76 of file PlexHandle.cxx. References Plexus::DecrementRef(), fPlexus, and Plexus::IncrementRef(). 00077 {
00078 // assignment keeps reference counts up-to-date
00079
00080 fPlexus->DecrementRef();
00081 ((PlexHandle&)ph).Copy(*this);
00082 fPlexus->IncrementRef();
00083
00084 return *this;
00085 }
|
|
|
Definition at line 254 of file PlexHandle.h. References fPlexus, option, and Plexus::Print(). Referenced by LIPlexMaps::DriftWithTime().
|
|
|
Definition at line 259 of file PlexHandle.h. References fPlexus, and Plexus::ValidateConsistency(). 00260 { fPlexus->ValidateConsistency(); }
|
|
1.3.9.1