Main Page
Namespaces
Classes
Package Documentation
CVS Directory
WorkBook
Offline Guide
Release schedule
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
SimMuon
CSCDigitizer
src
CSCCrossGap.cc
Go to the documentation of this file.
1
#include "
FWCore/MessageLogger/interface/MessageLogger.h
"
2
#include "
SimMuon/CSCDigitizer/src/CSCCrossGap.h
"
3
#include <cmath>
4
5
#include <iostream>
6
CSCCrossGap::CSCCrossGap
(
double
mass
,
float
mom,
LocalVector
gap)
7
: theBeta2(0.), theGamma(1.), loggam(0.), theGap(gap),
clusters
(), electronsInClusters(),
steps
(), elosses() {
8
logGamma
(mass, mom);
9
LogTrace
(
"CSCCrossGap"
) <<
"CSCCrossGap: simhit \n"
10
<<
"mass = "
<< mass <<
"GeV/c2, momentum = "
<< mom <<
" GeV/c, gap length = "
<<
length
()
11
<<
" cm \n"
;
12
}
13
14
double
CSCCrossGap::logGamma
(
double
mass
,
float
mom) {
15
theGamma
=
sqrt
((mom / mass) * (mom / mass) + 1.);
16
theBeta2
= 1. - 1. / (
theGamma
*
theGamma
);
17
LogTrace
(
"CSCCrossGap"
) <<
"gamma = "
<<
theGamma
<<
", beta2 = "
<<
theBeta2
18
<<
", beta*gamma = "
<<
sqrt
(
theGamma
*
theGamma
- 1.);
19
;
20
21
// The lowest value in table (=theGammaBins[0]) is ln(1.1)=0.0953102
22
// (Compensate later if lower)
23
loggam
=
log
(
std::max
(1.1,
theGamma
));
// F-P literal IS double by default!
24
LogTrace
(
"CSCCrossGap"
) <<
"logGamma = "
<<
loggam
;
25
26
return
loggam
;
27
}
log
static std::vector< std::string > checklist log
Definition:
LHERunInfoProduct.cc:179
MessageLogger.h
relval_machine.steps
tuple steps
Definition:
relval_machine.py:9
Vector3DBase< float, LocalTag >
CSCCrossGap.h
LogTrace
#define LogTrace(id)
Definition:
MessageLogger.h:234
HLT_FULL_cff.clusters
tuple clusters
Definition:
HLT_FULL_cff.py:51039
mathSSE::sqrt
T sqrt(T t)
Definition:
SSEVec.h:19
SiStripPI::max
Definition:
SiStripPayloadInspectorHelper.h:169
CSCCrossGap::loggam
double loggam
Definition:
CSCCrossGap.h:59
CSCCrossGap::theBeta2
double theBeta2
Definition:
CSCCrossGap.h:57
CSCCrossGap::length
float length() const
Definition:
CSCCrossGap.h:54
CSCCrossGap::theGamma
double theGamma
Definition:
CSCCrossGap.h:58
ResonanceBuilder.mass
dictionary mass
Definition:
ResonanceBuilder.py:8
CSCCrossGap::logGamma
double logGamma()
Definition:
CSCCrossGap.h:49
CSCCrossGap::CSCCrossGap
CSCCrossGap(double mass, float mom, LocalVector gap)
Definition:
CSCCrossGap.cc:6
Generated for CMSSW Reference Manual by
1.8.5