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

Last change on this file since 896 was 896, checked in by tbretz, 23 years ago
*** empty log message ***
File size: 1.9 KB
Line 
1#ifndef MHMCRATE_H
2#define MHMCRATE_H
3
4#ifndef MAGIC_H
5#include "MAGIC.h"
6#endif
7#ifndef MPARCONTAINER_H
8#include "MParContainer.h"
9#endif
10
11#define PI_NUMBER 3.1415926
12
13class MHMcRate : public MParContainer {
14
15 private:
16 UShort_t fPartId; // Type of particle
17
18 Float_t fEnergyMax; // Maximum Energy in GeV
19 Float_t fEnergyMin; // Minimum Energy in GeV
20
21 Float_t fThetaMax; // Maximum theta angle of run
22 Float_t fThetaMin; // Minimum theta angle of run
23 Float_t fPhiMax; // Maximum phi angle of run
24 Float_t fPhiMin; // Minimum phi angle of run
25
26 Float_t fImpactMax; // Maximum impact parameter
27 Float_t fImpactMin; // Minimum impact parameter
28
29 Float_t fBackTrig; // Number of triggers from background
30 Float_t fBackSim; // Number of simulated showers for the background
31
32 Float_t fSpecIndex; // dn/dE = k * e^{- fSpecIndex}
33 Float_t fFlux0; // dn/dE = fFlux0 * E^{-a}
34
35 Float_t fShowRate; // Showers rate in Hz
36 Float_t fShowRateError; // Estimated error of shower rate in Hz
37
38 Float_t fTrigRate; // Trigger rate in Hz
39 Float_t fTrigRateError; // Estimated error for the trigger rate in Hz
40
41 void Init(const char *name, const char *title);
42
43 public:
44
45 MHMcRate(const char *name=NULL, const char *title=NULL) ;
46 MHMcRate(Float_t ShowRate,
47 const char *name=NULL, const char *title=NULL) ;
48 MHMcRate(Float_t SpecIndex, Float_t Flux0,
49 const char *name=NULL, const char *title=NULL) ;
50 ~MHMcRate() ;
51
52 void SetParticle(UShort_t part);
53 void SetBackground (Float_t Showers, Float_t Triggers);
54
55 void Boundaries(Float_t Energy, Float_t Theta, Float_t Phi, Float_t Impact);
56
57 void CalcRate(Float_t trig, Float_t anal, Float_t simu);
58
59 void Print();
60 void Draw(const Option_t *);
61
62 ClassDef(MHMcRate, 1) // Data Container to calculate Collection Area
63} ;
64
65#endif
Note: See TracBrowser for help on using the repository browser.