CMS 3D CMS Logo

Classes | Typedefs | Functions

/data/refman/pasoursint/CMSSW_6_1_2_SLHC2_patch1/src/DataFormats/HcalDigi/interface/HcalUpgradeDataFrame.h File Reference

#include <vector>
#include <ostream>
#include "DataFormats/HcalDetId/interface/HcalDetId.h"
#include "DataFormats/Common/interface/SortedCollection.h"

Go to the source code of this file.

Classes

class  HcalUpgradeDataFrame

Typedefs

typedef edm::SortedCollection
< HcalUpgradeDataFrame
HcalUpgradeDigiCollection

Functions

std::ostream & operator<< (std::ostream &, const HcalUpgradeDataFrame &)

Typedef Documentation

Definition at line 53 of file HcalUpgradeDataFrame.h.


Function Documentation

std::ostream& operator<< ( std::ostream &  ,
const HcalUpgradeDataFrame  
)

Definition at line 55 of file HcalUpgradeDataFrame.cc.

References HcalUpgradeDataFrame::adc(), HcalUpgradeDataFrame::capId(), i, HcalUpgradeDataFrame::id(), HcalUpgradeDataFrame::presamples(), alignCSCRings::s, HcalUpgradeDataFrame::size(), HcalUpgradeDataFrame::tdc(), and HcalUpgradeDataFrame::valid().

                                                                        {
    s << digi.id() << " " << digi.size() << " samples  " << digi.presamples() << " presamples \n";
    for (int i=0; i<digi.size(); i++) {
        if ( i < digi.presamples() ) s << " (PRE) " ;
        else s << "       " ;
        s << int(digi.capId(i)) << " (capId)  ";
        s << int(digi.adc(i)) << " (adc)  " ;
        s << int(digi.tdc(i)) << " (tdc)  " ;
        if ( digi.valid(i) ) s << " (DV) " ; 
        s << std::endl ;
    }
    return s;
}