Ignore:
Timestamp:
10/26/01 10:11:30 (23 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/include-Classes/MMcFormat
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/include-Classes/MMcFormat/MMcEvt.cxx

    r736 r991  
     1#include "MMcEvt.hxx"
     2
    13#include <iostream.h>
    2 #include "MMcEvt.hxx"
    34
    45
     
    1213
    1314
    14 ClassImp(MMcEvt)
     15ClassImp(MMcEvt);
    1516
    1617
     
    137138
    138139  fPartId = usPId  ;
    139   fEnergy  = fEner  ;
     140  fEnergy = fEner  ;
    140141
    141   fTheta   = fThet ;
    142   fPhi     = fPhii ;
     142  fTheta  = fThet ;
     143  fPhi    = fPhii ;
    143144
    144   fCoreD   = fCorD ;
    145   fCoreX   = fCorX ;
    146   fCoreY   = fCorY ;
    147   fImpact  = fImpa ;
     145  fCoreD  = fCorD ;
     146  fCoreX  = fCorX ;
     147  fCoreY  = fCorY ;
     148  fImpact = fImpa ;
    148149
    149150  fPhotIni      = uiPin ;
     
    157158
    158159
    159 void MMcEvt::Print(Option_t *Option) {
     160void MMcEvt::Print(Option_t *Option) const {
    160161  //
    161162  //  print out the data member on screen
    162163  //
    163   cout <<endl << "Monte Carlo output:" <<endl;
    164   cout << " Particle Id    : " << fPartId ;
    165   cout << " Energy (GeV)   : " << fEnergy  ;
    166   cout << " Impactpar. (m) : " << fImpact  ;
    167   cout << " Photoelectrons : " << fPhotElfromShower ;
    168   cout << endl ;
     164  cout << endl;
     165  cout << "Monte Carlo output:" << endl;
     166  cout << " Particle Id:    " << fPartId;
     167  cout << " Energy (GeV):   " << fEnergy;
     168  cout << " Impactpar. (m): " << fImpact;
     169  cout << " Photoelectrons: " << fPhotElfromShower;
     170  cout << endl;
    169171}
  • trunk/MagicSoft/include-Classes/MMcFormat/MMcEvt.hxx

    r883 r991  
    22#define __MMcEvt__
    33
    4 #include <stdlib.h>
    5 #include <stdio.h>
    6 #include <string.h>
    7 #include <unistd.h>
    8 #include <fcntl.h> 
     4#ifndef MPARCONTAINER_H
     5#include "MParContainer.h"
     6#endif
    97
    10 #include <iostream.h>
    11 #include "MParContainer.h"
     8class MMcEvt : public MParContainer
     9{
     10 private:
     11  UShort_t fPartId;         // Type of particle
     12  Float_t  fEnergy;         // Energy in GeV
    1213
     14  Float_t fTheta;           // Theta angle of event
     15  Float_t fPhi;             // Phi angle of event
    1316
    14 class MMcEvt : public MParContainer{
    15  private:
    16   UShort_t fPartId;     // Type of particle
    17   Float_t fEnergy;       // Energy in GeV
     17  Float_t fCoreD;           // Core d pos
     18  Float_t fCoreX;           // Core x pos
     19  Float_t fCoreY;           // Core y pos
     20  Float_t fImpact;          // impact parameter
    1821
    19   Float_t fTheta;        // Theta angle of event
    20   Float_t fPhi;          // Phi angle of event
    21 
    22   Float_t fCoreD;        // Core d pos
    23   Float_t fCoreX;        // Core x pos
    24   Float_t fCoreY;        // Core y pos
    25   Float_t fImpact;       // impact parameter
    26 
    27   UInt_t fPhotIni;      // Initial number of photons
    28   UInt_t fPassPhotAtm;  // Passed atmosphere
    29   UInt_t fPassPhotRef;  // Passed reflector(reflectivity + effective area)
    30   UInt_t fPassPhotCone; // Passed glas
    31   UInt_t fPhotElfromShower;   // Passed qe coming from the shower
    32   UInt_t fPhotElinCamera;     // usPhotElfromShower + mean of phe
    33                                // from NSB
     22  UInt_t fPhotIni;          // Initial number of photons
     23  UInt_t fPassPhotAtm;      // Passed atmosphere
     24  UInt_t fPassPhotRef;      // Passed reflector(reflectivity + effective area)
     25  UInt_t fPassPhotCone;     // Passed glas
     26  UInt_t fPhotElfromShower; // Passed qe coming from the shower
     27  UInt_t fPhotElinCamera;   // usPhotElfromShower + mean of phe
     28                            // from NSB
    3429
    3530 public:
     
    4944
    5045
    51   void Print(Option_t *);
     46  void Print(Option_t *opt=NULL) const;
    5247
    5348  Short_t GetPartId() const { return fPartId; }       //Get Type of particle
  • trunk/MagicSoft/include-Classes/MMcFormat/MMcFadcHeader.cxx

    r693 r991  
    1 #include <iostream.h>
    21#include "MMcFadcHeader.hxx"
    32
     3#include <iostream.h>
    44
    55//==========
     
    1313
    1414
    15 ClassImp(MMcFadcHeader)
     15ClassImp(MMcFadcHeader);
    1616
    1717
     
    4141
    4242
    43 void MMcFadcHeader::Print(Option_t *Option) {
     43void MMcFadcHeader::Print(Option_t *Option) const {
    4444  //
    4545  //  print out the data member on screen
    4646  //
    47 
    48   cout <<endl << "Monte Carlo Fadc output:" <<endl;
    49   cout << " Shape type of the signal : "<<fFadcShape<<endl;
    50   cout << " Amplitude of the trigger in mV : "<<fAmplFadc<<endl;
    51   cout << " Width of the signal in nsec : "<<fFwhmFadc<<endl;
    52   cout << " Pedestals and ElecNoise in fadc counts : "<<endl;
     47  cout << endl;
     48  cout << "Monte Carlo Fadc output:" << endl;
     49  cout << " Shape type of the signal: "       << fFadcShape << endl;
     50  cout << " Amplitude of the trigger in mV: " << fAmplFadc << endl;
     51  cout << " Width of the signal in nsec: "    << fFwhmFadc << endl;
     52  cout << " Pedestals and ElecNoise in fadc counts: " << endl;
    5353  for (int i=0;i<MFADC_CHANNELS;i++){
    54     cout << " Pixel "<<i<<" : "<<fPedesMean[i]<<"  "<<fElecNoise[i]<<endl;
     54    cout << " Pixel "<<i<<": "<<fPedesMean[i]<<"  "<<fElecNoise[i]<<endl;
    5555  }
    5656  cout << endl ;
  • trunk/MagicSoft/include-Classes/MMcFormat/MMcFadcHeader.hxx

    r859 r991  
    22#define __MMcFadcHeader__
    33
    4 #include <stdlib.h>
    5 #include <stdio.h>
    6 #include <string.h>
    7 #include <unistd.h>
    8 #include <fcntl.h> 
     4#ifndef MPARCONTAINER_H
     5#include "MParContainer.h"
     6#endif
    97
    10 #include <iostream.h>
    11 #include "MParContainer.h"
    12 
    13 #include "MTriggerDefine.h"
    148#include "MFadcDefine.h"
    159
     
    3327  ~MMcFadcHeader();
    3428
    35   void Print(Option_t *);
     29  void Print(Option_t *opt=NULL) const;
    3630 
    3731  void SetShape(Float_t shape){
  • trunk/MagicSoft/include-Classes/MMcFormat/MMcTrig.cxx

    r686 r991  
     1#include "MMcTrig.hxx"
     2
    13#include <iostream.h>
    2 #include "MMcTrig.hxx"
    34
    45
     
    1213
    1314
    14 ClassImp(MMcTrig)
     15ClassImp(MMcTrig);
    1516
    1617
     
    4950}
    5051
     52inline void MMcTrig::SetTime(Float_t t, Int_t i)
     53{
     54    if (i>TOTAL_TRIGGER_TIME/LEVEL1_DEAD_TIME+1  || i<1)
     55    {
     56        cout << "fNumFirstLevel out of range. Time will be -99" << endl;
     57        return;
     58    }
     59
     60    fTimeFirst[i-1]=t;
     61}
     62
    5163void MMcTrig::Clear(Option_t *opt) {
    5264  //
     
    7183}
    7284
    73 void MMcTrig::Print(Option_t *Option) {
     85void MMcTrig::Print(Option_t *Option) const {
    7486  //
    7587  //  print out the data member on screen
     
    7890
    7991  cout <<endl << "Monte Carlo Trigger output:" <<endl;
    80   cout << " First  Level Trigger in this Event : "<<fNumFirstLevel<<endl;
    81   cout << " Times of first  Level Trigger in this Event : ";
     92  cout << " First  Level Trigger in this Event: "<<fNumFirstLevel<<endl;
     93  cout << " Times of first  Level Trigger in this Event: ";
    8294  for (i=0;i<fNumFirstLevel;i++){
    8395    cout<< fTimeFirst[i]<<"-";
     
    91103  }
    92104  cout<<endl;
    93   cout << " Second Level Trigger in this Event : " << fNumSecondLevel << endl;
     105  cout << " Second Level Trigger in this Event: " << fNumSecondLevel << endl;
    94106  cout << endl ;
    95107}
  • trunk/MagicSoft/include-Classes/MMcFormat/MMcTrig.hxx

    r859 r991  
    22#define __MMcTrig__
    33
    4 #include <stdlib.h>
    5 #include <stdio.h>
    6 #include <string.h>
    7 #include <unistd.h>
    8 #include <fcntl.h> 
    9 
    10 #include <iostream.h>
     4#ifndef MPARCONTAINER_H
    115#include "MParContainer.h"
     6#endif
    127
    138#include "MTriggerDefine.h"
     
    3227  void Clear(Option_t *opt=NULL);
    3328 
    34   void Print(Option_t *);
     29  void Print(Option_t *opt=NULL) const;
    3530
    3631  void SetFirstLevel  ( Short_t nTr ) {
     
    4136  }
    4237
    43   void SetTime( Float_t t, Int_t i){
    44     if (i>TOTAL_TRIGGER_TIME/LEVEL1_DEAD_TIME+1  || i<1){
    45       cout<<"fNumFirstLevel out of range. Time will be -99"<<endl;
    46     }
    47     else{
    48       fTimeFirst[i-1]=t;
    49     }
    50   }
     38  void SetTime( Float_t t, Int_t i);
    5139
    5240  void SetMapPixels(Byte_t *map,Int_t nfirst){
  • trunk/MagicSoft/include-Classes/MMcFormat/MMcTrigHeader.cxx

    r613 r991  
     1#include "MMcTrigHeader.hxx"
     2
    13#include <iostream.h>
    2 #include "MMcTrigHeader.hxx"
    34
    45
     
    1314
    1415
    15 ClassImp(MMcTrigHeader)
     16ClassImp(MMcTrigHeader);
    1617
    1718
     
    4748
    4849
    49 void MMcTrigHeader::Print(Option_t *Option) {
     50void MMcTrigHeader::Print(Option_t *opt) const {
    5051  //
    5152  //  print out the data member on screen
    5253  //
    53 
    54   cout <<endl << "Monte Carlo Trigger output:" <<endl;
    55   cout << " XSTopology Trigger in this run : "<<fTopology<<endl;
    56   cout << " Multiplicity Trigger in this run : "<<fMultiplicity<<endl;
    57   cout << " Trigger Pattern in this run : "<<fTrigPattern[0]<<
    58     fTrigPattern[1]<<endl;
    59   cout << endl ;
     54  cout << endl;
     55  cout << "Monte Carlo Trigger output:" << endl;
     56  cout << " XSTopology Trigger in this run: "   << fTopology << endl;
     57  cout << " Multiplicity Trigger in this run: " << fMultiplicity << endl;
     58  cout << " Trigger Pattern in this run: ";
     59  cout << fTrigPattern[0] << ", " << fTrigPattern[1] << endl;
     60  cout << endl;
    6061}
  • trunk/MagicSoft/include-Classes/MMcFormat/MMcTrigHeader.hxx

    r847 r991  
    22#define __MMcTrigHeader__
    33
    4 #include <stdlib.h>
    5 #include <stdio.h>
    6 #include <string.h>
    7 #include <unistd.h>
    8 #include <fcntl.h> 
    9 
    10 #include <iostream.h>
     4#ifndef MPARCONTAINER_H
    115#include "MParContainer.h"
     6#endif
    127
    138#include "MTriggerDefine.h"
     
    3732  ~MMcTrigHeader();
    3833
    39   void Print(Option_t *);
     34  void Print(Option_t *opt=NULL) const;
    4035 
    4136  void SetTopology(Short_t nTop) {
Note: See TracChangeset for help on using the changeset viewer.