CMS 3D CMS Logo

EcalMatacqDigi.cc
Go to the documentation of this file.
1 // -*- Mode: C++; c-basic-offset: 2; indent-tabs-mode: t; tab-width: 8; -*-
3 
4 using namespace std;
5 
6 const double EcalMatacqDigi::lsb_ = 0.25e-3; // in Volt
7 
8 #if 0
9 void EcalMatacqDigi::setSize(const int& size) {
10  if (size<0) size_=0;
11  else if (size>MAXSAMPLES) size_=MAXSAMPLES;
12  else size_=size;
13 }
14 #endif
15 
16 std::ostream& operator<<(std::ostream& s, const EcalMatacqDigi& digi) {
17  s << digi.size() << " samples " << std::endl;
18  for (int i = 0; i < digi.size(); i++) {
19  s << " " << digi.amplitudeV(i) << std::endl;
20  }
21  return s;
22 }
23 
25  data_.swap(a.data_);
26  std::swap(chId_, a.chId_);
27  std::swap(ts_, a.ts_);
28  std::swap(tTrigS_, a.tTrigS_);
29  std::swap(version_, a.version_);
30 #if (ECAL_MATACQ_DIGI_VERS >= 2)
31  std::swap(bxId_, a.bxId_);
32  std::swap(l1a_, a.l1a_);
33  std::swap(triggerType_, a.triggerType_);
34  std::swap(orbitId_, a.orbitId_);
35  std::swap(trigRec_, a.trigRec_);
36  std::swap(postTrig_, a.postTrig_);
37  std::swap(vernier_, a.vernier_);
38  std::swap(delayA_, a.delayA_);
39  std::swap(emtcDelay_, a.emtcDelay_);
40  std::swap(emtcPhase_, a.emtcPhase_);
41  std::swap(attenuation_dB_, a.attenuation_dB_);
42  std::swap(laserPower_, a.laserPower_);
43  std::swap(tv_sec_, a.tv_sec_);
44  std::swap(tv_usec_, a.tv_usec_);
45 #endif
46 }
size
Write out results.
static const double lsb_
std::vector< Int_t > vernier_
void swap(edm::DataFrameContainer &lhs, edm::DataFrameContainer &rhs)
std::ostream & operator<<(std::ostream &out, const std::tuple< Types... > &value)
Definition: Utilities.h:32
void swap(std::vector< short > &samples)
int size() const
const float amplitudeV(const int &i) const
std::vector< Short_t > data_
double a
Definition: hdecay.h:119