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

QuickGeom.h File Reference

Go to the source code of this file.

Defines

#define UV(ip)   (((ip%2==0 && ip<250) || (ip%2!=0 && ip>=250))? 0: 1)
#define IsVPlane(ip)   (ip/249)^(ip%2)
#define P2Z   0.05945
#define S2L   0.04126
#define StripFromT(MC, T)   (MC ? MCStripFromT(T) : DataStripFromT(T))
#define TFromStrip(MC, S)   (MC ? MCTFromStrip(S) : DataTFromStrip(S))
#define DataStripFromT(T)   (T<-3.9345?0:T>3.9345?191:(24.273*T)+95.501)
#define DataTFromStrip(S)   (S<0?-3.9345:S>191?3.9345:(0.041198*S)-3.9345)
#define MCStripFromT(T)   (T<-3.9466?0:T>3.9466?191:(24.198*T)+95.500)
#define MCTFromStrip(S)   (S<0?-3.9466:S>191?3.9466:(0.041326*S)-3.9466)
#define PlaneFromZ(MC, Z)   (MC ? MCPlaneFromZ(Z) : DataPlaneFromZ(Z))
#define ZFromPlane(MC, P)   (MC ? MCZFromPlane(P) : DataZFromPlane(P))
#define DataPlaneFromZ(Z)   (Z<15.3?(16.82*Z)-0.8572:(16.82*Z)-18.92)
#define DataZFromPlane(P)   (P<249?(0.05945*P)-0.05096:(0.05945*P)+1.125)
#define MCPlaneFromZ(Z)   (Z<15.3?(16.82*Z)+0.09243:(16.82*Z)-18.57)
#define MCZFromPlane(P)   (P<249?(0.05945*P)-0.005499:(0.05945*P)+1.104)
#define StpPlnFromTZ(MC, S)   (MC?MCStpPlnFromTZ(S):DataStpPlnFromTZ(S))
#define TZFromStpPln(MC, S)   (MC?MCTZFromStpPln(S):DataTZFromStpPln(S))
#define DataStpPlnFromTZ(Slope)   Slope * 1.4431
#define DataTZFromStpPln(Slope)   Slope * 0.69295
#define MCStpPlnFromTZ(Slope)   Slope * 1.4386
#define MCTZFromStpPln(Slope)   Slope * 0.69510
#define IsRealPlane(P)   (P>0 && P!= 249 && P<486)
#define PlaneBlock(P)
#define PulserBox(P)   PlaneBlock(P)
#define IsRealStrip(S)   (S>=0 && S<192)
#define StripBlock(S)
#define PulserLED(S)   StripBlock(S)
#define NearestFace(P)   (P<=124?1:(P<=248?248:(P<=367?250:485)))
#define PlanesToFace(P)   TMath::Abs(P - NearestFace(P))

Variables

const double LogSafeZero = 10e-9
const double DefLarge = 99e99


Define Documentation

#define DataPlaneFromZ  )     (Z<15.3?(16.82*Z)-0.8572:(16.82*Z)-18.92)
 

Definition at line 23 of file QuickGeom.h.

#define DataStpPlnFromTZ Slope   )     Slope * 1.4431
 

Definition at line 30 of file QuickGeom.h.

Referenced by CamEvd::FillEvent().

#define DataStripFromT  )     (T<-3.9345?0:T>3.9345?191:(24.273*T)+95.501)
 

Definition at line 14 of file QuickGeom.h.

Referenced by CamEvd::FillEvent().

#define DataTFromStrip  )     (S<0?-3.9345:S>191?3.9345:(0.041198*S)-3.9345)
 

Definition at line 15 of file QuickGeom.h.

Referenced by CamEvd::SetUStripRangeUser(), and CamEvd::SetVStripRangeUser().

#define DataTZFromStpPln Slope   )     Slope * 0.69295
 

Definition at line 31 of file QuickGeom.h.

#define DataZFromPlane  )     (P<249?(0.05945*P)-0.05096:(0.05945*P)+1.125)
 

Definition at line 24 of file QuickGeom.h.

Referenced by CamEvd::SetPlaneRangeUser().

#define IsRealPlane  )     (P>0 && P!= 249 && P<486)
 

Definition at line 38 of file QuickGeom.h.

#define IsRealStrip  )     (S>=0 && S<192)
 

