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

TMuiMCHitO_v1 Class Reference

#include <TMuiMCHitO_v1.h>

Inheritance diagram for TMuiMCHitO_v1:

TMuiMCHitO List of all members.

Public Methods

 TMuiMCHitO_v1 ()
 TMuiMCHitO_v1 (const Key &key, UShort_t arm, UShort_t plane, UShort_t index)
 TMuiMCHitO_v1 (const TMuiMCHitO *base_ptr)
 TMuiMCHitO_v1 (const TMuiMCHitO &base_ref)
virtual ~TMuiMCHitO_v1 ()
void add_twopack (UShort_t orient, UShort_t panel, UShort_t twopack_index)
void clear_twopack_list ()
size_t get_n_twopack () const
const twopack_listget_twopack_list () const
twopack_listget_mutable_twopack_list ()
Int_t get_track_id () const
Float_t get_x () const
Float_t get_y () const
Float_t get_z () const
PHPoint get_coord () const
Float_t get_px () const
Float_t get_py () const
Float_t get_pz () const
Short_t get_pid () const
UShort_t get_file_key () const
void set_track_id (Int_t track_id)
void set_x (Float_t x)
void set_y (Float_t y)
void set_z (Float_t z)
void set_px (Float_t px)
void set_py (Float_t py)
void set_pz (Float_t pz)
void set_pid (Short_t pid)
void set_file_key (UShort_t file_key)
UShort_t get_arm () const
UShort_t get_plane () const
UShort_t get_index () const
void set_arm (UShort_t arm)
void set_plane (UShort_t plane)
void set_index (UShort_t index)
void print (std::ostream &os=std::cout) const

Private Attributes

UShort_t _arm
UShort_t _plane
UShort_t _index
Int_t _track_id
Float_t _x
Float_t _y
Float_t _z
Float_t _px
Float_t _py
Float_t _pz
Short_t _pid
UShort_t _file_key
twopack_list _twopack_list

Constructor & Destructor Documentation

TMuiMCHitO_v1  
 

TMuiMCHitO_v1 const Key &    key,
UShort_t    arm,
UShort_t    plane,
UShort_t    index
 

Definition at line 27 of file TMuiMCHitO_v1.cxx.

00030                                              : 
00031   TMuiMCHitO(key), 
00032   _arm(arm), 
00033   _plane(plane),
00034   _index(index),
00035   _track_id(0),
00036   _x(0),
00037   _y(0),
00038   _z(0),
00039   _px(0),
00040   _py(0),
00041   _pz(0),
00042   _pid(0),
00043   _file_key(0)
00044 {
00045   // nothing being done right now
00046 }

TMuiMCHitO_v1 const TMuiMCHitO   base_ptr
 

Definition at line 48 of file TMuiMCHitO_v1.cxx.

00048                                                        : 
00049   TMuiMCHitO(*base_ptr),
00050   _arm(base_ptr->get_arm()),
00051   _plane(base_ptr->get_plane()),
00052   _index(base_ptr->get_index()),
00053   _track_id(base_ptr->get_track_id()),
00054   _x(base_ptr->get_x()),
00055   _y(base_ptr->get_y()),
00056   _z(base_ptr->get_z()),
00057   _px(base_ptr->get_px()),
00058   _py(base_ptr->get_py()),
00059   _pz(base_ptr->get_pz()),
00060   _pid(base_ptr->get_pid()),
00061   _file_key(base_ptr->get_file_key()),
00062   _twopack_list(*(base_ptr->get_twopack_list()))  
00063 {
00064 }

TMuiMCHitO_v1 const TMuiMCHitO   base_ref
 

Definition at line 66 of file TMuiMCHitO_v1.cxx.

00066                                                        : 
00067   TMuiMCHitO(base_ref),
00068   _arm(base_ref.get_arm()),
00069   _plane(base_ref.get_plane()),
00070   _index(base_ref.get_index()),
00071   _track_id(base_ref.get_track_id()),
00072   _x(base_ref.get_x()),
00073   _y(base_ref.get_y()),
00074   _z(base_ref.get_z()),
00075   _px(base_ref.get_px()),
00076   _py(base_ref.get_py()),
00077   _pz(base_ref.get_pz()),
00078   _pid(base_ref.get_pid()),
00079   _file_key(base_ref.get_file_key()),
00080   _twopack_list(*(base_ref.get_twopack_list()))  
00081 {
00082 
00083 }

