Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions
CCalDetector.cc File Reference
#include "CCalDetector.hh"
#include <fstream>
#include "CCalGeometryConfiguration.hh"
#include "CCalutils.hh"

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &os, const CCalDetector &det)
 

Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const CCalDetector det 
)

Definition at line 103 of file CCalDetector.cc.

References CCalDetector::detectorName, CCalDetector::fileName, G4endl, and CCalDetector::theDetectorsInside.

103  {
104  os << "Detector \"" << det.detectorName
105  << "\" read from " << det.fileName << "." << G4endl;
106 
107  os << "With " << det.theDetectorsInside.size()
108  << " detectors inside { "<< G4endl;
109 
110  for (unsigned int i=0; i<det.theDetectorsInside.size(); i++)
111  os << det.theDetectorsInside[i] << G4endl;
112 
113  os << "}" << G4endl;
114 
115  return os;
116 }
G4String fileName
G4String detectorName
CCalDetectorTable theDetectorsInside
#define G4endl
Definition: G4ios.hh:61