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

FidVol Namespace Reference


Enumerations

enum  EAirRegion { kBetweenScintAndSteel = 0, kDownstreamOfSteel = +1 }
enum  EPosition { kUpstream = -1, kMiddle = 0, kDownstream = +1 }

Functions

bool infid_near_z (SimFlag::SimFlag_t simflg, double z)
bool infid_far_z (SimFlag::SimFlag_t simflg, double z)
bool infid_near_circle_z (double x, double y)
bool infid_near_circle_beam (double x, double y, double z)
bool infid_far_coil (double x, double y)
bool infid_far_circle (double x, double y)
bool infid_far_octagon (double x, double y)
bool load_setter_script (std::string name)
bool know_setter (std::string funcname)
bool legal_indx (int indx, int size)
std::string getName ()
 Getters.
bool getNearFollowBeam ()
double getNearR ()
double getNearZData (int indx)
double getNearZMC (int indx)
double getBeamAngleRad ()
double getNearDyDz ()
double getNearX0Beam ()
double getNearY0Beam ()
double getNearX0Z ()
double getNearY0Z ()
bool getFarOctagon ()
bool getFarCoilCut ()
double getFarRinner ()
double getFarRouter ()
double getFarZData (int indx)
double getFarZMC (int indx)
double getEvtVtxZOffset ()
double getTrkVtxZOffset ()
double getShwVtxZOffset ()
void setName (std::string name)
 Setters.
void setNearFollowBeam (bool follow)
void setNearR (double r)
void setNearZData (int indx, double z)
void setNearZMC (int indx, double z)
void setBeamAngleRad (double angle)
void setNearDyDz (double dydz)
void setNearX0Beam (double x0)
void setNearY0Beam (double y0)
void setNearX0Z (double x0)
void setNearY0Z (double y0)
void setFarOctagon (bool octagon)
void setFarCoilCut (bool coilcut)
void setFarRinner (double r)
void setFarRouter (double r)
void setFarZData (int indx, double z)
void setFarZMC (int indx, double z)
void setEvtVtxZOffset (double zoff)
void setTrkVtxZOffset (double zoff)
void setShwVtxZOffset (double zoff)
double infid_near_radius (double x, double y, double z)
 public utility functions
bool MsgLevel (const char *stream, const char *level)
 Set the stream's message level.
const char * GetMsgLevel (const char *stream)
 Get the stream's current level.
const char * AirRegionAsString (EAirRegion region)
const char * PositionAsString (EPosition pos)
double infid_z_finder (VldContext vldc, int planenum, EAirRegion region=kBetweenScintAndSteel, EPosition pos=kMiddle, double eps=Munits::micrometer)
void find_z_cuts (int pup_near=17, int pdn_near=84, int pup1_far=8, int pdn1_far=240, int pup2_far=255, int pdn2_far=452, EAirRegion region=kBetweenScintAndSteel, EPosition pos=kMiddle, double eps=Munits::micrometer)

Variables

std::string gName = "Default"
bool gNearFollowBeam = true
double gNearR = 1.0
double gNearZData [2] = { 1.01080, 4.99059 }
double gNearZMC [2] = { 1.01080, 4.99059 }
double gBeamAngleRad = 3.34321 * TMath::DegToRad()
double gNearDyDz = TMath::Tan(-gBeamAngleRad)
double gNearX0Beam = 1.4828
double gNearY0Beam = 0.2384
double gNearX0Z = 1.4885
double gNearY0Z = 0.1397
bool gFarOctagon = false
bool gFarCoilCut = true
double gFarRinner = 0.5
double gFarRouter = TMath::Sqrt(14.0)
double gFarZData [4] = { 0.49080, 14.29300, 16.27110, 27.98270}
double gFarZMC [4] = { 0.47692, 14.27860, 16.26470, 27.97240}
double gEvtVtxZOffset = 0.0
double gTrkVtxZOffset = 0.0392
double gShwVtxZOffset = 0.0
const double r_sqrt2 = 7.07106781186547462e-01


Enumeration Type Documentation