virtual ~TMuiMCHitO_v1   [inline, virtual]
 

Definition at line 27 of file TMuiMCHitO_v1.h.

00027 {;}


Member Function Documentation

void add_twopack UShort_t    orient,
UShort_t    panel,
UShort_t    twopack_index
[inline, virtual]
 

construct and add a new strip with specified parameters

Reimplemented from TMuiMCHitO.

Definition at line 29 of file TMuiMCHitO_v1.h.

References _twopack_list.

00029                                                                            {
00030     _twopack_list.push_back(TMuiMCTwoPack(orient, panel,twopack_index));
00031   }  

void clear_twopack_list   [inline, virtual]
 

clear twopack list

Reimplemented from TMuiMCHitO.

Definition at line 33 of file TMuiMCHitO_v1.h.

References _twopack_list.

00033                            {
00034     _twopack_list.clear();
00035   }                          

UShort_t get_arm   const [inline, virtual]
 

Get arm number for this hit

Reimplemented from TMuiMCHitO.

Definition at line 83 of file TMuiMCHitO_v1.h.

References _arm.

00083 {return _arm;}

PHPoint get_coord   const [inline, virtual]
 

Get PHPoint(x,y,z) of this hit

Reimplemented from TMuiMCHitO.

Definition at line 53 of file TMuiMCHitO_v1.h.

References _x, _y, and _z.

00053 { return PHPoint(_x,_y,_z); }

UShort_t get_file_key   const [inline, virtual]
 

Get file key, which is used for embeding

Reimplemented from TMuiMCHitO.

Definition at line 63 of file TMuiMCHitO_v1.h.

References _file_key.

00063 { return _file_key;}

UShort_t get_index   const [inline, virtual]
 

Get hit index associated with this hit

Reimplemented from TMuiMCHitO.

Definition at line 87 of file TMuiMCHitO_v1.h.

References _index.

00087 {return _index;}

twopack_list* get_mutable_twopack_list   [inline, virtual]
 

immutable access to twopack list

Reimplemented from TMuiMCHitO.

Definition at line 43 of file TMuiMCHitO_v1.h.

References _twopack_list, and TMuiMCHitO::twopack_list.

00043 {return &_twopack_list;}

size_t get_n_twopack   const [inline, virtual]
 

number of twopacks associated with this MChit

Reimplemented from TMuiMCHitO.

Definition at line 37 of file TMuiMCHitO_v1.h.

References _twopack_list.

00037                                {
00038     return _twopack_list.size();
00039   }

Short_t get_pid   const [inline, virtual]
 

Get particle id of the hit

Reimplemented from TMuiMCHitO.

Definition at line 61 of file TMuiMCHitO_v1.h.

References _pid.

00061 { return _pid;}

UShort_t get_plane   const [inline, virtual]
 

Get muid plane number for this hit

Reimplemented from TMuiMCHitO.

Definition at line 85 of file TMuiMCHitO_v1.h.

References _plane.

00085 {return _plane;}

Float_t get_px   const [inline, virtual]
 

Get x-momentum of track at this hit position

Reimplemented from TMuiMCHitO.

Definition at line 55 of file TMuiMCHitO_v1.h.

References _px.

00055 {return _px;}

Float_t get_py   const [inline, virtual]
 

Get y-momentum of track at this hit position

Reimplemented from TMuiMCHitO.

Definition at line 57 of file TMuiMCHitO_v1.h.

References _py.

00057 {return _py;}

Float_t get_pz   const [inline, virtual]
 

Get z-momentum of track at this hit position

Reimplemented from TMuiMCHitO.

Definition at line 59 of file TMuiMCHitO_v1.h.

References _pz.

00059 {return _pz;}

Int_t get_track_id   const [inline, virtual]
 