Definition at line 43 of file QuickGeom.h.

#define IsVPlane ip   )     (ip/249)^(ip%2)
 

Definition at line 5 of file QuickGeom.h.

#define MCPlaneFromZ  )     (Z<15.3?(16.82*Z)+0.09243:(16.82*Z)-18.57)
 

Definition at line 25 of file QuickGeom.h.

Referenced by CamEvd::MakeMCPlot().

#define MCStpPlnFromTZ Slope   )     Slope * 1.4386
 

Definition at line 32 of file QuickGeom.h.

Referenced by CamEvd::FillEvent(), and CamEvd::MakeMCPlot().

#define MCStripFromT  )     (T<-3.9466?0:T>3.9466?191:(24.198*T)+95.500)
 

Definition at line 16 of file QuickGeom.h.

Referenced by CamEvd::FillEvent(), and CamEvd::MakeMCPlot().

#define MCTFromStrip  )     (S<0?-3.9466:S>191?3.9466:(0.041326*S)-3.9466)
 

Definition at line 17 of file QuickGeom.h.

Referenced by CamEvd::SetUStripRangeUser(), and CamEvd::SetVStripRangeUser().

#define MCTZFromStpPln Slope   )     Slope * 0.69510
 

Definition at line 33 of file QuickGeom.h.

#define MCZFromPlane  )     (P<249?(0.05945*P)-0.005499:(0.05945*P)+1.104)
 

Definition at line 26 of file QuickGeom.h.

Referenced by CamEvd::SetPlaneRangeUser().

#define NearestFace  )     (P<=124?1:(P<=248?248:(P<=367?250:485)))
 

Definition at line 48 of file QuickGeom.h.

#define P2Z   0.05945
 

Definition at line 7 of file QuickGeom.h.

#define PlaneBlock  ) 
 

Value:

(!IsRealPlane(P) ? -1 : \
  ((P<250) ? (P-1)/64 : 4 + ((P-250)/64)))

Definition at line 39 of file QuickGeom.h.

Referenced by CamEvd::MakeChargePlot().

#define PlaneFromZ MC,
 )     (MC ? MCPlaneFromZ(Z) : DataPlaneFromZ(Z))
 

Definition at line 20 of file QuickGeom.h.

#define PlanesToFace  )     TMath::Abs(P - NearestFace(P))
 

Definition at line 50 of file QuickGeom.h.

#define PulserBox  )     PlaneBlock(P)
 

Definition at line 41 of file QuickGeom.h.

#define PulserLED  )     StripBlock(S)
 

Definition at line 46 of file QuickGeom.h.

#define S2L   0.04126
 

Definition at line 8 of file QuickGeom.h.

#define StpPlnFromTZ MC,
 )     (MC?MCStpPlnFromTZ(S):DataStpPlnFromTZ(S))
 

Definition at line 28 of file QuickGeom.h.

Referenced by CamEvd::FillEvent().

#define StripBlock  ) 
 

Value:

(!IsRealStrip(S) ? -1 : \
  (S<8 ? 0 : (S < 35 ? (S+2)/10 : (S<164 ? (S+4)/10 : (S+6)/10))))

Definition at line 44 of file QuickGeom.h.

Referenced by CamEvd::MakeChargePlot().

#define StripFromT MC,
 )     (MC ? MCStripFromT(T) : DataStripFromT(T))
 

Definition at line 11 of file QuickGeom.h.

Referenced by CamEvd::FillEvent().

#define TFromStrip MC,
 )     (MC ? MCTFromStrip(S) : DataTFromStrip(S))
 

Definition at line 12 of file QuickGeom.h.

#define TZFromStpPln MC,
 )     (MC?MCTZFromStpPln(S):DataTZFromStpPln(S))
 

Definition at line 29 of file QuickGeom.h.

#define UV ip   )     (((ip%2==0 && ip<250) || (ip%2!=0 && ip>=250))? 0: 1)
 

Definition at line 4 of file QuickGeom.h.

#define ZFromPlane MC,
 )     (MC ? MCZFromPlane(P) : DataZFromPlane(P))
 

Definition at line 21 of file QuickGeom.h.


Variable Documentation

const double DefLarge = 99e99 [static]
 

Definition at line 36 of file QuickGeom.h.

const double LogSafeZero = 10e-9 [static]
 

Definition at line 35 of file QuickGeom.h.


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