- Timestamp:
- 04/22/03 17:33:59 (22 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r1974 r1982 1 1 -*-*- END OF LINE -*-*- 2 3 2003/04/22: Abelardo Moralejo 4 5 * mmontecarlo/Makefile, MontecarloLinkDef.h 6 - added MMcEnergyEst 7 - added necessary include directories. 8 9 * mmontecarlo/MMcEnergyEst.cc 10 - added filterhadrons.SetHadronnessName(fHadronnessName) to 11 inform the filter about the name of the hadronness container 12 to be used in the cuts. 13 14 * mfilter/MFCT1SelFinal.[h,cc] 15 - added the possibility to cut also in Dist. 2 16 3 17 2003/04/22: Thomas Bretz -
trunk/MagicSoft/Mars/mfilter/MFCT1SelFinal.cc
r1921 r1982 46 46 #include "MMcEvt.hxx" 47 47 #include "MGeomCam.h" 48 #include "MGeomCamCT1.h" 48 49 #include "MGeomPix.h" 49 50 #include "MHadronness.h" … … 68 69 fHadronnessName = "MHadronness"; 69 70 71 MGeomCamCT1 camct1; 72 fMm2Deg = camct1.GetConvMm2Deg(); 73 70 74 // default values of cuts 71 SetCuts(1.0, 100.0 );75 SetCuts(1.0, 100.0, 10.); 72 76 } 73 77 … … 77 81 // 78 82 // 79 void MFCT1SelFinal::SetCuts(Float_t hadmax, Float_t alphamax )83 void MFCT1SelFinal::SetCuts(Float_t hadmax, Float_t alphamax, Float_t distmax) 80 84 { 81 85 fHadronnessMax = hadmax; 82 fAlphaMax = alphamax; 86 fAlphaMax = alphamax; 87 fDistMax = distmax; 83 88 84 89 *fLog << inf << "MFCT1SelFinal cut values : fHadronnessMax, fAlphaMax = " 85 << fHadronnessMax << ", " << fAlphaMax << endl; 90 << fHadronnessMax << ", " << fAlphaMax << ", fDistMax = " << fDistMax 91 << endl; 86 92 } 87 93 … … 150 156 { 151 157 rc = 2; 158 fResult = kTRUE; 159 } 160 161 else if ( fMm2Deg*fHilSrc->GetDist() > fDistMax ) 162 { 163 rc = 3; 152 164 fResult = kTRUE; 153 165 } … … 180 192 << " [degrees]" << endl; 181 193 194 *fLog << " " << setw(7) << fCut[3] << " (" << setw(3) 195 << (int)(fCut[3]*100/GetNumExecutions()) 196 << "%) Evts skipped due to: DIST > " << fDistMax 197 << " [degrees]" << endl; 198 182 199 *fLog << " " << fCut[0] << " (" 183 200 << (int)(fCut[0]*100/GetNumExecutions()) -
trunk/MagicSoft/Mars/mfilter/MFCT1SelFinal.h
r1947 r1982 32 32 33 33 Double_t fMm2Deg; // conversion mm to degrees in camera 34 Int_t fCut[ 3];34 Int_t fCut[4]; 35 35 TString fHilName; 36 36 TString fHilSrcName; … … 39 39 Float_t fHadronnessMax; 40 40 Float_t fAlphaMax; 41 Float_t fDistMax; 41 42 42 43 Bool_t fResult; … … 54 55 Bool_t PostProcess(); 55 56 56 void SetCuts(Float_t hadmax, Float_t alphamax );57 void SetCuts(Float_t hadmax, Float_t alphamax, Float_t distmax); 57 58 58 59 ClassDef(MFCT1SelFinal, 0) // Class to evaluate final cuts -
trunk/MagicSoft/Mars/mmontecarlo/MMcEnergyEst.cc
r1964 r1982 92 92 93 93 MFCT1SelFinal filterhadrons; 94 filterhadrons.SetHadronnessName(fHadronnessName); 94 95 filterhadrons.SetCuts(fMaxHadronness, fMaxAlpha, fMaxDist); 95 96 filterhadrons.SetInverted(); -
trunk/MagicSoft/Mars/mmontecarlo/Makefile
r1978 r1982 22 22 # connect the include files defined in the config.mk file 23 23 # 24 INCLUDES = -I. -I../mbase -I../mmc -I../mhist -I../mhistmc 24 INCLUDES = -I. -I../mbase -I../mmc -I../mhist -I../mhistmc -I../mgeom -I../manalysis -I../mtools -I../mfileio -I../mfilter -I../mdata 25 25 26 26 #------------------------------------------------------------------------------ … … 32 32 MMcTimeGenerate.cc \ 33 33 MMcTriggerRateCalc.cc \ 34 MMcCT1CollectionAreaCalc.cc 34 MMcCT1CollectionAreaCalc.cc \ 35 MMcEnergyEst.cc 35 36 36 37 SRCS = $(SRCFILES) -
trunk/MagicSoft/Mars/mmontecarlo/MonteCarloLinkDef.h
r1821 r1982 10 10 #pragma link C++ class MMcTriggerRateCalc+; 11 11 #pragma link C++ class MMcCT1CollectionAreaCalc+; 12 12 #pragma link C++ class MMcEnergyEst+; 13 13 #endif
Note:
See TracChangeset
for help on using the changeset viewer.