enum EAirRegion
 

Enumeration values:
kBetweenScintAndSteel 
kDownstreamOfSteel 

Definition at line 29 of file infid_finder.h.

00029                   {
00030     kBetweenScintAndSteel =  0,
00031     kDownstreamOfSteel    = +1
00032   };

enum EPosition
 

Enumeration values:
kUpstream 
kMiddle 
kDownstream 

Definition at line 35 of file infid_finder.h.

00035                  {
00036     kUpstream   = -1,
00037     kMiddle     =  0,
00038     kDownstream = +1
00039   };


Function Documentation

const char * FidVol::AirRegionAsString EAirRegion  region  ) 
 

Definition at line 77 of file infid_finder.cxx.

References kBetweenScintAndSteel, and kDownstreamOfSteel.

Referenced by find_z_cuts().

00078 {
00079   switch (region) {
00080   case kBetweenScintAndSteel:  return "BetweenScintAndSteel";
00081   case kDownstreamOfSteel:     return "DownstreamOfSteel";
00082   default:                     return "UnknownAirRegion";
00083   }
00084 }

void FidVol::find_z_cuts int  pup_near = 17,
int  pdn_near = 84,
int  pup1_far = 8,
int  pdn1_far = 240,
int  pup2_far = 255,
int  pdn2_far = 452,
EAirRegion  region = kBetweenScintAndSteel,
EPosition  pos = kMiddle,
double  eps = Munits::micrometer
 

Definition at line 157 of file infid_finder.cxx.

References AirRegionAsString(), Form(), infid_z_finder(), kMiddle, and PositionAsString().

Referenced by NuCuts::FindZCuts().

00161 {
00162   VldTimeStamp now;
00163   VldContext vldc_near_data(Detector::kNear,SimFlag::kData,now);
00164   VldContext vldc_near_mc(Detector::kNear,SimFlag::kMC,now);
00165   VldContext vldc_far_data(Detector::kFar,SimFlag::kData,now);
00166   VldContext vldc_far_mc(Detector::kFar,SimFlag::kMC,now);
00167   std::cout << "FidVol::find_z_cuts() called" << std::endl;
00168   double nearZData[2], nearZMC[2];
00169   double farZData[4],  farZMC[4];
00170 
00171   nearZData[0] = FidVol::infid_z_finder(vldc_near_data,pup_near,region,pos,eps);
00172   nearZData[1] = FidVol::infid_z_finder(vldc_near_data,pdn_near,region,pos,eps);
00173 
00174   nearZMC[0]   = FidVol::infid_z_finder(vldc_near_mc,pup_near,region,pos,eps);
00175   nearZMC[1]   = FidVol::infid_z_finder(vldc_near_mc,pdn_near,region,pos,eps);
00176 
00177   farZData[0]  = FidVol::infid_z_finder(vldc_far_data,pup1_far,region,pos,eps);
00178   farZData[1]  = FidVol::infid_z_finder(vldc_far_data,pdn1_far,region,pos,eps);
00179   farZData[2]  = FidVol::infid_z_finder(vldc_far_data,pup2_far,region,pos,eps);
00180   farZData[3]  = FidVol::infid_z_finder(vldc_far_data,pdn2_far,region,pos,eps);
00181 
00182   farZMC[0]    = FidVol::infid_z_finder(vldc_far_mc,pup1_far,region,pos,eps);
00183   farZMC[1]    = FidVol::infid_z_finder(vldc_far_mc,pdn1_far,region,pos,eps);
00184   farZMC[2]    = FidVol::infid_z_finder(vldc_far_mc,pup2_far,region,pos,eps);
00185   farZMC[3]    = FidVol::infid_z_finder(vldc_far_mc,pdn2_far,region,pos,eps);
00186 
00187   // now format it for cut-and-paste purposes
00188   std::cout << "   // Chosen z is " << FidVol::PositionAsString(pos)
00189             << " of air gap " << FidVol::AirRegionAsString(region);
00190   if ( pos != kMiddle && eps != 0)
00191     std::cout << " eps = " << eps;
00192   std::cout << std::endl;
00193   
00194   std::cout << "   // Near:  relative to steel planes "
00195             << " [" << pup_near << "," << pdn_near << "]" 
00196             << std::endl;
00197   std::cout << "   setNearZData(0," << Form("%8.5f",nearZData[0]) << ");"
00198             << "   setNearZData(1," << Form("%8.5f",nearZData[1]) << ");"
00199             << std::endl;
00200   std::cout << "   setNearZMC(  0," << Form("%8.5f",nearZMC[0]) << ");"
00201             << "   setNearZMC(  1," << Form("%8.5f",nearZMC[1]) << ");"
00202             << std::endl;
00203 
00204 
00205   std::cout << "   // Far:  relative to steel planes "
00206             << " [" << pup1_far << "," << pdn1_far << "]" 
00207             << " [" << pup2_far << "," << pdn2_far << "]" 
00208             << std::endl;
00209   std::cout << "   setFarZData(0," << Form("%8.5f",farZData[0]) << "); "
00210             << "   setFarZData(1," << Form("%8.5f",farZData[1]) << ");"
00211             << std::endl
00212             << "   setFarZData(2," << Form("%8.5f",farZData[2]) << "); "
00213             << "   setFarZData(3," << Form("%8.5f",farZData[3]) << ");"
00214             << std::endl;
00215   std::cout << "   setFarZMC(  0," << Form("%8.5f",farZMC[0]) << "); "
00216             << "   setFarZMC(  1," << Form("%8.5f",farZMC[1]) << ");"
00217             << std::endl
00218             << "   setFarZMC(  2," << Form("%8.5f",farZMC[2]) << "); "
00219             << "   setFarZMC(  3," << Form("%8.5f",farZMC[3]) << ");"
00220             << std::endl;
00221 }

double FidVol::getBeamAngleRad  ) 
 

Definition at line 352 of file infid.cxx.

00352 { return gBeamAngleRad; }

double FidVol::getEvtVtxZOffset  ) 
 

Definition at line 385 of file infid.cxx.

Referenced by NuReco::GetRegion(), and infid().

00385 { return gEvtVtxZOffset; }

bool FidVol::getFarCoilCut  ) 
 

Definition at line 369 of file infid.cxx.

00369 { return gFarCoilCut; }

bool FidVol::getFarOctagon  ) 
 

Definition at line 367 of file infid.cxx.

00367 { return gFarOctagon; }

double FidVol::getFarRinner  ) 
 

Definition at line 371 of file infid.cxx.

Referenced by NuReco::GetRegion(), and NuCutImps::ChairSound::GetRegion().

00371 { return gFarRinner; }

double FidVol::getFarRouter  ) 
 

Definition at line 373 of file infid.cxx.

Referenced by NuReco::GetRegion(), and NuCutImps::ChairSound::GetRegion().

00373 { return gFarRouter; }

double FidVol::getFarZData int  indx  ) 
 

Definition at line 375 of file infid.cxx.

References gFarZData, and legal_indx().

Referenced by NuReco::GetRegion().

00376 { if (!legal_indx(indx,4)) assert(0); return gFarZData[indx]; }

double FidVol::getFarZMC int  indx  ) 
 

Definition at line 379 of file infid.cxx.

References gFarZMC, and legal_indx().

Referenced by NuReco::GetRegion(), and NuCutImps::ChairSound::GetRegion().

00380 { if (!legal_indx(indx,4)) assert(0); return gFarZMC[indx]; }

const char * FidVol::GetMsgLevel const char *  stream  ) 
 

Get the stream's current level.

Definition at line 38 of file infid_finder.cxx.

References MsgStream::GetLogLevel(), MsgService::GetStream(), MsgService::Instance(), Msg::LevelAsString(), and s().

Referenced by fidvol_toggle_msglvl().

00039 {
00040     MsgStream *s = MsgService::Instance()->GetStream(stream);
00041     if (!s) return Msg::LevelAsString(Msg::kInfo); // default
00042     Msg::LogLevel_t lvl = s->GetLogLevel();
00043     if ( lvl < 0 ) return Msg::LevelAsString(Msg::kInfo); // default
00044     return Msg::LevelAsString(lvl);
00045 }

