CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
EcalMatacqDigi.cc
Go to the documentation of this file.
1 // -*- Mode: C++; c-basic-offset: 2; indent-tabs-mode: t; tab-width: 8; -*-
2 // $Id: EcalMatacqDigi.cc,v 1.6 2011/08/30 18:42:58 wmtan Exp $
4 
5 using namespace std;
6 
7 const double EcalMatacqDigi::lsb_ = 0.25e-3;// in Volt
8 
9 #if 0
10 void EcalMatacqDigi::setSize(const int& size) {
11  if (size<0) size_=0;
12  else if (size>MAXSAMPLES) size_=MAXSAMPLES;
13  else size_=size;
14 }
15 #endif
16 
17 std::ostream& operator<<(std::ostream& s, const EcalMatacqDigi& digi) {
18  s << digi.size() << " samples " << std::endl;
19  for (int i=0; i<digi.size(); i++){
20  s << " " << digi.amplitudeV(i) << std::endl;
21  }
22  return s;
23 }
24 
26  data_.swap(a.data_);
27  std::swap(chId_, a.chId_);
28  std::swap(ts_, a.ts_);
29  std::swap(tTrigS_, a.tTrigS_);
30  std::swap(version_, a.version_);
31 #if (ECAL_MATACQ_DIGI_VERS>=2)
32  std::swap(bxId_, a.bxId_);
33  std::swap(l1a_, a.l1a_);
34  std::swap(triggerType_, a.triggerType_);
35  std::swap(orbitId_, a.orbitId_);
36  std::swap(trigRec_, a.trigRec_);
37  std::swap(postTrig_, a.postTrig_);
38  std::swap(vernier_, a.vernier_);
39  std::swap(delayA_, a.delayA_);
40  std::swap(emtcDelay_, a.emtcDelay_);
41  std::swap(emtcPhase_, a.emtcPhase_);
42  std::swap(attenuation_dB_, a.attenuation_dB_);
43  std::swap(laserPower_, a.laserPower_);
44  std::swap(tv_sec_, a.tv_sec_);
45  std::swap(tv_usec_, a.tv_usec_);
46 #endif
47 }
int i
Definition: DBlmapReader.cc:9
static const double lsb_
ostream & operator<<(std::ostream &o, vector< std::string > const &iValue)
Definition: refresh.cc:46
std::vector< Int_t > vernier_
void swap(edm::DataFrameContainer &lhs, edm::DataFrameContainer &rhs)
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:121
size_(0)
Definition: OwnArray.h:181
tuple size
Write out results.