CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions
CSCEventData.cc File Reference
#include "EventFilter/CSCRawToDigi/interface/CSCEventData.h"
#include "EventFilter/CSCRawToDigi/interface/CSCCFEBData.h"
#include "EventFilter/CSCRawToDigi/interface/cscPackerCompare.h"
#include "EventFilter/CSCRawToDigi/interface/bitset_append.h"
#include "DataFormats/CSCDigi/interface/CSCStripDigi.h"
#include "DataFormats/CSCDigi/interface/CSCConstants.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "FWCore/Utilities/interface/Exception.h"
#include <iostream>
#include <iterator>

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &os, const CSCEventData &evt)
 

Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const CSCEventData evt 
)

Definition at line 513 of file CSCEventData.cc.

References CSCDetId::maxLayerId(), CSCDetId::minLayerId(), CSCEventData::stripDigis(), and CSCEventData::wireDigis().

513  {
514  for (int ilayer = CSCDetId::minLayerId(); ilayer <= CSCDetId::maxLayerId(); ++ilayer) {
515  std::vector<CSCStripDigi> stripDigis = evt.stripDigis(ilayer);
516  //copy(stripDigis.begin(), stripDigis.end(), std::ostream_iterator<CSCStripDigi>(os, "\n"));
517  //print your scas here
518  std::vector<CSCWireDigi> wireDigis = evt.wireDigis(ilayer);
519  //copy(wireDigis.begin(), wireDigis.end(), std::ostream_iterator<CSCWireDigi>(os, "\n"));
520  }
521  return os;
522 }
std::vector< CSCWireDigi > wireDigis(unsigned ilayer) const
std::vector< CSCStripDigi > stripDigis(const CSCDetId &idlayer) const
returns all the strip digis in the chamber, with the comparator information.
static int minLayerId()
Definition: CSCDetId.h:242
static int maxLayerId()
Definition: CSCDetId.h:243