Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
SimMuon
CSCDigitizer
src
CSCAnalogSignal.cc
Go to the documentation of this file.
1
#include "
SimMuon/CSCDigitizer/src/CSCAnalogSignal.h
"
2
#include <iostream>
3
#include <algorithm>
4
5
// =================================
6
float
CSCAnalogSignal::peakTime
()
const
{
7
size_t
imax = std::max_element(
theBinValues
.begin(),
theBinValues
.end()) -
theBinValues
.begin();
8
return
imax/
invBinSize
+
theTimeOffset
;
9
}
10
11
12
std::ostream &
operator<<
(std::ostream &
stream
,
const
CSCAnalogSignal
& signal) {
13
stream <<
"CSCAnalogSignal: Element "
<< signal.
theElement
14
<<
" Total "
<< signal.
theTotal
<< std::endl;
15
for
(
int
i
= 0;
i
< int( signal.
theBinValues
.size() ); ++
i
) {
16
17
//@@ ptc 26-Feb-02 Don't both with very small amplitudes
18
19
if
( signal.
theBinValues
[
i
] > 1.E-10 ) {
20
stream <<
i
*signal.
getBinSize
()+signal.
getTimeOffset
() <<
21
"\t"
<< signal.
theBinValues
[
i
] << std::endl;
22
}
23
}
24
return
stream
;
25
}
26
i
int i
Definition:
DBlmapReader.cc:9
CSCAnalogSignal::getBinSize
float getBinSize() const
Definition:
CSCAnalogSignal.h:76
CSCAnalogSignal::theTimeOffset
float theTimeOffset
Definition:
CSCAnalogSignal.h:124
CSCAnalogSignal.h
operator<<
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition:
ALILine.cc:187
CSCAnalogSignal::theTotal
float theTotal
Definition:
CSCAnalogSignal.h:123
CSCAnalogSignal::theBinValues
std::vector< float > theBinValues
Definition:
CSCAnalogSignal.h:122
CSCAnalogSignal::theElement
int theElement
Definition:
CSCAnalogSignal.h:120
CSCAnalogSignal::getTimeOffset
float getTimeOffset() const
Definition:
CSCAnalogSignal.h:78
CSCAnalogSignal::invBinSize
float invBinSize
Definition:
CSCAnalogSignal.h:121
CSCAnalogSignal::peakTime
float peakTime() const
the time when the signal peaks
Definition:
CSCAnalogSignal.cc:6
CSCAnalogSignal
Definition:
CSCAnalogSignal.h:33
edmStreamStallGrapher.stream
tuple stream
Definition:
edmStreamStallGrapher.py:54
Generated for CMSSW Reference Manual by
1.8.5