Get the PISA track number associated with this track

Reimplemented from TMuiMCHitO.

Definition at line 45 of file TMuiMCHitO_v1.h.

References _track_id.

00045 {return _track_id;}

const twopack_list* get_twopack_list   const [inline, virtual]
 

immutable access to twopack list

Reimplemented from TMuiMCHitO.

Definition at line 41 of file TMuiMCHitO_v1.h.

References _twopack_list, and TMuiMCHitO::twopack_list.

Referenced by print.

00041 {return &_twopack_list;}

Float_t get_x   const [inline, virtual]
 

Get x-position of track for this hit

Reimplemented from TMuiMCHitO.

Definition at line 47 of file TMuiMCHitO_v1.h.

References _x.

00047 {return _x;}

Float_t get_y   const [inline, virtual]
 

Get y-position of track for this hit

Reimplemented from TMuiMCHitO.

Definition at line 49 of file TMuiMCHitO_v1.h.

References _y.

00049 {return _y;}

Float_t get_z   const [inline, virtual]
 

Get z-position of track for this hit

Reimplemented from TMuiMCHitO.

Definition at line 51 of file TMuiMCHitO_v1.h.

References _z.

00051 {return _z;}

void print std::ostream &    os = std::cout const [virtual]
 

Set Charge associated with this strip

Reimplemented from TMuiMCHitO.

Definition at line 85 of file TMuiMCHitO_v1.cxx.

References _arm, _file_key, _index, _pid, _plane, _px, _py, _pz, _track_id, _x, _y, _z, get_twopack_list, MUIOO::PRINT, TMuiMCHitO::twopack_iterator, and TMuiMCHitO::twopack_list.

00085                                               {                
00086 
00087   MUIOO::PRINT(os,GetName());
00088   os << " arm: " << _arm
00089      << " plane: " << _plane
00090      << " index: " << _index << std::endl;
00091   os << " trk_index : " << _track_id << std::endl;
00092   os << " p = {" << _px << "," << _py << "," << _pz << "}" << std::endl;
00093   os << " x = {" << _x << "," << _y << "," << _z << "}" << std::endl;
00094   os << " pid : " << _pid << std::endl;
00095   os << " file_key : " << _file_key << std::endl;
00096 
00097   // Print TMuiMCTwopacks
00098   //
00099   const twopack_list* twopack = get_twopack_list();  
00100   twopack_iterator twopack_iter = twopack->begin();  
00101   for(;twopack_iter!=twopack->end();++twopack_iter){    
00102     twopack_iter->print();
00103   }
00104   //  os << " #### dump associated mctrk information #### " <<endl;
00105   TMutMCTrkMap::const_key_iterator mc_trk_iter = get_associated<TMutMCTrk>();
00106   os << " number of associated mctrk : " << mc_trk_iter.count() << endl; 
00107   //  while(TMutMCTrkMap::const_pointer mc_trk_ptr = mc_trk_iter.next()) {
00108   //      mc_trk_ptr->get()->print();
00109   //    }
00110   MUIOO::PRINT(os,"**");
00111 }

void set_arm UShort_t    arm [inline, virtual]
 

Set arm number for this hit

Reimplemented from TMuiMCHitO.

Definition at line 89 of file TMuiMCHitO_v1.h.

References _arm.

00089 { _arm = arm; }

void set_file_key UShort_t    file_key [inline, virtual]
 

Set file key, which is used for embeding

Reimplemented from TMuiMCHitO.

Definition at line 81 of file TMuiMCHitO_v1.h.

References _file_key.

00081 {_file_key = file_key;} 

void set_index UShort_t    index [inline, virtual]
 

Set hit index associated with this hit

Reimplemented from TMuiMCHitO.

Definition at line 93 of file TMuiMCHitO_v1.h.

References _index.

00093 { _index = index; }

void set_pid Short_t    pid [inline, virtual]
 

Set particle id for the hit

Reimplemented from TMuiMCHitO.

Definition at line 79 of file TMuiMCHitO_v1.h.

References _pid.

00079 {_pid = pid;}

void set_plane UShort_t    plane [inline, virtual]
 

