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

TMuiMCTwoPack.h

Go to the documentation of this file.
00001 // Class : TMuiMCTwoPack
00002 // Author: J.Nagle
00003 // Date: 06/24/2003
00004 // Description: Hit TwoPacks fired by TMuiMCHitO
00005 
00006 #ifndef __TMUIMCTWOPACK_H__
00007 #define __TMUIMCTWOPACK_H__
00008 
00009 #include<TDataType.h>
00010 #include<TObject.h>
00011 #include<iostream>
00012 #include<string>
00013 
00015 
00016 
00021 class TMuiMCTwoPack : public TObject
00022 {
00023 public:
00025   enum Status {NOMINAL, MASKED};
00026   
00028 
00029 
00030   TMuiMCTwoPack() {;}
00031 
00033   TMuiMCTwoPack(UShort_t orient,
00034                 UShort_t panel,
00035                 UShort_t twopack_index) :
00036     _orient(orient), 
00037     _panel(panel), 
00038     _twopack_index(twopack_index),
00039     _status(NOMINAL){;}
00040 
00042   virtual ~TMuiMCTwoPack(){;}
00044 
00045 
00047 
00048 
00049 
00051 
00052 
00053   // virtual UShort_t get_orient() const {return _orient;}
00054   UShort_t get_orient() const {return _orient;}
00056   //virtual UShort_t get_panel() const {return _panel;}
00057   UShort_t get_panel() const {return _panel;}
00059   UShort_t get_twopack_index() const {return _twopack_index;}
00061   UShort_t get_status() const {return _status;}
00063   void set_orient(UShort_t orient) { _orient = orient;}
00065   void set_panel(UShort_t panel) { _panel = panel;}
00067   void set_twopack_index(UShort_t twopack_index) { _twopack_index = twopack_index;}
00069   void set_status(UShort_t status) { _status = status;}
00071 
00073 
00074 
00075   virtual void print(std::ostream& os = std::cout) const 
00076   {
00077     std::string status;
00078     if(_status == NOMINAL) status += "NOMINAL";
00079     if(_status == MASKED) status += "MASKED";
00080     os << " orientation: " << _orient 
00081        << " panel: " << _panel 
00082        << " twopack_index: " << _twopack_index
00083        << " status: " << status << std::endl;
00084   }
00086   
00087 private:
00088   
00089   UShort_t _orient;
00090   UShort_t _panel;
00091   UShort_t _twopack_index;
00092   UShort_t _status;
00093   ClassDef(TMuiMCTwoPack,1)
00094 
00095 };
00096 
00097 
00098 #endif /* __TMuiMCTwoPack_H__*/
00099 

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