Changeset 1809 for trunk/MagicSoft/Mars/manalysis/MSelBasic.cc
- Timestamp:
- 03/08/03 14:00:30 (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/manalysis/MSelBasic.cc
r1762 r1809 44 44 #include "MGeomCam.h" 45 45 #include "MPedestalCam.h" 46 #include "MPedestalPix.h" 46 47 #include "MGeomPix.h" 47 48 … … 119 120 Bool_t MSelBasic::Process() 120 121 { 122 /* 123 //$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ 124 *fLog << "=========================================================" << endl; 125 *fLog << "" << endl; 126 *fLog << "MmcEvt data : " << endl; 127 *fLog << "" << endl; 128 fMcEvt->Print(); 129 *fLog << "" << endl; 130 *fLog << "PartId() = " << fMcEvt->GetPartId() << endl; 131 *fLog << "Energy() = " << fMcEvt->GetEnergy() << endl; 132 *fLog << "Theta() = " << fMcEvt->GetTheta() << endl; 133 134 *fLog << "Phi() = " << fMcEvt->GetPhi() << endl; 135 //*fLog << "CoreD() = " << fMcEvt->GetCoreD() << endl; 136 //*fLog << "CoreX() = " << fMcEvt->GetCoreX() << endl; 137 138 //*fLog << "CoreY() = " << fMcEvt->GetCoreY() << endl; 139 *fLog << "Impact() = " << fMcEvt->GetImpact() << endl; 140 //*fLog << "PhotIni()= " << fMcEvt->GetPhotIni() << endl; 141 142 //*fLog << "PassPhotAtm() = " << fMcEvt->GetPassPhotAtm() << endl; 143 //*fLog << "PassPhotRef() = " << fMcEvt->GetPassPhotRef() << endl; 144 //*fLog << "PassPhotCone() = " << fMcEvt->GetPassPhotCone() << endl; 145 146 //*fLog << "PhotElfromShower() = " << fMcEvt->GetPhotElfromShower() << endl; 147 //*fLog << "PhotElinCamera() = " << fMcEvt->GetPhotElinCamera() << endl; 148 *fLog << "TelescopePhi() = " << fMcEvt->GetTelescopePhi() << endl; 149 150 *fLog << "TelescopeTheta() = " << fMcEvt->GetTelescopeTheta() << endl; 151 *fLog << "Impact() = " << fMcEvt->GetImpact() << endl; 152 //*fLog << "PhotIni()= " << fMcEvt->GetPhotIni() << endl; 153 *fLog << "" << endl; 154 *fLog << "=========================================================" << endl; 155 156 *fLog << "=========================================================" << endl; 157 *fLog << "" << endl; 158 *fLog << "MPedestalPix data : " << endl; 159 *fLog << "" << endl; 160 161 Int_t ntot; 162 ntot = fPed->GetSize(); 163 *fLog << "MeanRms() :" << endl; 164 for (Int_t i=0; i<ntot; i++) 165 { 166 MPedestalPix &pix = (*fPed)[i]; 167 //*fLog << "Mean() = " << i << ", " << pix.GetMean() << endl; 168 //*fLog << "Sigma() = " << i << ", " << pix.GetSigma() << endl; 169 *fLog << pix.GetMeanRms() << " "; 170 //*fLog << "SigmaRms()= " << i << ", " << pix.GetSigmaRms() << endl; 171 } 172 *fLog << "" << endl; 173 174 *fLog << "" << endl; 175 ntot = fEvt->GetNumPixels(); 176 *fLog << "MCerPhotPix : pix.GetNumPhotons()" << endl; 177 for (Int_t i=0; i<ntot; i++) 178 { 179 MCerPhotPix &pix = (*fEvt)[i]; 180 *fLog << pix.GetNumPhotons() << " "; 181 } 182 *fLog << "" << endl; 183 184 *fLog << "" << endl; 185 ntot = fEvt->GetNumPixels(); 186 *fLog << "MCerPhotPix : pix.GetErrorPhot()" << endl; 187 for (Int_t i=0; i<ntot; i++) 188 { 189 MCerPhotPix &pix = (*fEvt)[i]; 190 *fLog << pix.GetErrorPhot() << " "; 191 } 192 *fLog << "" << endl; 193 194 //$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ 195 */ 196 197 121 198 Int_t rc = 0; 122 199 123 //if ( fRawRun->GetRunNumber() < 1 025)200 //if ( fRawRun->GetRunNumber() < 16279 ) 124 201 //{ 125 202 // rc = 1; … … 128 205 129 206 Double_t Theta = kRad2Deg*fMcEvt->GetTelescopeTheta(); 130 if (Theta > 45.0 || !SwTrigger() ) 131 { 132 //*fLog << "MSelBasic::Process; Theta = " << Theta << endl; 207 if ( Theta < 0.0 ) 208 { 209 *fLog << "MSelBasic::Process; Run, Event, Theta = " 210 << fRawRun->GetRunNumber()<< ", " 211 << fMcEvt->GetEvtNumber() << ", " << Theta << endl; 133 212 rc = 1; 213 } 214 215 else if ( Theta > 45.0 ) 216 { 217 rc = 2; 218 } 219 220 else if ( !SwTrigger() ) 221 { 222 //*fLog << "MSelBasic::Process; SwTrigger = " << SwTrigger << endl; 223 rc = 3; 134 224 } 135 225 … … 223 313 *fLog << GetDescriptor() << " execution statistics:" << endl; 224 314 *fLog << dec << setfill(' '); 225 *fLog << " " << setw(7) << fErrors[1] << " (" << setw(3) << (int)(fErrors[1]*100/GetNumExecutions()) << "%) Evts skipped due to: Basic selections are not fullfilled" << endl; 315 *fLog << " " << setw(7) << fErrors[1] << " (" << setw(3) << (int)(fErrors[1]*100/GetNumExecutions()) << "%) Evts skipped due to: Zenith angle < 0" << endl; 316 317 *fLog << " " << setw(7) << fErrors[2] << " (" << setw(3) << (int)(fErrors[2]*100/GetNumExecutions()) << "%) Evts skipped due to: Zenith angle too high" << endl; 318 319 *fLog << " " << setw(7) << fErrors[3] << " (" << setw(3) << (int)(fErrors[3]*100/GetNumExecutions()) << "%) Evts skipped due to: Software trigger not fullfilled" << endl; 226 320 227 321 *fLog << " " << fErrors[0] << " (" << (int)(fErrors[0]*100/GetNumExecutions()) << "%) Evts survived Basic selections!" << endl; … … 230 324 return kTRUE; 231 325 } 326
Note:
See TracChangeset
for help on using the changeset viewer.