Changeset 2283
- Timestamp:
- 07/17/03 17:41:32 (21 years ago)
- Location:
- trunk/MagicSoft
- Files:
-
- 2 added
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mgeom/GeomLinkDef.h
r2282 r2283 7 7 #pragma link C++ class MGeomPMT+; 8 8 #pragma link C++ class MGeomMirror+; 9 #pragma link C++ class MGeomCorsikaCT+; 9 10 #pragma link C++ class MGeomPix+; 10 11 #pragma link C++ class MGeomCam+; -
trunk/MagicSoft/Mars/mgeom/Makefile
r2282 r2283 37 37 MGeomCamECO1000.cc \ 38 38 MGeomCamECO1000HG.cc \ 39 MGeomCorsikaCT.cc \ 39 40 MGeomMirror.cc \ 40 41 MGeomPMT.cc -
trunk/MagicSoft/include-Classes/MMcFormat/MFadcDefine.h
r636 r2283 41 41 // --> The maximum number of FADC channels 42 42 // Most likely it will be always equal to CAMERA_PIXELS 43 #define MFADC_CHANNELS 57743 #define MFADC_CHANNELS 3500 -
trunk/MagicSoft/include-Classes/MMcFormat/MMcCorsikaRunHeader.cc
r2173 r2283 33 33 // 34 34 //////////////////////////////////////////////////////////////////////////// 35 #include "MGeomCorsikaCT.h" 35 36 #include "MMcCorsikaRunHeader.h" 36 37 … … 44 45 // 45 46 // 46 MMcCorsikaRunHeader::MMcCorsikaRunHeader(const char *name, const char *title) 47 MMcCorsikaRunHeader::MMcCorsikaRunHeader(const char *name, const char *title, 48 int NumCT) 47 49 { 48 50 fName = name ? name : "MMcCorsikaRunHeader"; … … 79 81 for (int i=0;i<4; i++) fNFL[i] = 0; 80 82 83 fViewconeAngles[0]=0.0; 84 fViewconeAngles[1]=0.0; 85 81 86 fWobbleMode=0; 82 87 fAtmosphericModel=0; 88 89 fNumCT=NumCT; 90 for (int i=0;i<NumCT;i++) 91 fTelescopes[i]= new MGeomCorsikaCT; 92 83 93 } 84 94 … … 109 119 const Float_t catm[5], 110 120 const Float_t nfl[4], 121 const Float_t viewcone[2], 111 122 const Float_t wobble, 112 123 const Float_t atmospher … … 143 154 for (int i=0; i<4; i++) fNFL[i] = nfl[i]; 144 155 156 fViewconeAngles[0]=viewcone[0]; 157 fViewconeAngles[1]=viewcone[1]; 158 145 159 fWobbleMode=wobble; 146 160 fAtmosphericModel=atmospher; 161 162 } 163 164 // ------------------------------------------------------------------------- 165 // 166 // Fill C Telescope information in Corsika Run Header 167 // 168 void MMcCorsikaRunHeader::FillCT(Float_t ctx, Float_t cty, Float_t ctz, 169 Float_t cttheta, Float_t ctphi, 170 Float_t ctdiam, Float_t ctfocal, 171 Int_t CTnum){ 172 173 static_cast<MGeomCorsikaCT*>(fTelescopes.UncheckedAt(CTnum)) 174 ->Fill(ctx, cty, ctz, cttheta, ctphi, ctdiam, ctfocal); 147 175 148 176 } … … 157 185 158 186 159 -
trunk/MagicSoft/include-Classes/MMcFormat/MMcCorsikaRunHeader.h
r1783 r2283 10 10 #endif 11 11 12 #ifndef ROOT_TObjArray 13 #include <TObjArray.h> 14 #endif 15 16 class MGeomCorsikaCT; 12 17 13 18 class MMcCorsikaRunHeader : public MParContainer … … 43 48 Float_t fNFL[4]; 44 49 50 // (degrees) Inner and outer angles in Corsika's VIEWCONE option 51 Float_t fViewconeAngles[2]; 52 53 45 54 Float_t fWobbleMode; // Indicates wobble mode with which 46 55 // reflector has been run … … 49 58 // 1 = atm_90percent, 2 = atm_isothermal, 50 59 // 3 = atm_corsika. 60 UInt_t fNumCT; 61 TObjArray fTelescopes; 51 62 52 63 public: 53 MMcCorsikaRunHeader(const char *name=NULL, const char *title=NULL); 64 MMcCorsikaRunHeader(const char *name=NULL, const char *title=NULL, 65 int NumCT=1); 54 66 55 67 void Fill(const Float_t runnumber, … … 75 87 const Float_t catm[5], 76 88 const Float_t nfl[4], 89 const Float_t viewcone[2], 77 90 const Float_t wobble, 78 91 const Float_t atmospher … … 83 96 Float_t GetSlopeSpec() const { return fSlopeSpec; } 84 97 85 ClassDef(MMcCorsikaRunHeader, 2) // storage container for corsika setup information 98 void FillCT(Float_t ctx, Float_t cty, Float_t ctz, 99 Float_t cttheta, Float_t ctphi, 100 Float_t ctdiam, Float_t ctfocal, 101 Int_t CTnum); 102 103 ClassDef(MMcCorsikaRunHeader, 3) // storage container for corsika setup information 86 104 }; 87 105 #endif -
trunk/MagicSoft/include-Classes/MMcFormat/MMcFadcHeader.cxx
r2173 r2283 32 32 fAmplFadc=MFADC_RESPONSE_AMPLITUDE; 33 33 fFwhmFadc=MFADC_RESPONSE_FWHM; 34 fAmplFadcOuter=MFADC_RESPONSE_AMPLITUDE; 35 fFwhmFadcOuter=MFADC_RESPONSE_FWHM; 34 36 35 37 for(i=0;i<MFADC_CHANNELS;i++){ … … 53 55 cout << "Monte Carlo Fadc output:" << endl; 54 56 cout << " Shape type of the signal: " << fFadcShape << endl; 55 cout << " Amplitude of the trigger in mV: " << fAmplFadc << endl;57 cout << " FADC integral for sphe [counts*ns]: " << fAmplFadc << endl; 56 58 cout << " Width of the signal in nsec: " << fFwhmFadc << endl; 59 cout << " Outer FADC integral for sphe [counts*ns]: " << fAmplFadcOuter 60 << endl; 61 cout << " Width of the signal in nsec for outer: " << fFwhmFadcOuter 62 << endl; 57 63 cout << " Pedestals and ElecNoise in fadc counts: " << endl; 58 64 for (int i=0;i<MFADC_CHANNELS;i++){ -
trunk/MagicSoft/include-Classes/MMcFormat/MMcFadcHeader.hxx
r1101 r2283 14 14 // the signal 15 15 // = 0 --> a gaussian 16 Float_t fAmplFadc ; // the amplitude of the trigger in mV16 Float_t fAmplFadc ; // the integral of sph response [counts*ns] 17 17 Float_t fFwhmFadc ; // the width of the signal in nsec 18 Float_t fAmplFadcOuter; // the integral of sph response [counts*ns], outer 19 Float_t fFwhmFadcOuter; // the width of the signal in nsec, outer 18 20 Float_t fPedesMean[MFADC_CHANNELS] ; // The mean value for the pedestal 19 21 // of each pixel (channel) … … 21 23 // due to the electronics for 22 24 // each pixel (channel) 25 Float_t fLow2HighGain; // low gain factor 23 26 24 27 public: … … 33 36 } 34 37 35 void SetAmplitud(Float_t amp){ 38 void SetLow2High(Float_t l2h){ 39 fLow2HighGain=l2h; 40 } 41 42 void SetAmplitud(Float_t amp, Float_t ampout=0.0){ 36 43 fAmplFadc=amp; 44 fAmplFadcOuter=ampout; 37 45 } 38 46 39 void SetFwhm(Float_t fwhm ){47 void SetFwhm(Float_t fwhm, Float_t fwhmout=0.0){ 40 48 fFwhmFadc=fwhm; 49 fFwhmFadcOuter=fwhmout; 41 50 } 42 51 … … 57 66 UInt_t GetNumPixel() const { return MFADC_CHANNELS; } 58 67 59 ClassDef(MMcFadcHeader, 1) //Stores Montecarlo Information describing the FADC behaviour68 ClassDef(MMcFadcHeader, 2) //Stores Montecarlo Information describing the FADC behaviour 60 69 61 70 }; -
trunk/MagicSoft/include-Classes/MMcFormat/MMcRunHeader.cxx
r2173 r2283 180 180 const Float_t shphimax, 181 181 const Float_t shphimin, 182 const Float_t impactmax, 182 183 const Float_t cwavelower, 183 184 const Float_t cwaveupper, … … 223 224 fShowerPhiMin = shphimin; 224 225 226 fImpactMax=impactmax; 227 225 228 fCWaveLower = cwavelower; 226 229 fCWaveUpper = cwaveupper; -
trunk/MagicSoft/include-Classes/MMcFormat/MMcRunHeader.hxx
r1983 r2283 33 33 UInt_t fNumSimulatedShowers; // Number of showers that were simualted 34 34 UInt_t fNumStoredShowers; // Number of store showers in this run 35 UInt_t fNumEvents; // Number of events in this root file 35 36 36 37 // Coordinates of the Starfield … … 60 61 Float_t fShowerPhiMax; // [deg] See note in class description. 61 62 Float_t fShowerPhiMin; // [deg] See note in class description. 63 64 // Maximum impact parameter in the input rfl file 65 Float_t fImpactMax; // [cm] 62 66 63 67 UShort_t fCorsikaVersion; … … 125 129 const Float_t shphimax, 126 130 const Float_t shphimin, 131 const Float_t impactmax, 127 132 const Float_t cwavelower, 128 133 const Float_t cwaveupper, … … 146 151 UInt_t GetCorsikaVersion() const { return fCorsikaVersion; } 147 152 Bool_t GetAllEvtsTriggered() const { return fAllEvtsTriggered ? kTRUE : kFALSE; } 153 Float_t GetImpactMax() const {return fImpactMax;} 148 154 149 ClassDef(MMcRunHeader, 3) // storage container for general run info155 ClassDef(MMcRunHeader, 4) // storage container for general run info 150 156 }; 151 157 #endif -
trunk/MagicSoft/include-Classes/MMcFormat/MTriggerDefine.h
r1248 r2283 4 4 // 5 5 // 6 #define TRIGGER_PIXELS 3 976 #define TRIGGER_PIXELS 3500 7 7 // 8 8 // This is the number of Pixels contributing to the TRIGGER logic -
trunk/MagicSoft/include-Classes/MMcFormat/Mdefine.h
r525 r2283 7 7 // Number of the Pixels in the Camera 8 8 9 #define CAMERA_PIXELS 5779 #define CAMERA_PIXELS 3500 10 10 11 11 // Number of the Slices of one Fadc. Be carefull this is the number of
Note:
See TracChangeset
for help on using the changeset viewer.