Changeset 991 for trunk/MagicSoft/include-Classes/MMcFormat
- Timestamp:
- 10/26/01 10:11:30 (23 years ago)
- 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 1 3 #include <iostream.h> 2 #include "MMcEvt.hxx"3 4 4 5 … … 12 13 13 14 14 ClassImp(MMcEvt) 15 ClassImp(MMcEvt); 15 16 16 17 … … 137 138 138 139 fPartId = usPId ; 139 fEnergy 140 fEnergy = fEner ; 140 141 141 fTheta 142 fPhi 142 fTheta = fThet ; 143 fPhi = fPhii ; 143 144 144 fCoreD 145 fCoreX 146 fCoreY 147 fImpact 145 fCoreD = fCorD ; 146 fCoreX = fCorX ; 147 fCoreY = fCorY ; 148 fImpact = fImpa ; 148 149 149 150 fPhotIni = uiPin ; … … 157 158 158 159 159 void MMcEvt::Print(Option_t *Option) {160 void MMcEvt::Print(Option_t *Option) const { 160 161 // 161 162 // print out the data member on screen 162 163 // 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; 169 171 } -
trunk/MagicSoft/include-Classes/MMcFormat/MMcEvt.hxx
r883 r991 2 2 #define __MMcEvt__ 3 3 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 9 7 10 #include <iostream.h> 11 #include "MParContainer.h" 8 class MMcEvt : public MParContainer 9 { 10 private: 11 UShort_t fPartId; // Type of particle 12 Float_t fEnergy; // Energy in GeV 12 13 14 Float_t fTheta; // Theta angle of event 15 Float_t fPhi; // Phi angle of event 13 16 14 class MMcEvt : public MParContainer{ 15 private:16 UShort_t fPartId; // Type of particle17 Float_t f Energy; // Energy in GeV17 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 18 21 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 34 29 35 30 public: … … 49 44 50 45 51 void Print(Option_t * );46 void Print(Option_t *opt=NULL) const; 52 47 53 48 Short_t GetPartId() const { return fPartId; } //Get Type of particle -
trunk/MagicSoft/include-Classes/MMcFormat/MMcFadcHeader.cxx
r693 r991 1 #include <iostream.h>2 1 #include "MMcFadcHeader.hxx" 3 2 3 #include <iostream.h> 4 4 5 5 //========== … … 13 13 14 14 15 ClassImp(MMcFadcHeader) 15 ClassImp(MMcFadcHeader); 16 16 17 17 … … 41 41 42 42 43 void MMcFadcHeader::Print(Option_t *Option) {43 void MMcFadcHeader::Print(Option_t *Option) const { 44 44 // 45 45 // print out the data member on screen 46 46 // 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; 53 53 for (int i=0;i<MFADC_CHANNELS;i++){ 54 cout << " Pixel "<<i<<" 54 cout << " Pixel "<<i<<": "<<fPedesMean[i]<<" "<<fElecNoise[i]<<endl; 55 55 } 56 56 cout << endl ; -
trunk/MagicSoft/include-Classes/MMcFormat/MMcFadcHeader.hxx
r859 r991 2 2 #define __MMcFadcHeader__ 3 3 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 9 7 10 #include <iostream.h>11 #include "MParContainer.h"12 13 #include "MTriggerDefine.h"14 8 #include "MFadcDefine.h" 15 9 … … 33 27 ~MMcFadcHeader(); 34 28 35 void Print(Option_t * );29 void Print(Option_t *opt=NULL) const; 36 30 37 31 void SetShape(Float_t shape){ -
trunk/MagicSoft/include-Classes/MMcFormat/MMcTrig.cxx
r686 r991 1 #include "MMcTrig.hxx" 2 1 3 #include <iostream.h> 2 #include "MMcTrig.hxx"3 4 4 5 … … 12 13 13 14 14 ClassImp(MMcTrig) 15 ClassImp(MMcTrig); 15 16 16 17 … … 49 50 } 50 51 52 inline 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 51 63 void MMcTrig::Clear(Option_t *opt) { 52 64 // … … 71 83 } 72 84 73 void MMcTrig::Print(Option_t *Option) {85 void MMcTrig::Print(Option_t *Option) const { 74 86 // 75 87 // print out the data member on screen … … 78 90 79 91 cout <<endl << "Monte Carlo Trigger output:" <<endl; 80 cout << " First Level Trigger in this Event 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: "; 82 94 for (i=0;i<fNumFirstLevel;i++){ 83 95 cout<< fTimeFirst[i]<<"-"; … … 91 103 } 92 104 cout<<endl; 93 cout << " Second Level Trigger in this Event 105 cout << " Second Level Trigger in this Event: " << fNumSecondLevel << endl; 94 106 cout << endl ; 95 107 } -
trunk/MagicSoft/include-Classes/MMcFormat/MMcTrig.hxx
r859 r991 2 2 #define __MMcTrig__ 3 3 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 11 5 #include "MParContainer.h" 6 #endif 12 7 13 8 #include "MTriggerDefine.h" … … 32 27 void Clear(Option_t *opt=NULL); 33 28 34 void Print(Option_t * );29 void Print(Option_t *opt=NULL) const; 35 30 36 31 void SetFirstLevel ( Short_t nTr ) { … … 41 36 } 42 37 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); 51 39 52 40 void SetMapPixels(Byte_t *map,Int_t nfirst){ -
trunk/MagicSoft/include-Classes/MMcFormat/MMcTrigHeader.cxx
r613 r991 1 #include "MMcTrigHeader.hxx" 2 1 3 #include <iostream.h> 2 #include "MMcTrigHeader.hxx"3 4 4 5 … … 13 14 14 15 15 ClassImp(MMcTrigHeader) 16 ClassImp(MMcTrigHeader); 16 17 17 18 … … 47 48 48 49 49 void MMcTrigHeader::Print(Option_t * Option){50 void MMcTrigHeader::Print(Option_t *opt) const { 50 51 // 51 52 // print out the data member on screen 52 53 // 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; 60 61 } -
trunk/MagicSoft/include-Classes/MMcFormat/MMcTrigHeader.hxx
r847 r991 2 2 #define __MMcTrigHeader__ 3 3 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 11 5 #include "MParContainer.h" 6 #endif 12 7 13 8 #include "MTriggerDefine.h" … … 37 32 ~MMcTrigHeader(); 38 33 39 void Print(Option_t * );34 void Print(Option_t *opt=NULL) const; 40 35 41 36 void SetTopology(Short_t nTop) {
Note:
See TracChangeset
for help on using the changeset viewer.