#include "DataFormats/Scalers/interface/LumiScalers.h"
#include "DataFormats/Scalers/interface/ScalersRaw.h"
Go to the source code of this file.
Functions | |
std::ostream & | operator<< (std::ostream &s, const LumiScalers &c) |
Pretty-print operator for LumiScalers. |
std::ostream& operator<< | ( | std::ostream & | s, | |
const LumiScalers & | c | |||
) |
Pretty-print operator for LumiScalers.
Definition at line 98 of file LumiScalers.cc.
References LumiScalers::bunchNumber(), LumiScalers::collectionTime(), LumiScalers::deadTimeNormalization(), lat::endl(), LumiScalers::eventID(), i, LumiScalers::instantETLumi(), LumiScalers::instantETLumiErr(), LumiScalers::instantETLumiQlty(), LumiScalers::instantLumi(), LumiScalers::instantLumiErr(), LumiScalers::instantLumiQlty(), LumiScalers::instantOccLumi(), LumiScalers::instantOccLumiErr(), LumiScalers::instantOccLumiQlty(), parsecf::pyparsing::line(), LumiScalers::liveLumiETFill(), LumiScalers::liveLumiETRun(), LumiScalers::liveLumiFill(), LumiScalers::liveLumiOccFill(), LumiScalers::liveLumiOccRun(), LumiScalers::liveLumiRun(), LumiScalers::lumiFill(), LumiScalers::lumiNoise(), LumiScalers::lumiOccFill(), LumiScalers::lumiOccRun(), LumiScalers::lumiRun(), LumiScalers::normalization(), LumiScalers::numOrbits(), LumiScalers::sectionNumber(), LumiScalers::sourceID(), LumiScalers::startOrbit(), LumiScalers::trigType(), and LumiScalers::version().
00099 { 00100 char zeit[128]; 00101 char line[128]; 00102 struct tm * hora; 00103 00104 s << "LumiScalers Version: " << c.version() << 00105 " SourceID: "<< c.sourceID() << std::endl; 00106 00107 hora = gmtime(&c.collectionTime().tv_sec); 00108 strftime(zeit, sizeof(zeit), "%Y.%m.%d %H:%M:%S", hora); 00109 sprintf(line, " CollectionTime: %s.%9.9d", zeit, 00110 (int)c.collectionTime().tv_nsec); 00111 s << line << std::endl; 00112 00113 sprintf(line, " TrigType: %d EventID: %d BunchNumber: %d", 00114 c.trigType(), c.eventID(), c.bunchNumber()); 00115 s << line << std::endl; 00116 00117 sprintf(line," SectionNumber: %10d StartOrbit: %10d NumOrbits: %10d", 00118 c.sectionNumber(), c.startOrbit(), c.numOrbits()); 00119 s << line << std::endl; 00120 00121 sprintf(line," Normalization: %e DeadTimeNormalization: %e", 00122 c.normalization(), c.deadTimeNormalization()); 00123 s << line << std::endl; 00124 00125 // Integrated Luminosity 00126 00127 sprintf(line," LumiFill: %e LumiRun: %e", 00128 c.lumiFill(), c.lumiRun()); 00129 s << line << std::endl; 00130 sprintf(line," LiveLumiFill: %e LiveLumiRun: %e", 00131 c.liveLumiFill(), c.liveLumiRun()); 00132 s << line << std::endl; 00133 00134 sprintf(line," LumiETFill: %e LumiETRun: %e", 00135 c.lumiFill(), c.lumiRun()); 00136 s << line << std::endl; 00137 00138 sprintf(line," LiveLumiETFill: %e LiveLumETiRun: %e", 00139 c.liveLumiETFill(), c.liveLumiETRun()); 00140 s << line << std::endl; 00141 00142 int length = c.instantOccLumi().size(); 00143 for (int i=0; i<length; i++) 00144 { 00145 sprintf(line, 00146 " LumiOccFill[%d]: %e LumiOccRun[%d]: %e", 00147 i, c.lumiOccFill()[i], i, c.lumiOccRun()[i]); 00148 s << line << std::endl; 00149 00150 sprintf(line, 00151 " LiveLumiOccFill[%d]: %e LiveLumiOccRun[%d]:v %e", 00152 i, c.liveLumiOccFill()[i], i, c.liveLumiOccRun()[i]); 00153 s << line << std::endl; 00154 } 00155 00156 // Instantaneous Luminosity 00157 00158 sprintf(line," InstantLumi: %e Err: %e Qlty: %d", 00159 c.instantLumi(), c.instantLumiErr(), c.instantLumiQlty()); 00160 s << line << std::endl; 00161 00162 sprintf(line," InstantETLumi: %e Err: %e Qlty: %d", 00163 c.instantETLumi(), c.instantETLumiErr(), c.instantETLumiQlty()); 00164 s << line << std::endl; 00165 00166 for (int i=0; i<length; i++) 00167 { 00168 sprintf(line," InstantOccLumi[%d]: %e Err: %e Qlty: %d", 00169 i, c.instantOccLumi()[i], c.instantOccLumiErr()[i], 00170 c.instantOccLumiQlty()[i]); 00171 s << line << std::endl; 00172 sprintf(line," LumiNoise[%d]: %e", i, c.lumiNoise()[i]); 00173 s << line << std::endl; 00174 } 00175 00176 return s; 00177 }