std::string FidVol::getName  ) 
 

Getters.

Definition at line 337 of file infid.cxx.

Referenced by NuCut::InFidVol(), NuCut::InFidVolEvt(), NuCut::InFidVolTrueEvt(), and NuCut::SetFidVol().

00337 { return gName; }

double FidVol::getNearDyDz  ) 
 

Definition at line 355 of file infid.cxx.

00355 { return gNearDyDz; }

bool FidVol::getNearFollowBeam  ) 
 

Definition at line 340 of file infid.cxx.

00340 { return gNearFollowBeam; }

double FidVol::getNearR  ) 
 

Definition at line 342 of file infid.cxx.

00342 { return gNearR; }

double FidVol::getNearX0Beam  ) 
 

Definition at line 358 of file infid.cxx.

00358 { return gNearX0Beam; }

double FidVol::getNearX0Z  ) 
 

Definition at line 362 of file infid.cxx.

00362 { return gNearX0Z; }

double FidVol::getNearY0Beam  ) 
 

Definition at line 360 of file infid.cxx.

00360 { return gNearY0Beam; }

double FidVol::getNearY0Z  ) 
 

Definition at line 364 of file infid.cxx.

00364 { return gNearY0Z; }

double FidVol::getNearZData int  indx  ) 
 

Definition at line 344 of file infid.cxx.

References gNearZData, and legal_indx().

00345 { if (!legal_indx(indx,2)) assert(0); return gNearZData[indx]; }

double FidVol::getNearZMC int  indx  ) 
 

Definition at line 348 of file infid.cxx.

References gNearZMC, and legal_indx().

00349 { if (!legal_indx(indx,2)) assert(0); return gNearZMC[indx]; }

double FidVol::getShwVtxZOffset  ) 
 

Definition at line 389 of file infid.cxx.

Referenced by infid().

00389 { return gShwVtxZOffset; }

double FidVol::getTrkVtxZOffset  ) 
 

Definition at line 387 of file infid.cxx.

Referenced by NuReco::GetRegion(), NuCutImps::ChairSound::GetRegion(), and infid().

00387 { return gTrkVtxZOffset; }

bool FidVol::infid_far_circle double  x,
double  y
 

Definition at line 314 of file infid.cxx.

References gFarRouter.

Referenced by infid().

00315 {
00316   double r2 = x*x + y*y;
00317   if ( r2 > gFarRouter*gFarRouter ) return false;
00318   return true;
00319 }

bool FidVol::infid_far_coil double  x,
double  y
 

Definition at line 307 of file infid.cxx.

References gFarRinner.

Referenced by infid().

00308 {
00309   double r2 = x*x + y*y;
00310   if ( r2 < gFarRinner*gFarRinner ) return false;
00311   return true;
00312 }

bool FidVol::infid_far_octagon double  x,
double  y
 

Definition at line 321 of file infid.cxx.

Referenced by infid().

00322 {
00323   if ( TMath::Abs(x) > gFarRouter ) return false;
00324   if ( TMath::Abs(y) > gFarRouter ) return false;
00325 
00326   double u = (  x + y ) * r_sqrt2;
00327   double v = ( -x + y ) * r_sqrt2;
00328 
00329   if ( TMath::Abs(u) > gFarRouter ) return false;
00330   if ( TMath::Abs(v) > gFarRouter ) return false;
00331 
00332   return true;
00333 }

bool FidVol::infid_far_z SimFlag::SimFlag_t  simflg,
double  z
 

Definition at line 265 of file infid.cxx.

Referenced by infid().

00266 {
00267   double* zcuts = gFarZData;
00268   if ( SimFlag::kMC == simflg ) zcuts = gFarZMC;
00269   if ( z < zcuts[0] ) return false;
00270   if ( z > zcuts[3] ) return false;
00271   if ( z > zcuts[1] && z < zcuts[2] ) return false;
00272   return true;
00273 }