Set muid plane number for this hit

Reimplemented from TMuiMCHitO.

Definition at line 91 of file TMuiMCHitO_v1.h.

References _plane.

00091 { _plane = plane; }

void set_px Float_t    px [inline, virtual]
 

Set x-momentum of track at this hit position

Reimplemented from TMuiMCHitO.

Definition at line 73 of file TMuiMCHitO_v1.h.

References _px.

00073 { _px = px; }

void set_py Float_t    py [inline, virtual]
 

Set y-momentum of track at this hit position

Reimplemented from TMuiMCHitO.

Definition at line 75 of file TMuiMCHitO_v1.h.

References _py.

00075 { _py = py; }

void set_pz Float_t    pz [inline, virtual]
 

Set z-momentum of track at this hit position

Reimplemented from TMuiMCHitO.

Definition at line 77 of file TMuiMCHitO_v1.h.

References _pz.

00077 { _pz = pz; }

void set_track_id Int_t    track_id [inline, virtual]
 

PISA track number associated with this track

Reimplemented from TMuiMCHitO.

Definition at line 65 of file TMuiMCHitO_v1.h.

References _track_id.

00065 { _track_id = track_id;}

void set_x Float_t    x [inline, virtual]
 

Set x-position of track for this hit

Reimplemented from TMuiMCHitO.

Definition at line 67 of file TMuiMCHitO_v1.h.

References _x.

00067 { _x = x; }

void set_y Float_t    y [inline, virtual]
 

Set y-position of track for this hit

Reimplemented from TMuiMCHitO.

Definition at line 69 of file TMuiMCHitO_v1.h.

References _y.

00069 { _y = y; }

void set_z Float_t    z [inline, virtual]
 

Set z-position of track for this hit

Reimplemented from TMuiMCHitO.

Definition at line 71 of file TMuiMCHitO_v1.h.

References _z.

00071 { _z = z; }


Member Data Documentation

UShort_t _arm [private]
 

Definition at line 99 of file TMuiMCHitO_v1.h.

Referenced by get_arm, print, and set_arm.

UShort_t _file_key [private]
 

Definition at line 110 of file TMuiMCHitO_v1.h.

Referenced by get_file_key, print, and set_file_key.

UShort_t _index [private]
 

Definition at line 101 of file TMuiMCHitO_v1.h.

Referenced by get_index, print, and set_index.

Short_t _pid [private]
 

Definition at line 109 of file TMuiMCHitO_v1.h.

Referenced by get_pid, print, and set_pid.

UShort_t _plane [private]
 

Definition at line 100 of file TMuiMCHitO_v1.h.

Referenced by get_plane, print, and set_plane.

Float_t _px [private]
 

Definition at line 106 of file TMuiMCHitO_v1.h.

Referenced by get_px, print, and set_px.

Float_t _py [private]
 

Definition at line 107 of file TMuiMCHitO_v1.h.

Referenced by get_py, print, and set_py.

Float_t _pz [private]
 

Definition at line 108 of file TMuiMCHitO_v1.h.

Referenced by get_pz, print, and set_pz.

Int_t _track_id [private]
 

Definition at line 102 of file TMuiMCHitO_v1.h.

Referenced by get_track_id, print, and set_track_id.

twopack_list _twopack_list [private]
 

Definition at line 111 of file TMuiMCHitO_v1.h.

Referenced by add_twopack, clear_twopack_list, get_mutable_twopack_list, get_n_twopack, and get_twopack_list.

Float_t _x [private]
 

Definition at line 103 of file TMuiMCHitO_v1.h.

Referenced by get_coord, get_x, print, and set_x.

Float_t _y [private]
 

Definition at line 104 of file TMuiMCHitO_v1.h.

Referenced by get_coord, get_y, print, and set_y.

Float_t _z [private]
 

Definition at line 105 of file TMuiMCHitO_v1.h.

Referenced by get_coord, get_z, print, and set_z.


The documentation for this class was generated from the following files:
MUIOO: PHENIX Muon Identifier Analysis Framework. Documentation by doxygen
Last modified: