Changeset 3379 for trunk/MagicSoft/include-Classes
- Timestamp:
- 03/02/04 13:39:02 (21 years ago)
- Location:
- trunk/MagicSoft/include-Classes/MMcFormat
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/include-Classes/MMcFormat/MMcCorsikaRunHeader.cc
r2283 r3379 35 35 #include "MGeomCorsikaCT.h" 36 36 #include "MMcCorsikaRunHeader.h" 37 #include "MLog.h" 38 #include "MLogManip.h" 37 39 38 40 ClassImp(MMcCorsikaRunHeader); … … 47 49 MMcCorsikaRunHeader::MMcCorsikaRunHeader(const char *name, const char *title, 48 50 int NumCT) 51 : fTelescopes(NumCT) 49 52 { 50 53 fName = name ? name : "MMcCorsikaRunHeader"; … … 88 91 89 92 fNumCT=NumCT; 93 94 fTelescopes.SetOwner(); 95 90 96 for (int i=0;i<NumCT;i++) 91 97 fTelescopes[i]= new MGeomCorsikaCT; 92 98 99 SetReadyToSave(); 93 100 } 94 101 … … 176 183 } 177 184 178 179 180 181 182 183 184 185 186 185 // ------------------------------------------------------------------------- 186 // 187 // Returns a reference of the i-th entry (the telescope with the index i) 188 // 189 MGeomCorsikaCT &MMcCorsikaRunHeader::operator[](Int_t i) const 190 { 191 return *static_cast<MGeomCorsikaCT*>(fTelescopes.UncheckedAt(i)); 192 } 193 194 // -------------------------------------------------------------------------- 195 // 196 // Prints the information of all telescopes 197 // 198 void MMcCorsikaRunHeader::Print(Option_t *) const 199 { 200 // 201 // Print Information about the Geometry of the camera 202 // 203 *fLog << all << GetTitle() <<". Number of Telescopes: " << fNumCT << endl; 204 205 fTelescopes.Print(); 206 } 207 208 209 210 211 212 213 214 215 -
trunk/MagicSoft/include-Classes/MMcFormat/MMcCorsikaRunHeader.h
r2283 r3379 101 101 Int_t CTnum); 102 102 103 MGeomCorsikaCT &operator[](Int_t i) const; 104 105 virtual void Print(Option_t *opt=NULL) const; 106 103 107 ClassDef(MMcCorsikaRunHeader, 3) // storage container for corsika setup information 104 108 };
Note:
See TracChangeset
for help on using the changeset viewer.