Changeset 3848 for trunk/MagicSoft/Mars
- Timestamp:
- 04/27/04 14:03:12 (21 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r3846 r3848 18 18 19 19 -*-*- END OF LINE -*-*- 20 21 2004/04/26: Abelardo Moralejo 22 23 * mhistmc/MHMcCollectionArea.[h,cc] 24 - Added fMCAreaRadius and setter to allow changing the radius of 25 the circular area in which MC events are produced. Useful for 26 instance for stereo configuration studies. By default it is 300 m 27 as was assumed before. 20 28 21 29 2004/04/26: Markus Gaug -
trunk/MagicSoft/Mars/mhistmc/MHMcCollectionArea.cc
r2606 r3848 55 55 // 56 56 MHMcCollectionArea::MHMcCollectionArea(const char *name, const char *title) 57 : fMCAreaRadius(300.) 57 58 { 58 59 // initialize the histogram for the distribution r vs E … … 256 257 // 257 258 const Float_t r1 = 0; 258 const Float_t r2 = 300;259 260 *fLog << warn << endl << dbginf << "WARNING! I will assume a maximum impact parameter of 300meters for the MC events. Check that this is the true one!" <<endl<<endl;259 const Float_t r2 = fMCAreaRadius; 260 261 *fLog << warn << endl << dbginf << "WARNING! I will assume a maximum impact parameter of " << fMCAreaRadius << " meters for the MC events. Check that this is the true one!" <<endl<<endl; 261 262 const Float_t total_area = TMath::Pi() * (r2*r2 - r1*r1); 262 263 -
trunk/MagicSoft/Mars/mhistmc/MHMcCollectionArea.h
r2250 r3848 19 19 20 20 TH1D *fHistCol; // the collection area 21 22 Float_t fMCAreaRadius; // [m] Radius of circle within which the cores 23 // of Corsika events have been uniformly 24 // distributed. 21 25 22 26 void Calc(TH2D &hsel, TH2D &hall); … … 45 49 void Calc(const MHMcEfficiency &heff); 46 50 51 void SetMCAreaRadius(Float_t x) { fMCAreaRadius = x; } 52 47 53 ClassDef(MHMcCollectionArea, 1) // Data Container to calculate Collection Area 48 54 };
Note:
See TracChangeset
for help on using the changeset viewer.