Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

TridModelPixel Class Reference

#include <TridModelPmt.h>

Inheritance diagram for TridModelPixel:

TridModel List of all members.

Public Member Functions

 TridModelPixel (const PlexPixelSpotId &pixel)
virtual Bool_t ShouldContain (const PlexPixelSpotId &seid) const
virtual void Print (std::ostream &os=std::cout) const

Public Attributes

PlexPixelSpotId fPixelSpot
Int_t fPixels

Constructor & Destructor Documentation

TridModelPixel::TridModelPixel const PlexPixelSpotId pixel  ) 
 

Definition at line 31 of file TridModelPmt.cxx.

References fPixels, fPixelSpot, PlexMuxBoxId::GetElecType(), PlexPixelSpotId::GetUniquePmtEncodedValue(), and TridModel::SetSortKey().

00032 {
00033   fPixelSpot = pixel;
00034   fPixels    = (pixel.GetElecType()==ElecType::kQIE) ? (64) : (16);
00035   SetSortKey( fPixelSpot.GetUniquePmtEncodedValue() );
00036 }


Member Function Documentation

void TridModelPixel::Print std::ostream &  os = std::cout  )  const [virtual]
 

Reimplemented from TridModel.

Definition at line 44 of file TridModelPmt.cxx.

References PlexPixelSpotId::AsString(), Form(), fPixelSpot, PlexMuxBoxId::GetEastWest(), PlexMuxBoxId::GetInRack(), PlexPixelSpotId::GetPixel(), PlexMuxBoxId::GetRackBay(), PlexMuxBoxId::GetRackLevel(), PlexPixelSpotId::GetSpot(), PlexPixelSpotId::GetTube(), and TridModel::Print().

00045 {
00046   os << "Pixel:    " <<  fPixelSpot.AsString() << std::endl;
00047   os << Form("Spot (demux):          %d",fPixelSpot.GetSpot()) << std::endl;
00048   os << Form("Pixel:                 %d",fPixelSpot.GetPixel()) << std::endl;
00049   os << Form("Tube in box:           %d",fPixelSpot.GetTube()) << std::endl;
00050   os << Form("Box in rack:           %d",fPixelSpot.GetInRack()) << std::endl;
00051   os << Form("Rack bay:              %d",fPixelSpot.GetRackBay()) << std::endl;
00052   os << Form("Rack level:            %c",fPixelSpot.GetRackLevel()) << std::endl;
00053   os << Form("Detector side:         %c",fPixelSpot.GetEastWest()) << std::endl;
00054   os << std::endl;
00055   TridModel::Print(os);
00056 }

Bool_t TridModelPixel::ShouldContain const PlexPixelSpotId seid  )  const [virtual]
 

Definition at line 38 of file TridModelPmt.cxx.

References fPixelSpot, and PlexPixelSpotId::IsSamePixel().

Referenced by TridModelMaker::CreatePmtModels().

00040 {
00041   return seid.IsSamePixel(fPixelSpot);
00042 }


Member Data Documentation

Int_t TridModelPixel::fPixels
 

Definition at line 25 of file TridModelPmt.h.

Referenced by TridModelPixel().

PlexPixelSpotId TridModelPixel::fPixelSpot
 

Definition at line 24 of file TridModelPmt.h.

Referenced by TridPmtPage::CreateSketches(), Print(), ShouldContain(), and TridModelPixel().


The documentation for this class was generated from the following files:
Generated on Mon Feb 15 11:10:25 2010 for loon by  doxygen 1.3.9.1