Main Page   Modules   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

MUIOO Namespace Reference


Typedefs

typedef boost::tuple< const
UShort_t, const UShort_t,
const UShort_t, const UShort_t,
const UShort_t > 
object_locator
typedef boost::tuple< const
UShort_t, const UShort_t,
const UShort_t, const UShort_t > 
panel_orient_locator
typedef boost::tuple< const
UShort_t, const UShort_t,
const UShort_t > 
panel_locator
typedef boost::tuple< const
UShort_t, const UShort_t > 
plane_locator

Enumerations

enum  Verbosity { NONE = 0, SOME = 1, ALOT = 2, MAX = 3 }
enum  ArmNumber { South, North }

Functions

void TRACE (std::string message)
void TRACE (std::string message, float)
void PRINT (std::ostream &os=std::cout, std::string message="")
double SQUARE (double x)
double rapidity (double px, double py, double pz, double mass)
double pt (double px, double py)

Variables

const int MAX_ARM = 2
const int MAX_PLANE = 5
const int MAX_PANEL = 6
const int MAX_ORIENTATION = 2
const int MAX_TWOPACK_PANEL = 64
const short kROCsPerFEM = 20
const short kWordsPerROC = 6
const short kChannelsPerWord = 16
const short kFEMsTotal = 4
const short kROCsTotal = kFEMsTotal*kROCsPerFEM
const short kWordsTotal = kROCsTotal*kWordsPerROC
const short kChannelsTotal = kWordsTotal*kChannelsPerWord
const short kWordsPerFEM = kROCsPerFEM*kWordsPerROC
const double RAD_TO_DEG = 180.0/M_PI
const double DEG_TO_RAD = M_PI/180.0
const double MASS_MUON = 0.105658388214
const double MASS_MUON_SQUARE = 0.011163695
const int NumberOfArms = 2


Typedef Documentation

typedef boost::tuple<const UShort_t, const UShort_t, const UShort_t, const UShort_t, const UShort_t> object_locator
 

Define a name for a boost tuple for (arm, plane, panel, orienation, index)

Definition at line 75 of file MUIOO.h.

typedef boost::tuple<const UShort_t, const UShort_t, const UShort_t> panel_locator
 

Define a name for a boost tuple for (arm, plane, panel)

Definition at line 88 of file MUIOO.h.

typedef boost::tuple<const UShort_t, const UShort_t, const UShort_t, const UShort_t> panel_orient_locator
 

Define a name for a boost tuple for (arm, plane, panel, orienation)

Definition at line 82 of file MUIOO.h.

typedef boost::tuple<const UShort_t, const UShort_t> plane_locator
 

Define a name for a boost tuple for (arm, plane)

Definition at line 94 of file MUIOO.h.


Enumeration Type Documentation

enum ArmNumber
 

Enumeration values:
South 
North 

Definition at line 57 of file MUIOO.h.

00057 {South,North};

enum Verbosity
 

Enumeration values:
NONE 
SOME 
ALOT 
MAX 

Definition at line 23 of file MUIOO.h.

00023 {NONE=0,SOME=1,ALOT=2,MAX=3};


Function Documentation

void PRINT std::ostream &    os = std::cout,
std::string    message = ""
 

Definition at line 10 of file MUIOO.cxx.

Referenced by mMuiEvalFramework::eval_cluster, mMuiEvalFramework::eval_unpacker, mMuiEvalO::event, TMuiRoadO_v1::print, TMuiPseudoBLTO_v1::print, TMuiMCHitO_v1::print, TMuiHitO_v1::print, TMuiClusterO_v2::print, TMuiClusterO_v1::print, TMui1DRoadO_v1::print, mMuiEvalFramework::print_cluster, and TMuiRoadFinder::print_roads.

00010                                                   {
00011   const int max_col=80;
00012   if(!message.size()) {
00013     os << std::string(max_col,'-') << std::endl;
00014     return;
00015   }
00016   int fill = max_col - message.size() - 2;
00017   int pre = static_cast<int>(std::floor(fill/2.0));
00018   int post = fill - pre;
00019   os << std::string(pre,'-') << " ";
00020   os << message << " ";
00021   os << std::string(post,'-') << std::endl;  
00022 }

