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

PlexScintMdlId.cxx File Reference

#include "Plex/PlexScintMdlId.h"
#include <iostream>
#include <iomanip>
#include <string>
#include <cassert>
#include "MessageService/MsgService.h"

Go to the source code of this file.

Classes

class  ModulesInPlnInfo

Functions

 CVSID ("$Id: PlexScintMdlId.cxx,v 1.13 2005/08/26 18:47:04 rhatcher Exp $")
ModulesInPlnInfogetModulesInPlnInfo (const PlexPlaneId &plnid, const char *whence="")
std::ostream & operator<< (std::ostream &os, const PlexScintMdlId &p)
Bool_t operator< (const PlexScintMdlId &lhs, const PlexScintMdlId &rhs)
Bool_t operator<= (const PlexScintMdlId &lhs, const PlexScintMdlId &rhs)
Bool_t operator== (const PlexScintMdlId &lhs, const PlexScintMdlId &rhs)
Bool_t operator!= (const PlexScintMdlId &lhs, const PlexScintMdlId &rhs)
Bool_t operator> (const PlexScintMdlId &lhs, const PlexScintMdlId &rhs)
Bool_t operator>= (const PlexScintMdlId &lhs, const PlexScintMdlId &rhs)

Variables

const UChar_t farU [] = { 'a','b','e','f','F','E','B','A' }
const UChar_t farV [] = { 'a','b','c','d','D','C','B','A' }
const UChar_t nearfullU [] = { 'n','m','l','K','J'}
const UChar_t nearfullV [] = { 'j','k','L','M','N'}
const UChar_t nearpartU [] = { 'i','H','G'}
const UChar_t nearpartV [] = { 'g','h','I'}
const UChar_t caldetU [] = { 'X' }
const UChar_t caldetV [] = { 'X' }
const UChar_t caldetB [] = { 'X' }
const UChar_t veto_c [] = { 'c' }
const UChar_t veto_C [] = { 'C' }
const UChar_t veto_e [] = { 'e' }
const UChar_t veto_E [] = { 'E' }
const Detector::Detector_t isfar = Detector::kFar
const Detector::Detector_t isnear = Detector::kNear
const Detector::Detector_t iscaldet = Detector::kCalDet
const PlaneCoverage::PlaneCoverage_t iscomplete = PlaneCoverage::kComplete
const PlaneCoverage::PlaneCoverage_t isnearfull = PlaneCoverage::kNearFull
const PlaneCoverage::PlaneCoverage_t isnearpart = PlaneCoverage::kNearPartial
const PlaneView::PlaneView_t isU = PlaneView::kU
const PlaneView::PlaneView_t isV = PlaneView::kV
const PlaneView::PlaneView_t isB = PlaneView::kB
const PlaneCoverage::PlaneCoverage_t isVScN = PlaneCoverage::kVScN
const PlaneCoverage::PlaneCoverage_t isVSCN = PlaneCoverage::kVSCN
const PlaneCoverage::PlaneCoverage_t isVSeS = PlaneCoverage::kVSeS
const PlaneCoverage::PlaneCoverage_t isVSES = PlaneCoverage::kVSES
const PlaneCoverage::PlaneCoverage_t isVScS = PlaneCoverage::kVScS
const PlaneCoverage::PlaneCoverage_t isVSCS = PlaneCoverage::kVSCS
const PlaneCoverage::PlaneCoverage_t isVSeN = PlaneCoverage::kVSeN
const PlaneCoverage::PlaneCoverage_t isVSEN = PlaneCoverage::kVSEN
const PlaneView::PlaneView_t isTopFlat = PlaneView::kVSTopFlat
const PlaneView::PlaneView_t isTopEastSlant = PlaneView::kVSTopEastSlant
const PlaneView::PlaneView_t isTopWestSlant = PlaneView::kVSTopWestSlant
const PlaneView::PlaneView_t isWallOnEdge = PlaneView::kVSWallOnEdge
const PlaneView::PlaneView_t isWallEastSlant = PlaneView::kVSWallEastSlant
const PlaneView::PlaneView_t isWallWestSlant = PlaneView::kVSWallWestSlant
ModulesInPlnInfo gModulesInPlnInfoList []
int gNumModulesInPlnInfoList


Function Documentation

CVSID "$Id: PlexScintMdlId cxx,
v 1.13 2005/08/26 18:47:04 rhatcher Exp $" 
 

ModulesInPlnInfo* getModulesInPlnInfo const PlexPlaneId plnid,
const char *  whence = ""
 

Definition at line 349 of file PlexScintMdlId.cxx.

References PlaneView::AsString(), PlaneCoverage::AsString(), Detector::AsString(), ModulesInPlnInfo::fCoverage, ModulesInPlnInfo::fDetector, ModulesInPlnInfo::fView, PlexPlaneId::GetDetector(), PlexPlaneId::GetPlane(), PlexPlaneId::GetPlaneCoverage(), PlexPlaneId::GetPlaneView(), gModulesInPlnInfoList, and MSG.

Referenced by PlexScintMdlId::AsString(), PlexScintMdlId::GetMapperStripInMdl(), PlexScintMdlId::GetModuleType(), PlexScintMdlId::GetNumScintMdlsInPln(), PlexScintMdlId::GetNumStripsInPln(), PlexScintMdlId::GetStripInMdl(), and PlexScintMdlId::StripToScintMdl().

00351 {
00352   Detector::Detector_t       detector = plnid.GetDetector();
00353   PlaneCoverage::PlaneCoverage_t coverage = plnid.GetPlaneCoverage();
00354   PlaneView::PlaneView_t         view     = plnid.GetPlaneView();
00355 
00356   for (int indx=0; indx<gNumModulesInPlnInfoList; ++indx) {
00357     ModulesInPlnInfo *oneModulesInPlnInfo = gModulesInPlnInfoList+indx;
00358     if (oneModulesInPlnInfo->fDetector == detector &&
00359         oneModulesInPlnInfo->fCoverage == coverage &&
00360         oneModulesInPlnInfo->fView     == view        ) 
00361       // this one matches
00362       return oneModulesInPlnInfo;
00363   }
00364   // no matches
00365   if (!whence) whence = "unknown callee";
00366   MSG("Plex",Msg::kError)
00367     << "no match for pln="
00368     << plnid.GetPlane() << " {" 
00369     << " " << Detector::AsString(detector)
00370     << " " << PlaneCoverage::AsString(coverage)
00371     << " " << PlaneView::AsString(view)
00372     <<  "} used by " << whence
00373     << endl;
00374   return 0;
00375 
00376 }

Bool_t operator!= const PlexScintMdlId lhs,
const PlexScintMdlId rhs
 

Definition at line 437 of file PlexScintMdlId.cxx.

References PlexPlaneId::fEncoded.

00438 { return lhs.fEncoded != rhs.fEncoded; }

Bool_t operator< const PlexScintMdlId lhs,
const PlexScintMdlId rhs
 

Definition at line 426 of file PlexScintMdlId.cxx.

References PlexPlaneId::fEncoded.

00427 { return lhs.fEncoded <  rhs.fEncoded; }

std::ostream& operator<< std::ostream &  os,
const PlexScintMdlId p
 

Definition at line 379 of file PlexScintMdlId.cxx.

00380 {
00381    os << p.AsString();
00382 
00383   return os;
00384 }

Bool_t operator<= const PlexScintMdlId lhs,
const PlexScintMdlId rhs
 

Definition at line 429 of file PlexScintMdlId.cxx.

References PlexPlaneId::fEncoded.

00430 { return lhs.fEncoded <= rhs.fEncoded; }

Bool_t operator== const PlexScintMdlId lhs,
const PlexScintMdlId rhs
 

Definition at line 433 of file PlexScintMdlId.cxx.

References PlexPlaneId::fEncoded.

00434 { return lhs.fEncoded == rhs.fEncoded; }

Bool_t operator> const PlexScintMdlId lhs,
const PlexScintMdlId rhs
 

Definition at line 440 of file PlexScintMdlId.cxx.

References PlexPlaneId::fEncoded.

00441 { return lhs.fEncoded >  rhs.fEncoded; }

Bool_t operator>= const PlexScintMdlId lhs,
const PlexScintMdlId rhs
 

Definition at line 443 of file PlexScintMdlId.cxx.

References PlexPlaneId::fEncoded.

00444 { return lhs.fEncoded >= rhs.fEncoded; }


Variable Documentation

const UChar_t caldetB[] = { 'X' }
 

Definition at line 226 of file PlexScintMdlId.cxx.

const UChar_t caldetU[] = { 'X' }
 

Definition at line 224 of file PlexScintMdlId.cxx.

const UChar_t caldetV[] = { 'X' }
 

Definition at line 225 of file PlexScintMdlId.cxx.

const UChar_t farU[] = { 'a','b','e','f','F','E','B','A' }
 

Definition at line 218 of file PlexScintMdlId.cxx.

const UChar_t farV[] = { 'a','b','c','d','D','C','B','A' }
 

Definition at line 219 of file PlexScintMdlId.cxx.

ModulesInPlnInfo gModulesInPlnInfoList[] [static]
 

Definition at line 264 of file PlexScintMdlId.cxx.

Referenced by getModulesInPlnInfo().

int gNumModulesInPlnInfoList [static]
 

Initial value:

 
               sizeof(gModulesInPlnInfoList)/sizeof(ModulesInPlnInfo)

Definition at line 344 of file PlexScintMdlId.cxx.

const PlaneView::PlaneView_t isB = PlaneView::kB
 