bool FidVol::infid_near_circle_beam double  x,
double  y,
double  z
 

Definition at line 298 of file infid.cxx.

References gNearR, and gNearY0Beam.

Referenced by infid().

00299 {
00300   double xx = x - gNearX0Beam;
00301   double yy = y - gNearY0Beam - z*gNearDyDz;
00302   double r2 = xx*xx + yy*yy;
00303   if ( r2 > gNearR*gNearR ) return false;
00304   return true;
00305 }

bool FidVol::infid_near_circle_z double  x,
double  y
 

Definition at line 289 of file infid.cxx.

References gNearR.

Referenced by infid().

00290 {
00291   double xx = x - gNearX0Z;
00292   double yy = y - gNearY0Z;
00293   double r2 = xx*xx + yy*yy;
00294   if ( r2 > gNearR*gNearR ) return false;
00295   return true;
00296 }

double FidVol::infid_near_radius double  x,
double  y,
double  z
 

public utility functions

Definition at line 275 of file infid.cxx.

References gNearY0Beam.

00276 {
00277   double xx = x, yy = y;
00278   if ( gNearFollowBeam ) {
00279     xx = xx - gNearX0Beam;
00280     yy = yy - gNearY0Beam - z*gNearDyDz;
00281   } else {
00282     xx = xx - gNearX0Z;
00283     yy = yy - gNearY0Z;
00284   }
00285   double r2 = xx*xx + yy*yy;
00286   return TMath::Sqrt(r2);
00287 }

bool FidVol::infid_near_z SimFlag::SimFlag_t  simflg,
double  z
 

Definition at line 256 of file infid.cxx.

Referenced by infid().

00257 {
00258   double* zcuts = gNearZData;
00259   if ( SimFlag::kMC == simflg ) zcuts = gNearZMC;
00260   if ( z < zcuts[0] ) return false;
00261   if ( z > zcuts[1] ) return false;
00262   return true;
00263 }

double FidVol::infid_z_finder VldContext  vldc,
int  planenum,
EAirRegion  region = kBetweenScintAndSteel,
EPosition  pos = kMiddle,
double  eps = Munits::micrometer
 

Definition at line 96 of file infid_finder.cxx.

References fidvol_find_ugliplnhandle(), fidvol_toggle_msglvl(), VldContext::GetDetector(), UgliPlnHandle::GetHalfThickness(), UgliGeomHandle::GetPlnHandleVector(), UgliPlnHandle::GetZ0(), UgliPlnHandle::IsValid(), PlexPlaneId::IsValid(), kDownstream, kDownstreamOfSteel, kMiddle, and kUpstream.

Referenced by find_z_cuts().