double pt double    px,
double    py
 

Calculate Pt

Definition at line 32 of file MUIOO.cxx.

Referenced by mMuiEvalO::fill_eval_res.

00032                                      {
00033   return std::sqrt(px*px + py*py);
00034 }

double rapidity double    px,
double    py,
double    pz,
double    mass
 

Calculate rapidity

Definition at line 26 of file MUIOO.cxx.

00026                                                                    {
00027   double ptot = std::sqrt(px*px + py*py + pz*pz);
00028   double E = std::sqrt(ptot*ptot + mass*mass);
00029   return 0.5*std::log((E+pz)/(E-pz));
00030 }

double SQUARE double    x
 

Definition at line 24 of file MUIOO.cxx.

Referenced by TMuiRoadFinder::Road::get_r_at_z, TMuiRoadFinder::Road::get_theta, and TMuiRoadFinder::point_less_ftor::operator().

00024 { return x*x; }

void TRACE std::string    message,
float   
 

Definition at line 7 of file MUIOO.cxx.

00007                                              {
00008   std::cout << "TRACE: " << message << "\t" << val << std::endl;
00009 }

void TRACE std::string    message
 

Definition at line 3 of file MUIOO.cxx.

Referenced by mMuiFastRoadFinder::calc_symset, mMuiResponse::event, mMuiRawUnpack::event, mMuiFindRoad::event, mMuiFastRoadFinder::event, mMuiEvalO::event, mMuiEvalFramework::event, mMuiClusterFinder::event, mMuiSlowSim::fill_new_mctrk, mMuiFastRoadFinder::find_tracks, mMuiFindRoad::fit_roads, TMuiHVMask::get_effic_twopack, TMuiRoadFinder::initialize_evaluation, TMuiRoadFinder::Road::initialize_evaluation, mMuiEvalFramework::mMuiEvalFramework, mMuiFindRoad::mMuiFindRoad, mMuiResponse::mMuiResponse, and mMuiRoadFinder1::set_interface_ptrs.

00003                                   {
00004   std::cout << "TRACE: " << message << std::endl;
00005 }


Variable Documentation

const double DEG_TO_RAD = M_PI/180.0
 

Definition at line 48 of file MUIOO.h.

const short kChannelsPerWord = 16
 

Definition at line 33 of file MUIOO.h.

const short kChannelsTotal = kWordsTotal*kChannelsPerWord
 

Definition at line 40 of file MUIOO.h.

const short kFEMsTotal = 4
 

Definition at line 34 of file MUIOO.h.

const short kROCsPerFEM = 20
 

Definition at line 31 of file MUIOO.h.

const short kROCsTotal = kFEMsTotal*kROCsPerFEM
 

Definition at line 36 of file MUIOO.h.

const short kWordsPerFEM = kROCsPerFEM*kWordsPerROC
 

Definition at line 42 of file MUIOO.h.

const short kWordsPerROC = 6
 

Definition at line 32 of file MUIOO.h.

const short kWordsTotal = kROCsTotal*kWordsPerROC
 

Definition at line 38 of file MUIOO.h.

const double MASS_MUON = 0.105658388214
 

Definition at line 49 of file MUIOO.h.

const double MASS_MUON_SQUARE = 0.011163695
 

Definition at line 50 of file MUIOO.h.

const int MAX_ARM = 2
 

Definition at line 26 of file MUIOO.h.

const int MAX_ORIENTATION = 2
 

Definition at line 29 of file MUIOO.h.

Referenced by TMuiKeyGen::get_hash_key.

const int MAX_PANEL = 6
 

Definition at line 28 of file MUIOO.h.

Referenced by TMuiKeyGen::get_hash_key.

const int MAX_PLANE = 5
 

Definition at line 27 of file MUIOO.h.

Referenced by TMuiKeyGen::get_hash_key.

const int MAX_TWOPACK_PANEL = 64
 

Definition at line 30 of file MUIOO.h.

const int NumberOfArms = 2
 

Definition at line 56 of file MUIOO.h.

const double RAD_TO_DEG = 180.0/M_PI
 

Definition at line 47 of file MUIOO.h.


MUIOO: PHENIX Muon Identifier Analysis Framework. Documentation by doxygen
Last modified: