/Home/aooliver/hepsoft/lcdroot/LCDRootApps/PhUtil/inc/LCDEventDisplay.h

Go to the documentation of this file.
00001 // ----------------------------------------------------------------------------
00002 // $Id: LCDEventDisplay.h,v 1.8 2001/12/07 16:45:05 toshi Exp $
00003 // ----------------------------------------------------------------------------
00004 
00005 #ifndef LCDEventDisplay_h
00006 #define LCDEventDisplay_h
00007 
00008 #include "TCanvas.h"
00009 #include "TPad.h"
00010 #include "TTUBE.h"
00011 #include "TNode.h"
00012 
00013 #include "LCDGetParameters.h"
00014 #include "LCDEvent.h"
00015 #include "LCDDetectorVolume.h"
00016 #include "LCDSwimTraj.h"
00017 
00018 class LCDEventDisplay {
00019 public :
00020 
00021   LCDEventDisplay(); // Constractor 
00022   LCDEventDisplay(LCDGetParameters* gp);  // Constractor 
00023   virtual ~LCDEventDisplay(); // Deconstractor 
00024 
00025   void Delete();
00026 
00027   void Draw(LCDEvent* event);           // draw this event
00028 
00029   void SetCOIL()       {m_COIL   = 1;} // To show COIL (def.)
00030   void SetNoCOIL()     {m_COIL   = 0;} // Not to show COIL
00031 
00032   void SetEMCAL()      {m_EMCAL   = 1;} // To show EM clusters (def.)
00033   void SetNoEMCAL()    {m_EMCAL   = 0;} // Not to show EM clusters
00034 
00035   void SetHDCAL(){m_HDCAL = 1;} // To show Had. clusters (def.)
00036   void SetNoHDCAL(){m_HDCAL = 0;} // Not to show Had. clusters
00037 
00038   void SetMUCAL() {m_MUCAL  = 1;} // To show MU clusters (def.)
00039   void SetNoMUCAL() {m_MUCAL  = 0;} // Not to show MU clusters
00040   
00041   void SetLMCAL() {m_LMCAL  = 1;} // To show LUM clusters
00042   void SetNoLMCAL() {m_LMCAL  = 0;} // Not to show LUM clusters (def.)
00043 
00044   void SetENDCAL()     {m_ENDCAL = 1;} // To show endcap clusters
00045   void SetNoENDCAL()   {m_ENDCAL = 0;} // To show endcap clusters (def.)
00046 
00047   void SetEMCALHit()   {m_EMCALHit = 1;} // To show EM cal. hits
00048   void SetNoEMCALHit() {m_EMCALHit = 0;}// Not to show EM cal. hits (def.)
00049 
00050   void SetHDCALHit() {m_HDCALHit = 1;} // To show Had. cal. hits 
00051   void SetNoHDCALHit() {m_HDCALHit = 0;} // Not to show Had. cal. hits (def.)
00052 
00053   void SetMUCALHit() {m_MUCALHit  = 1;} // To show MU cal. hits
00054   void SetNoMUCALHit() {m_MUCALHit  = 0;} // Not to show MU cal. hits
00055   
00056   void SetLMCALHit() {m_LMCALHit  = 1;} // To show LUM cal. hits
00057   void SetNoLMCALHit() {m_LMCALHit  = 0;} // Not to show LUM cal. hits (def.)
00058 
00059   void SetENDCALHit()  {m_ENDCALHit = 1;} // To show endcap cal. hits.
00060   void SetNoENDCALHit(){m_ENDCALHit = 0;} // Not to show endcap cal. hits (def.)
00061 
00062   void SetTRK() {m_TRK  = 1;} // To show tracks (def.)
00063   void SetNoTRK() {m_TRK  = 0;} // Not to show tracks
00064   
00065   void SetTRKHit() {m_TRKHit  = 1;} // To show track hit points
00066   void SetNoTRKHit() {m_TRKHit  = 0;} // Not to show track hit points (def.)
00067   
00068   void SetVXD() {m_VXD  = 1;}    // To show vxd hit points
00069   void SetNoVXD() {m_VXD  = 0;}  // Not to show vxd hit points (def.)
00070   
00071   void SetGismo() {m_Gismo =1;}   // Set if GISMO's full sim. data
00072   void SetNoGismo() {m_Gismo =0;} // FastSIM, etc...not GISMO.
00073 
00074   void SetColor()      {m_BW   = 0;} // Color
00075   void SetBlackWhite() {m_BW   = 1;} // Black & White
00076   
00077   void SetTheta(Double_t theta){m_Theta = theta;} // 
00078   void SetPhi(Double_t phi){m_Phi = phi;} // 
00079   
00080   void SetDetectorParameters(LCDGetParameters* gp); // Set det. parm.
00081 
00082   void SetEMThresholdOn(Double_t et){ m_threshold_em = et; }
00083   void SetHADThresholdOn(Double_t et){ m_threshold_hd = et; }
00084 
00085   
00086     
00087 private:
00088   LCDGetParameters*  m_gp; //-> Pointer to detector parameter
00089   
00090   //  TObjArray* m_TrackList;      //-> list of Tracks
00091   //  TObjArray* m_ClusterList;    //-> list of Clusters
00092   //  TObjArray* m_CalHitList;     //-> list of Cal hits
00093   TClonesArray* m_TrackList;      //-> list of Tracks
00094   TClonesArray* m_ClusterList;    //-> list of Clusters
00095   TClonesArray* m_CalHitList;     //-> list of Cal hits
00096   TObjArray* m_TrackerHitsList;//-> list of tracker hit points
00097   TObjArray* m_VXDHitsList;    //-> list of VXD hit points
00098 
00099   TCanvas* m_canvas;
00100   TPad* m_viewpad;
00101 
00102   TTUBE* m_beampipe;
00103   TTUBE* m_tracker;
00104   TTUBE* m_barrel_EM;
00105   TTUBE* m_coil;
00106   TTUBE* m_barrel_HAD;
00107   TTUBE* m_barrel_MU;
00108   TTUBE* m_endcap_EM;
00109   TTUBE* m_endcap_HAD;
00110   TTUBE* m_endcap_MU;
00111   
00112   TNode* node0;
00113   TNode* node1;
00114   TNode* node2;
00115   TNode* node3;
00116   TNode* node4;
00117   TNode* node5;
00118   TNode* node6;
00119   TNode* node7;
00120   TNode* node8;
00121   TNode* node9;
00122   TNode* node10;
00123   TNode* node11;
00124 
00125  
00126   
00127   Int_t m_COIL;
00128   Int_t m_BW;
00129 
00130   Int_t m_ENDCAL;
00131   Int_t m_ENDCALHit;
00132 
00133   Int_t m_EMCAL;
00134   Int_t m_EMCALHit;
00135   Int_t m_HDCAL;
00136   Int_t m_HDCALHit;
00137   Int_t m_MUCAL;
00138   Int_t m_MUCALHit;
00139   Int_t m_LMCAL;
00140   Int_t m_LMCALHit;
00141   Int_t m_TRK;
00142   Int_t m_TRKHit;
00143   Int_t m_VXD;
00144 
00145   Int_t m_Gismo;
00146   
00147   Double_t m_Theta;
00148   Double_t m_Phi;
00149   
00150   Double_t m_threshold_em;
00151   Double_t m_threshold_hd;
00152 
00153   LCDSwimTraj    traj;
00154   LCDDetectorVolume* pVolumes;       // Array of detector volumes
00155   LCDDetectorVolume* pInnerVolume;   // Innermost volume about IP
00156   Int_t           nVolumes;       // Number of detector volumes in array
00157   
00158   void Init();
00159 
00160 public:
00161   ClassDef(LCDEventDisplay,3) // Event Display classes
00162 
00163 };
00164 
00165 #endif
00166 

Generated on Tue Jul 18 18:33:57 2006 for LCDROOT by  doxygen 1.4.6