00098 {
00099 
00100   fidvol_toggle_msglvl(); // quiet things down
00101   //std::cout << "FidVol::infid_z_finder for " << vldc.AsString() << std::endl;
00102 
00103   UgliGeomHandle ugh(vldc);
00104   PlexPlaneId plnid_steel(vldc.GetDetector(),planenum,true);
00105   // kBetweenScintAndSteel means scint/steel are same pair and scint is upstream
00106   // kDownstreamOfSteel means scint
00107   int dir = -1;
00108   if ( kDownstreamOfSteel == region ) dir = +1;
00109   PlexPlaneId plnid_adjoin = plnid_steel.GetAdjoin(dir);
00110   if ( ! plnid_steel.IsValid() || ! plnid_adjoin.IsValid() ) {
00111     std::cout << "HEY! invalid plane " << planenum
00112               << " steel " << plnid_steel << " adjoin " << plnid_adjoin
00113               << std::endl;
00114     fidvol_toggle_msglvl(); // restore message levels
00115     return -9999;
00116   }
00117   
00118   std::vector<UgliPlnHandle> uphv = ugh.GetPlnHandleVector();
00119   UgliPlnHandle uph_steel  = fidvol_find_ugliplnhandle(plnid_steel,uphv);
00120   UgliPlnHandle uph_adjoin = fidvol_find_ugliplnhandle(plnid_adjoin,uphv);
00121   if ( ! uph_steel.IsValid()  || ! uph_adjoin.IsValid() ) {
00122     std::cout << "HEY! invalid UgliPlnHandle: steel "
00123               << (uph_steel.IsValid()?"okay":"invalid")
00124               << " adjoin "
00125               << (uph_adjoin.IsValid()?"okay":"invalid")
00126               << std::endl;
00127     fidvol_toggle_msglvl(); // restore message levels
00128     return -9999;
00129   }
00130 
00131   double zup, zdn;
00132   if ( kDownstreamOfSteel == region ) {
00133     zup = uph_steel.GetZ0()  + uph_steel.GetHalfThickness();
00134     zdn = uph_adjoin.GetZ0() - uph_adjoin.GetHalfThickness();
00135   } else {
00136     zup = uph_adjoin.GetZ0() + uph_adjoin.GetHalfThickness();
00137     zdn = uph_steel.GetZ0()  - uph_steel.GetHalfThickness();
00138   }
00139 
00140   double z;
00141   switch ( pos ) {
00142   case kUpstream:    z = zup + eps;     break;
00143   case kMiddle:      z = 0.5*(zup+zdn); break;
00144   case kDownstream:  z = zup - eps;     break;
00145   default:
00146     std::cout << "HEY: pos arg isn't legal " << (int)pos << std::endl;
00147     z = -9999;
00148   }
00149 
00150   //std::cout << " planeum " << planenum << " blah, blah  chooose z = " << z << std::endl;
00151 
00152   fidvol_toggle_msglvl(); // restore message levels
00153   return z;
00154 
00155 }

bool FidVol::know_setter std::string  funcname  ) 
 

Definition at line 184 of file infid.cxx.

Referenced by choose_infid_set().

00185 {
00186   // determine if we know how to call this function
00187   TInterpreter* interp = gROOT->GetInterpreter();
00188   void* func = interp->GetInterfaceMethod(0,funcname.c_str(),"");
00189   return ( (func) ? true : false );
00190 }

bool legal_indx int  indx,
int  size
 

Definition at line 74 of file infid.cxx.

Referenced by getFarZData(), getFarZMC(), getNearZData(), getNearZMC(), setFarZData(), setFarZMC(), setNearZData(), and setNearZMC().

00074 { return (indx>=0 && indx<size); }

bool FidVol::load_setter_script std::string  name  ) 
 

Definition at line 161 of file infid.cxx.

References gSystem().

Referenced by choose_infid_set().

00162 {
00163   const char* paths = 
00164     ".:~:$SRT_PRIVATE_CONTEXT/DataUtil:$SRT_PUBLIC_CONTEXT/DataUtil";
00165 
00166   if ( script.find(".C") == std::string::npos ) script += ".C";
00167   const char* filename = gSystem->Which(paths,script.c_str());
00168   if ( filename ) {
00169     //std::cout << "found " << filename << std::endl;
00170     int errcode = gROOT->LoadMacro(filename);
00171     // gSystem->Which() returns allocated space, give it back when done
00172     delete [] filename;
00173     if ( errcode == 0 ) {
00174       //std::cout << "load macro" << filename << std::endl;
00175       return true;
00176     } else {
00177       std::cout << "failed loading " << script 
00178                 << ", status = " << filename << std::endl;
00179     }
00180   }
00181   return false;
00182 }

bool FidVol::MsgLevel const char *  stream,
const char *  level
 

Set the stream's message level.

Definition at line 28 of file infid_finder.cxx.

References Msg::GetLevelCode(), MsgService::GetStream(), MsgService::Instance(), s(), and MsgStream::SetLogLevel().

Referenced by fidvol_toggle_msglvl().

00029 {
00030     MsgStream *s = MsgService::Instance()->GetStream(stream);
00031     if (!s) return false;
00032     Msg::LogLevel_t lvl = Msg::GetLevelCode(level);
00033     if ( lvl < 0 ) return false;
00034     s->SetLogLevel(lvl);
00035     return true;
00036 }

const char * FidVol::PositionAsString EPosition  pos  ) 
 

