test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
CSCDetectorHit.cc File Reference
#include "SimMuon/CSCDigitizer/src/CSCDetectorHit.h"
#include <iostream>

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &stream, const CSCDetectorHit &hit)
 

Function Documentation

std::ostream& operator<< ( std::ostream &  stream,
const CSCDetectorHit hit 
)

Definition at line 4 of file CSCDetectorHit.cc.

References CSCDetectorHit::getCharge(), CSCDetectorHit::getElement(), CSCDetectorHit::getPosition(), and CSCDetectorHit::getTime().

4  {
5  stream << "element: " << hit.getElement()
6  << " charge: " << hit.getCharge()
7  << " pos: " << hit.getPosition()
8  << " time: " << hit.getTime() << std::endl;
9  return stream;
10 }
float getPosition() const
int getElement() const
float getCharge() const
float getTime() const