Definition at line 243 of file PlexScintMdlId.cxx.

const Detector::Detector_t iscaldet = Detector::kCalDet
 

Definition at line 237 of file PlexScintMdlId.cxx.

Referenced by UgliGeometryReroot::MakeTempDbiPosInfo().

const PlaneCoverage::PlaneCoverage_t iscomplete = PlaneCoverage::kComplete
 

Definition at line 238 of file PlexScintMdlId.cxx.

const Detector::Detector_t isfar = Detector::kFar
 

Definition at line 235 of file PlexScintMdlId.cxx.

const Detector::Detector_t isnear = Detector::kNear
 

Definition at line 236 of file PlexScintMdlId.cxx.

const PlaneCoverage::PlaneCoverage_t isnearfull = PlaneCoverage::kNearFull
 

Definition at line 239 of file PlexScintMdlId.cxx.

const PlaneCoverage::PlaneCoverage_t isnearpart = PlaneCoverage::kNearPartial
 

Definition at line 240 of file PlexScintMdlId.cxx.

const PlaneView::PlaneView_t isTopEastSlant = PlaneView::kVSTopEastSlant
 

Definition at line 255 of file PlexScintMdlId.cxx.

const PlaneView::PlaneView_t isTopFlat = PlaneView::kVSTopFlat
 

Definition at line 254 of file PlexScintMdlId.cxx.

const PlaneView::PlaneView_t isTopWestSlant = PlaneView::kVSTopWestSlant
 

Definition at line 256 of file PlexScintMdlId.cxx.

const PlaneView::PlaneView_t isU = PlaneView::kU
 

Definition at line 241 of file PlexScintMdlId.cxx.

const PlaneView::PlaneView_t isV = PlaneView::kV
 

Definition at line 242 of file PlexScintMdlId.cxx.

Referenced by RerootExodus::GetCellPos().

const PlaneCoverage::PlaneCoverage_t isVSCN = PlaneCoverage::kVSCN
 

Definition at line 246 of file PlexScintMdlId.cxx.

const PlaneCoverage::PlaneCoverage_t isVScN = PlaneCoverage::kVScN
 

Definition at line 245 of file PlexScintMdlId.cxx.

const PlaneCoverage::PlaneCoverage_t isVSCS = PlaneCoverage::kVSCS
 

Definition at line 250 of file PlexScintMdlId.cxx.

const PlaneCoverage::PlaneCoverage_t isVScS = PlaneCoverage::kVScS
 

Definition at line 249 of file PlexScintMdlId.cxx.

const PlaneCoverage::PlaneCoverage_t isVSEN = PlaneCoverage::kVSEN
 

Definition at line 252 of file PlexScintMdlId.cxx.

const PlaneCoverage::PlaneCoverage_t isVSeN = PlaneCoverage::kVSeN
 

Definition at line 251 of file PlexScintMdlId.cxx.

const PlaneCoverage::PlaneCoverage_t isVSES = PlaneCoverage::kVSES
 

Definition at line 248 of file PlexScintMdlId.cxx.

const PlaneCoverage::PlaneCoverage_t isVSeS = PlaneCoverage::kVSeS
 

Definition at line 247 of file PlexScintMdlId.cxx.

const PlaneView::PlaneView_t isWallEastSlant = PlaneView::kVSWallEastSlant
 

Definition at line 258 of file PlexScintMdlId.cxx.

const PlaneView::PlaneView_t isWallOnEdge = PlaneView::kVSWallOnEdge
 

Definition at line 257 of file PlexScintMdlId.cxx.

const PlaneView::PlaneView_t isWallWestSlant = PlaneView::kVSWallWestSlant
 

Definition at line 259 of file PlexScintMdlId.cxx.

const UChar_t nearfullU[] = { 'n','m','l','K','J'}
 

Definition at line 220 of file PlexScintMdlId.cxx.

const UChar_t nearfullV[] = { 'j','k','L','M','N'}
 

Definition at line 221 of file PlexScintMdlId.cxx.

const UChar_t nearpartU[] = { 'i','H','G'}
 

Definition at line 222 of file PlexScintMdlId.cxx.

const UChar_t nearpartV[] = { 'g','h','I'}
 

Definition at line 223 of file PlexScintMdlId.cxx.

const UChar_t veto_C[] = { 'C' }
 

Definition at line 229 of file PlexScintMdlId.cxx.

const UChar_t veto_c[] = { 'c' }
 

Definition at line 228 of file PlexScintMdlId.cxx.

const UChar_t veto_E[] = { 'E' }
 

Definition at line 231 of file PlexScintMdlId.cxx.

const UChar_t veto_e[] = { 'e' }
 

Definition at line 230 of file PlexScintMdlId.cxx.


Generated on Mon Feb 15 11:08:08 2010 for loon by  doxygen 1.3.9.1