Definition at line 86 of file infid_finder.cxx.

References kDownstream, kMiddle, and kUpstream.

Referenced by find_z_cuts().

00087 {
00088   switch (pos) {
00089   case kUpstream:   return "upstream";
00090   case kMiddle:     return "middle";
00091   case kDownstream: return "downstream";
00092   default:          return "UnknownPosition";
00093   }
00094 }

void FidVol::setBeamAngleRad double  angle  ) 
 

Definition at line 353 of file infid.cxx.

References gBeamAngleRad, and gNearDyDz.

00354 { gBeamAngleRad = angle; gNearDyDz = TMath::Tan(-angle); }

void FidVol::setEvtVtxZOffset double  zoff  ) 
 

Definition at line 386 of file infid.cxx.

References gEvtVtxZOffset.

00386 { gEvtVtxZOffset = zoff; }

void FidVol::setFarCoilCut bool  coilcut  ) 
 

Definition at line 370 of file infid.cxx.

References gFarCoilCut.

00370 { gFarCoilCut = coilcut; }

void FidVol::setFarOctagon bool  octagon  ) 
 

Definition at line 368 of file infid.cxx.

References gFarOctagon.

00368 { gFarOctagon = octagon; }

void FidVol::setFarRinner double  r  ) 
 

Definition at line 372 of file infid.cxx.

References gFarRinner.

00372 { gFarRinner = r; }

void FidVol::setFarRouter double  r  ) 
 

Definition at line 374 of file infid.cxx.

References gFarRouter.

00374 { gFarRouter = r; }

void FidVol::setFarZData int  indx,
double  z
 

Definition at line 377 of file infid.cxx.

References gFarZData, and legal_indx().

00378 { if (!legal_indx(indx,4)) assert(0); gFarZData[indx] = z; }

void FidVol::setFarZMC int  indx,
double  z
 

Definition at line 381 of file infid.cxx.

References gFarZMC, and legal_indx().

00382 { if (!legal_indx(indx,4)) assert(0); gFarZMC[indx] = z; }

void FidVol::setName std::string  name  ) 
 

Setters.

Definition at line 338 of file infid.cxx.

References gName.

00338 { gName = name; }

void FidVol::setNearDyDz double  dydz  ) 
 

Definition at line 356 of file infid.cxx.

References gBeamAngleRad, and gNearDyDz.

00357 { gNearDyDz = dydz; gBeamAngleRad = -TMath::ATan(dydz); }

void FidVol::setNearFollowBeam bool  follow  ) 
 

Definition at line 341 of file infid.cxx.

References gNearFollowBeam.

00341 { gNearFollowBeam = follow; }

void FidVol::setNearR double  r  ) 
 

Definition at line 343 of file infid.cxx.

References gNearR.

00343 { gNearR = r; }

void FidVol::setNearX0Beam double  x0  ) 
 

Definition at line 359 of file infid.cxx.

References gNearX0Beam.

00359 { gNearX0Beam = x0; }

void FidVol::setNearX0Z double  x0  ) 
 

Definition at line 363 of file infid.cxx.

References gNearX0Z.

00363 { gNearX0Z = x0; }

void FidVol::setNearY0Beam double  y0  ) 
 

Definition at line 361 of file infid.cxx.

References gNearY0Beam.

00361 { gNearY0Beam = y0; }

void FidVol::setNearY0Z double  y0  ) 
 

Definition at line 365 of file infid.cxx.

References gNearY0Z.

00365 { gNearY0Z = y0; }

void FidVol::setNearZData int  indx,
double  z
 

Definition at line 346 of file infid.cxx.

References gNearZData, and legal_indx().

00347 { if (!legal_indx(indx,2)) assert(0); gNearZData[indx] = z; }

void FidVol::setNearZMC int  indx,
double  z
 

Definition at line 350 of file infid.cxx.

References gNearZMC, and legal_indx().

00351 { if (!legal_indx(indx,2)) assert(0); gNearZMC[indx] = z; }

void FidVol::setShwVtxZOffset double  zoff  ) 
 

