Index: trunk/MagicSoft/include-Classes/MMcFormat/MMcRunHeader.hxx
===================================================================
--- trunk/MagicSoft/include-Classes/MMcFormat/MMcRunHeader.hxx	(revision 1240)
+++ trunk/MagicSoft/include-Classes/MMcFormat/MMcRunHeader.hxx	(revision 1241)
@@ -15,92 +15,126 @@
 {
 private:
-    /* ---- Run Header Informations ---- */
-    UInt_t  fNumTrigCond;     // Number of trigger conditions in this file,
-                              // zero means single condition mode
+  UInt_t  fNumTrigCond;     // Number of trigger conditions in this file,
+  // zero means single condition mode
+  
+  //-- 0 means: MMcTrig
+  //-- 1 means: MMcTrig;1
+  //-- 2 means: MMcTrig;1 MMcTrig;2
+  
+  Byte_t  fAllEvtsTriggered;  // boolean that indicates is all images are 
+                              // saved or only the ones that trigger
 
-    //-- 0 means: MMcTrig
-    //-- 1 means: MMcTrig;1
-    //-- 2 means: MMcTrig;1 MMcTrig;2
+  Byte_t  fMcEvt;           // McEvt stored or not
+  Byte_t  fMcTrig;          // McTrig stored or not
+  Byte_t  fMcFadc;          // McFadc stored or not
 
-    Byte_t  fAllEvtsTriggered;  // boolean that indicates is all images are 
-                                // saved or only the ones that trigger
+  Int_t   fNumAnalisedPixels;  // Number of analised pixels
+  
+  UInt_t  fNumSimulatedShowers; // Number of showers that were simualted
+  UInt_t  fNumStoredShowers;    // Number of store showers in this run
+  
+  //  Coordinates of the Starfield
+  
+  Int_t fStarFieldRaH;
+  Int_t fStarFieldRaM;
+  Int_t fStarFieldRaS;
+  Int_t fStarFieldDeD;
+  Int_t fStarFieldDeM;
+  Int_t fStarFieldDeS;
 
-    Byte_t  fMcEvt;           // McEvt stored or not
-    Byte_t  fMcTrig;          // McTrig stored or not
-    Byte_t  fMcFadc;          // McFadc stored or not
+  Float_t fNumPheFromDNSB;  // Number of phe/ns from diffuse NSB
+  
+  //  Telescope axis position (zenith and azimutal angle)
+  Float_t fTelesTheta;  // >180 (200) means for each shower,
+                        // the Theta of shower
+  Float_t fTelesPhi;    // > 360 (400) means for each shower,
+                        // the Phi of shower
 
-    Int_t   fNumAnalisedPixels;  // Number of analised pixels
+  //  Angular distance from the source position to the camera center
+  Float_t fSourceOffsetTheta; 
+  Float_t fSourceOffsetPhi;
+  
+  //  Angular range used in the Corsika showers generation (degrees)
+  Float_t fShowerThetaMax;
+  Float_t fShowerThetaMin;
+  Float_t fShowerPhiMax;
+  Float_t fShowerPhiMin;
 
-    UInt_t  fNumSimulatedShowers; // Number of showers that were simualted
-    UInt_t  fNumStoredShowers;    // Number of store showers in this run
+  UShort_t fCorsikaVersion;
+  UShort_t fReflVersion;
+  UShort_t fCamVersion;
 
-    //  Coordinates of the Starfield
+  /* ---- Run Header Informations ---- */
+  Float_t fMcRunNumber;     // Run Number
+  UInt_t  fProductionSite;  // code to know where the run was generated
+  Float_t fDateRunMMCs;     // Date of the MMCs production
+  Float_t fDateRunCamera;   // Date, when the Camera program is run.
 
-    Int_t fStarFieldRaH;
-    Int_t fStarFieldRaM;
-    Int_t fStarFieldRaS;
-    Int_t fStarFieldDeD;
-    Int_t fStarFieldDeM;
-    Int_t fStarFieldDeS;
+  Byte_t  fRawEvt;          // RawEvt[Data,Hedaer] stored or not
 
-    Float_t fNumPheFromDNSB;  // Number of phe/ns from diffuse NSB
+  Byte_t  fElecNoise;       // Electronic Noise simulated or not
+  Byte_t  fStarFieldRotate; // Is the starfield rotation 
+                            // switched on (1) or off (0)
 
-    //  Telescope axis position (zenith and azimutal angle)
-    Float_t fTelesTheta;  // >180 (200) means for each shower,
-                          // the Theta of shower
-    Float_t fTelesPhi;    // > 360 (400) means for each shower,
-                          // the Phi of shower
+  //  Wavelength limits for the Cerenkov photons
+  Float_t fCWaveLower;
+  Float_t fCWaveUpper;
 
-    //  Angular distanve from the source position to the camera center
-    Float_t fSourceOffsetTheta; 
-    Float_t fSourceOffsetPhi;
+  //  Observation levels  
+  UInt_t    fNumObsLev;
+  Float_t   fHeightLev[10]; 
 
-    //  Angular range used in the Corsika showers generation (degrees)
-    Float_t fShowerThetaMax;
-    Float_t fShowerThetaMin;
-    Float_t fShowerPhiMax;
-    Float_t fShowerPhiMin;
-
-    UShort_t fCorsikaVersion;
-    UShort_t fReflVersion;
-    UShort_t fCamVersion;
+  //  Spectral index
+  Float_t   fSlopeSpec;
 
 public:
-    MMcRunHeader(const char *name=NULL, const char *title=NULL);
-    ~MMcRunHeader();
+  MMcRunHeader(const char *name=NULL, const char *title=NULL);
+  ~MMcRunHeader();
 
-    void Fill(const UInt_t numtrigcond,
-	 const Byte_t fallevts,
-	 const Byte_t fmcevt,
-	 const Byte_t fmctrig,
-	 const Byte_t fmcfadc,
-	 const Int_t  fnumanalpixels,
-	 const UInt_t fnumsim,
-	 const UInt_t fnumsto,
-	 const Int_t fsfRaH,
-	 const Int_t fsfRaM,
-	 const Int_t fsfRaS,
-	 const Int_t fsfDeD,
-	 const Int_t fsfDeM,
-	 const Int_t fsfDeS,
-	 const Float_t fnumdnsb,
-	 const Float_t ftelestheta,
-	 const Float_t ftelesphi,
-	 const Float_t fsofftheta,
-	 const Float_t fsoffphi,
-	 const Float_t fshthetamax,
-	 const Float_t fshthetamin,
-	 const Float_t fshphimax,
-	 const Float_t fshphimin,
-	 const UInt_t fcorsika,
-	 const UInt_t frefl,
-	 const UInt_t fcam
-	);
-
-    Float_t GetNumPheFromDNSB() const { return fNumPheFromDNSB; }
-    void GetStarFieldRa(Int_t *hour, Int_t *minute, Int_t *second) const;
-    void GetStarFieldDec(Int_t *degree, Int_t *minute, Int_t *second) const;
-
-    ClassDef(MMcRunHeader, 1)	// storage container for general info
+  void Fill(const Float_t  runnumber,
+	    const UInt_t   productionsite,
+	    const Float_t  daterunMMCs,
+	    const Float_t   daterunCamera,
+	    const UInt_t   numtrigcond,
+	    const Byte_t   allevts,
+	    const Byte_t   mcevt,
+	    const Byte_t   mctrig,
+	    const Byte_t   mcfadc,
+	    const Byte_t   rawevt,
+	    const Byte_t   elecnoise, 
+	    const Int_t    numanalpixels,
+	    const UInt_t   numsim,
+	    const UInt_t   numsto,
+	    const Byte_t   starfieldrotate,
+	    const Int_t    sfRaH,
+	    const Int_t    sfRaM,
+	    const Int_t    sfRaS,
+	    const Int_t    sfDeD,
+	    const Int_t    sfDeM,
+	    const Int_t    sfDeS,
+	    const Float_t  numdnsb,
+	    const Float_t  telestheta,
+	    const Float_t  telesphi,
+	    const Float_t  sofftheta,
+	    const Float_t  soffphi,
+	    const Float_t  shthetamax,
+	    const Float_t  shthetamin,
+	    const Float_t  shphimax,
+	    const Float_t  shphimin,
+	    const Float_t  cwavelower,
+	    const Float_t  cwaveupper,
+	    const Float_t  slopespec,
+	    const UInt_t   num0bslev,
+	    const Float_t  heightlev[10],
+	    const UInt_t   corsika,
+	    const UInt_t   refl,
+	    const UInt_t   cam
+	    );
+  
+  Float_t GetNumPheFromDNSB() const { return fNumPheFromDNSB; }
+  void GetStarFieldRa(Int_t *hour, Int_t *minute, Int_t *second) const;
+  void GetStarFieldDec(Int_t *degree, Int_t *minute, Int_t *second) const;
+  
+  ClassDef(MMcRunHeader, 2)	// storage container for general info
 };
 #endif
