Changeset 698 for trunk/MagicSoft/Mars/mgui
- Timestamp:
- 03/22/01 12:24:47 (24 years ago)
- Location:
- trunk/MagicSoft/Mars/mgui
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mgui/MCamDisplay.h
r695 r698 73 73 } 74 74 75 ClassDef(MCamDisplay, 1) // Display the magic camera75 ClassDef(MCamDisplay, 0) // Display the magic camera 76 76 }; 77 77 -
trunk/MagicSoft/Mars/mgui/MCamNeighbor.h
r653 r698 20 20 void Print(Option_t *opt=NULL) ; 21 21 22 ClassDef(MCamNeighbor, 1) // Conatins the neighbors in the magic camera22 ClassDef(MCamNeighbor, 0) // Conatins the neighbors in the magic camera 23 23 } ; 24 24 -
trunk/MagicSoft/Mars/mgui/MGDataCheckMain.cc
r571 r698 252 252 if ( strcmp ( fInputFile, "\n") == 0 ) 253 253 { 254 return ( kFALSE ) ;254 return kFALSE ; 255 255 } 256 256 257 return (kTRUE) ;257 return kTRUE ; 258 258 } 259 259 -
trunk/MagicSoft/Mars/mgui/MGDataCheckMain.h
r669 r698 86 86 Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2); 87 87 88 ClassDef(MGDataCheckMain, 1)88 ClassDef(MGDataCheckMain, 0) 89 89 90 90 } ; -
trunk/MagicSoft/Mars/mgui/MGEventDispMain.h
r587 r698 97 97 Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2); 98 98 99 ClassDef(MGEventDispMain, 1)99 ClassDef(MGEventDispMain, 0) 100 100 101 101 } ; -
trunk/MagicSoft/Mars/mgui/MGMarsMain.h
r466 r698 58 58 Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2); 59 59 60 ClassDef(MGMarsMain, 1)60 ClassDef(MGMarsMain, 0) 61 61 } ; 62 62 -
trunk/MagicSoft/Mars/mgui/MGMonteCarloMain.h
r571 r698 81 81 Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2); 82 82 83 ClassDef(MGMonteCarloMain, 1)83 ClassDef(MGMonteCarloMain, 0) 84 84 85 85 } ; -
trunk/MagicSoft/Mars/mgui/MGPrototyp.h
r609 r698 93 93 Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2); 94 94 95 ClassDef(MGPrototyp, 1)95 ClassDef(MGPrototyp, 0) 96 96 97 97 } ; -
trunk/MagicSoft/Mars/mgui/MGeomCamCT1.cc
r695 r698 34 34 // it was punt into a root/C++ context by Harald Kornmayer and Thomas Bretz 35 35 36 const Float_t pixdiameter = 21 ; // units are cm 36 const Float_t diameter = 21 ; // units are mm 37 const Float_t kS32 = sqrt(3)/2; 37 38 38 39 // 39 40 // add the first pixel to the list 40 41 // 41 (*this)[0].Set(0, 0, pixdiameter);42 //fPixels->Add( new MGeomPix( ) ;43 44 const Float_t kS32 = sqrt(3)/2;45 const Float_t kPI23 = kPI*2/3;46 47 42 Int_t pixnum = 1; 48 43 49 for (Int_t ringcounter=1; ringcounter<7; ringcounter++) { 50 // 51 // calc. numofpix in ring number i first 52 // 53 const Int_t numpixthisring = ringcounter*6; 44 (*this)[pixnum++].Set(0, 0, diameter); 54 45 46 for (Int_t ring=1; ring<7; ring++) 47 { 55 48 // 56 49 // calc. coords for this ring counting from the 57 50 // starting number to the ending number 58 51 // 59 for (Int_t ipix = 0; ipix < numpixthisring; ipix++) { 52 for (int i=0; i<ring; i++) 53 (*this)[pixnum++].Set((-ring+i*0.5)*diameter, 54 i*kS32*diameter, 55 diameter); 60 56 61 Float_t ang = 60.0/ringcounter * ipix; 62 Float_t fracang = ang - 60*(int)floor(ang/60); 57 for (int i=0; i<ring; i++) 58 (*this)[pixnum++].Set((-ring*0.5+i)*diameter, 59 ring*kS32 * diameter, 60 diameter); 63 61 64 ang /= kRad2Deg; 65 fracang /= kRad2Deg; 62 for (int i=0; i<ring; i++) 63 (*this)[pixnum++].Set((ring+i)*0.5*diameter, 64 (ring-i)*kS32*diameter, 65 diameter); 66 66 67 Float_t rad = pixdiameter * ringcounter; 68 rad *= sin(kPI23-fracang) * kS32; 67 for (int i=0; i<ring; i++) 68 (*this)[pixnum++].Set((ring-0.5*i)*diameter, 69 -i*kS32*diameter, 70 diameter); 69 71 70 // 71 // fill the Data into the array 72 // 72 for (int i=0; i<ring; i++) 73 (*this)[pixnum++].Set((ring*0.5-i)*diameter, 74 -ring*kS32 * diameter, 75 diameter); 73 76 74 (*this)[pixnum++].Set(rad * cos(ang), 75 rad * sin(ang), 76 pixdiameter); 77 // fPixels->Add( new MGeomPix( ) ; 78 } 77 for (int i=0; i<ring; i++) 78 (*this)[pixnum++].Set((-ring-i)*0.5*diameter, 79 (-ring+i)*kS32*diameter, 80 diameter); 79 81 } 80 82 } -
trunk/MagicSoft/Mars/mgui/MHexagon.cc
r653 r698 92 92 } 93 93 94 95 void MHexagon::Draw(Option_t *option ) 96 { 97 // Draw this ellipse with its current attributes 98 AppendPad(option) ; 99 } 100 101 void MHexagon::DrawHexagon( Float_t x, Float_t y, Float_t d ) 94 void MHexagon::DrawHexagon( Float_t x, Float_t y, Float_t d ) 102 95 { 103 96 // Draw this ellipse with new coordinate -
trunk/MagicSoft/Mars/mgui/MHexagon.h
r665 r698 43 43 44 44 virtual Int_t DistancetoPrimitive(Int_t px, Int_t py ) ; 45 virtual void Draw( Option_t *Option="") ;46 45 virtual void DrawHexagon( Float_t x, Float_t y, Float_t d ) ; 47 46 … … 53 52 virtual void Print(Option_t *Option="") ; 54 53 55 ClassDef ( MHexagon, 1) // a hexagon for MAGIC54 ClassDef ( MHexagon, 0 ) // a hexagon for MAGIC 56 55 57 56 } ;
Note:
See TracChangeset
for help on using the changeset viewer.