#include <GeneratorInterface/CosmicMuonGenerator/interface/CMSCGENnorm.h>
Public Member Functions | |
CMSCGENnorm () | |
int | events_n100cos (double energy, double theta) |
float | norm (int n100cos) |
~CMSCGENnorm () | |
Private Attributes | |
float | flux |
int | n |
int | n100 |
int | n100cos |
float | Nnorm |
Definition at line 31 of file CMSCGENnorm.h.
CMSCGENnorm::CMSCGENnorm | ( | ) | [inline] |
CMSCGENnorm::~CMSCGENnorm | ( | ) | [inline] |
int CMSCGENnorm::events_n100cos | ( | double | energy, | |
double | theta | |||
) |
Definition at line 15 of file CMSCGENnorm.cc.
References funct::cos(), n100, n100cos, and Pi.
Referenced by CosmicMuonGenerator::nextEvent(), and CosmicMuonGenerator::terminate().
00016 { 00017 if(energy > 99.5 && energy < 100.5){ 00018 n100=n100+1; 00019 00020 if(1.-cos(theta) < 1./(2.*Pi)) { //theta is in rad 00021 n100cos = n100cos + 1 ; 00022 } 00023 } 00024 return n100cos; 00025 }
float CMSCGENnorm::norm | ( | int | n100cos | ) |
Definition at line 31 of file CMSCGENnorm.cc.
References flux, n, and Nnorm.
Referenced by CosmicMuonGenerator::terminate().
00032 { 00033 flux = 2.63e-3 ; // +- 0.06e-3 [1/m**2/sr/GeV/s] 00034 00035 n = n100cos ; // [1/sr/GeV] 00036 00037 //rate=N/runtime --> Nnorm ~ (1/runtime/m^2 at surface plane) as rate corresponds to known flux 00038 Nnorm = flux/n ; 00039 00040 //err of Nnorm = Nnorm* 1/sqrt(n) 00041 00042 return Nnorm; 00043 }
float CMSCGENnorm::flux [private] |
int CMSCGENnorm::n [private] |
int CMSCGENnorm::n100 [private] |
Definition at line 36 of file CMSCGENnorm.h.
Referenced by CMSCGENnorm(), events_n100cos(), and ~CMSCGENnorm().
int CMSCGENnorm::n100cos [private] |
Definition at line 37 of file CMSCGENnorm.h.
Referenced by CMSCGENnorm(), events_n100cos(), and ~CMSCGENnorm().
float CMSCGENnorm::Nnorm [private] |