Main Page
Namespaces
Classes
Package Documentation
SimMuon
CSCDigitizer
src
CSCCrossGap.cc
Go to the documentation of this file.
1
#include "
SimMuon/CSCDigitizer/src/CSCCrossGap.h
"
2
#include "
FWCore/MessageLogger/interface/MessageLogger.h
"
3
#include <cmath>
4
5
#include <iostream>
6
CSCCrossGap:: CSCCrossGap
(
double
mass
,
float
mom,
LocalVector
gap)
7
: theBeta2(0.),
8
theGamma(1.),
9
loggam(0.),
10
theGap(gap),
11
clusters
(),
12
electronsInClusters(),
13
steps
(),
14
elosses()
15
{
16
logGamma
( mass, mom);
17
LogTrace
(
"CSCCrossGap"
)
18
<<
"CSCCrossGap: simhit \n"
19
<<
"mass = "
<< mass <<
"GeV/c2, momentum = "
<< mom <<
20
" GeV/c, gap length = "
<<
length
() <<
" cm \n"
;
21
}
22
23
double
CSCCrossGap::logGamma
(
double
mass
,
float
mom )
24
{
25
theGamma
=
sqrt
((mom/mass)*(mom/mass) + 1. );
26
theBeta2
= 1. - 1./(
theGamma
*
theGamma
);
27
double
betgam =
sqrt
(
theGamma
*
theGamma
-1.);
28
LogTrace
(
"CSCCrossGap"
) <<
"gamma = "
<<
theGamma
<<
", beta2 = "
<<
theBeta2
<<
29
", beta*gamma = "
<< betgam;
30
31
// The lowest value in table (=theGammaBins[0]) is ln(1.1)=0.0953102
32
// (Compensate later if lower)
33
loggam
=
log
(
std::max
(1.1,
theGamma
) );
// F-P literal IS double by default!
34
LogTrace
(
"CSCCrossGap"
) <<
"logGamma = "
<<
loggam
;
35
36
return
loggam
;
37
}
38
customisers.steps
steps
Definition:
customisers.py:39
MessageLogger.h
hpstanc_transforms.max
max
Definition:
hpstanc_transforms.py:5
Vector3DBase< float, LocalTag >
CSCCrossGap.h
mathSSE::sqrt
T sqrt(T t)
Definition:
SSEVec.h:18
LogTrace
#define LogTrace(id)
Definition:
PFTrackAlgoTools.cc:504
CSCCrossGap::loggam
double loggam
Definition:
CSCCrossGap.h:61
fastPrimaryVertexProducer_cfi.clusters
clusters
Definition:
fastPrimaryVertexProducer_cfi.py:5
cmsBatch.log
log
Definition:
cmsBatch.py:341
CSCCrossGap::theBeta2
double theBeta2
Definition:
CSCCrossGap.h:59
CSCCrossGap::length
float length() const
Definition:
CSCCrossGap.h:55
CSCCrossGap::theGamma
double theGamma
Definition:
CSCCrossGap.h:60
CSCCrossGap::logGamma
double logGamma()
Definition:
CSCCrossGap.h:50
CSCCrossGap::CSCCrossGap
CSCCrossGap(double mass, float mom, LocalVector gap)
Definition:
CSCCrossGap.cc:6
ResonanceBuilder.mass
mass
Definition:
ResonanceBuilder.py:8
Generated for CMSSW Reference Manual by
1.8.11