source: trunk/MagicSoft/Mars/mhist/MHMcRate.h@ 1183

Last change on this file since 1183 was 1165, checked in by blanch, 23 years ago
Header file for MHMcRate.cc version 1.10.
File size: 2.1 KB
Line 
1#ifndef MARS_MHMcRate
2#define MARS_MHMcRate
3
4#ifndef MARS_MParContainer
5#include "MParContainer.h"
6#endif
7
8class MHMcRate : public MParContainer
9{
10
11private:
12 UShort_t fPartId; // Type of particle
13
14 Float_t fEnergyMax; // Maximum Energy in GeV
15 Float_t fEnergyMin; // Minimum Energy in GeV
16
17 Float_t fThetaMax; // Maximum theta angle of run
18 Float_t fThetaMin; // Minimum theta angle of run
19 Float_t fPhiMax; // Maximum phi angle of run
20 Float_t fPhiMin; // Minimum phi angle of run
21
22 Float_t fImpactMax; // Maximum impact parameter
23 Float_t fImpactMin; // Minimum impact parameter
24
25 Float_t fBackTrig; // Number of triggers from background
26 Float_t fBackSim; // Number of simulated showers for the background
27
28 Float_t fSpecIndex; // dn/dE = k * e^{- fSpecIndex}
29 Float_t fFlux0; // dn/dE = fFlux0 * E^{-a}
30
31 Float_t fShowerRate; // Showers rate in Hz
32 Float_t fShowerRateError; // Estimated error of shower rate in Hz
33
34 Float_t fTriggerRate; // Trigger rate in Hz
35 Float_t fTriggerRateError; // Estimated error for the trigger rate in Hz
36
37 void Init(const char *name, const char *title);
38
39public:
40
41 MHMcRate(const char *name=NULL, const char *title=NULL);
42 MHMcRate(Float_t showrate,
43 const char *name=NULL, const char *title=NULL);
44 MHMcRate(Float_t specindex, Float_t flux0,
45 const char *name=NULL, const char *title=NULL);
46
47 void SetParticle(UShort_t part);
48 void SetBackground(Float_t showers, Float_t triggers);
49 void SetFlux(Float_t flux0, Float_t specindx);
50 void SetIncidentRate(Float_t showerrate);
51
52 void UpdateBoundaries(Float_t energy, Float_t theta, Float_t phi, Float_t impact);
53
54 void CalcRate(Float_t trig, Float_t anal, Float_t simu);
55
56 void Print(Option_t *o=NULL) const;
57
58 void Draw(Option_t *o=NULL);
59 TObject *DrawClone(Option_t *o=NULL) const;
60
61 ClassDef(MHMcRate, 1) // Data Container to calculate Collection Area
62};
63
64#endif
Note: See TracBrowser for help on using the repository browser.