Definition at line 390 of file infid.cxx.

References gShwVtxZOffset.

00390 { gShwVtxZOffset = zoff; }

void FidVol::setTrkVtxZOffset double  zoff  ) 
 

Definition at line 388 of file infid.cxx.

References gTrkVtxZOffset.

00388 { gTrkVtxZOffset = zoff; }


Variable Documentation

double FidVol::gBeamAngleRad = 3.34321 * TMath::DegToRad() [static]
 

Definition at line 30 of file infid.cxx.

Referenced by setBeamAngleRad(), and setNearDyDz().

double FidVol::gEvtVtxZOffset = 0.0 [static]
 

Definition at line 54 of file infid.cxx.

Referenced by setEvtVtxZOffset().

bool FidVol::gFarCoilCut = true [static]
 

Definition at line 41 of file infid.cxx.

Referenced by setFarCoilCut().

bool FidVol::gFarOctagon = false [static]
 

Definition at line 40 of file infid.cxx.

Referenced by setFarOctagon().

double FidVol::gFarRinner = 0.5 [static]
 

Definition at line 42 of file infid.cxx.

Referenced by infid_far_coil(), and setFarRinner().

double FidVol::gFarRouter = TMath::Sqrt(14.0) [static]
 

Definition at line 43 of file infid.cxx.

Referenced by infid_far_circle(), and setFarRouter().

double FidVol::gFarZData[4] = { 0.49080, 14.29300, 16.27110, 27.98270} [static]
 

Definition at line 46 of file infid.cxx.

Referenced by getFarZData(), and setFarZData().

double FidVol::gFarZMC[4] = { 0.47692, 14.27860, 16.26470, 27.97240} [static]
 

Definition at line 47 of file infid.cxx.

Referenced by getFarZMC(), and setFarZMC().

std::string FidVol::gName = "Default" [static]
 

Definition at line 19 of file infid.cxx.

Referenced by setName().

double FidVol::gNearDyDz = TMath::Tan(-gBeamAngleRad) [static]
 

Definition at line 31 of file infid.cxx.

Referenced by setBeamAngleRad(), and setNearDyDz().

bool FidVol::gNearFollowBeam = true [static]
 

Definition at line 22 of file infid.cxx.

Referenced by setNearFollowBeam().

double FidVol::gNearR = 1.0 [static]
 

Definition at line 23 of file infid.cxx.

Referenced by infid_near_circle_beam(), infid_near_circle_z(), and setNearR().

double FidVol::gNearX0Beam = 1.4828 [static]
 

Definition at line 32 of file infid.cxx.

Referenced by setNearX0Beam().

double FidVol::gNearX0Z = 1.4885 [static]
 

Definition at line 36 of file infid.cxx.

Referenced by setNearX0Z().

double FidVol::gNearY0Beam = 0.2384 [static]
 

Definition at line 33 of file infid.cxx.

Referenced by infid_near_circle_beam(), infid_near_radius(), and setNearY0Beam().

double FidVol::gNearY0Z = 0.1397 [static]
 

Definition at line 37 of file infid.cxx.

Referenced by setNearY0Z().

double FidVol::gNearZData[2] = { 1.01080, 4.99059 } [static]
 

Definition at line 26 of file infid.cxx.

Referenced by getNearZData(), and setNearZData().

double FidVol::gNearZMC[2] = { 1.01080, 4.99059 } [static]
 

Definition at line 27 of file infid.cxx.

Referenced by getNearZMC(), and setNearZMC().

double FidVol::gShwVtxZOffset = 0.0 [static]
 

Definition at line 56 of file infid.cxx.

Referenced by setShwVtxZOffset().

double FidVol::gTrkVtxZOffset = 0.0392 [static]
 

Definition at line 55 of file infid.cxx.

Referenced by setTrkVtxZOffset().

const double FidVol::r_sqrt2 = 7.07106781186547462e-01
 

Definition at line 60 of file infid.cxx.


Generated on Sat Nov 21 22:52:49 2009 for loon by  doxygen 1.3.9.1