Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
SimCalorimetry
HcalSimAlgos
src
HPDNoiseDataFrame.cc
Go to the documentation of this file.
1
// --------------------------------------------------------
2
// Object to store all timeslices of noise signal frame
3
// Project: HPD noise library
4
// Author: F.Ratnikov UMd, Jan. 15, 2008
5
// $Id: HPDNoiseDataFrame.cc,v 1.2 2008/01/16 17:36:00 fedor Exp $
6
// --------------------------------------------------------
7
8
#include "
SimCalorimetry/HcalSimAlgos/interface/HPDNoiseDataFrame.h
"
9
10
HPDNoiseDataFrame::HPDNoiseDataFrame
(
HcalDetId
fId,
const
float
* fCharges)
11
: mId (fId.rawId())
12
{
13
for
(
size_t
i
= 0;
i
< FRAMESIZE; ++
i
)
mCharge
[
i
] = fCharges[
i
];
14
}
15
16
HPDNoiseDataFrame::~HPDNoiseDataFrame
() {}
17
18
std::ostream&
operator<<
(std::ostream& fStream,
const
HPDNoiseDataFrame
& fFrame) {
19
fStream << fFrame.
id
();
20
for
(
size_t
i
= 0;
i
< FRAMESIZE; ++
i
) fStream <<
' '
<<
i
<<
':'
<< fFrame.
charge
(
i
);
21
return
fStream;
22
}
i
int i
Definition:
DBlmapReader.cc:9
HPDNoiseDataFrame::charge
float charge(unsigned i) const
charges corresponding to one timeslice of the channel
Definition:
HPDNoiseDataFrame.h:30
HPDNoiseDataFrame::~HPDNoiseDataFrame
virtual ~HPDNoiseDataFrame()
Definition:
HPDNoiseDataFrame.cc:16
operator<<
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition:
ALILine.cc:187
HPDNoiseDataFrame::HPDNoiseDataFrame
HPDNoiseDataFrame()
Definition:
HPDNoiseDataFrame.h:24
HcalDetId
Definition:
HcalDetId.h:18
HPDNoiseDataFrame
Definition:
HPDNoiseDataFrame.h:22
HPDNoiseDataFrame::id
HcalDetId id() const
detId for the frame
Definition:
HPDNoiseDataFrame.h:28
HPDNoiseDataFrame.h
HPDNoiseDataFrame::mCharge
float mCharge[10]
Definition:
HPDNoiseDataFrame.h:35
Generated for CMSSW Reference Manual by
1.8.5