test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Static Public Member Functions | Private Attributes
edm::service::Tracer Class Reference

Public Member Functions

void postBeginJob ()
 
void postCloseFile (std::string const &, bool)
 
void postEndJob ()
 
void postEvent (StreamContext const &)
 
void postGlobalBeginLumi (GlobalContext const &)
 
void postGlobalBeginRun (GlobalContext const &)
 
void postGlobalEndLumi (GlobalContext const &)
 
void postGlobalEndRun (GlobalContext const &)
 
void postModuleBeginJob (ModuleDescription const &md)
 
void postModuleBeginStream (StreamContext const &, ModuleCallingContext const &)
 
void postModuleConstruction (ModuleDescription const &md)
 
void postModuleEndJob (ModuleDescription const &md)
 
void postModuleEndStream (StreamContext const &, ModuleCallingContext const &)
 
void postModuleEvent (StreamContext const &, ModuleCallingContext const &)
 
void postModuleEventDelayedGet (StreamContext const &, ModuleCallingContext const &)
 
void postModuleGlobalBeginLumi (GlobalContext const &, ModuleCallingContext const &)
 
void postModuleGlobalBeginRun (GlobalContext const &, ModuleCallingContext const &)
 
void postModuleGlobalEndLumi (GlobalContext const &, ModuleCallingContext const &)
 
void postModuleGlobalEndRun (GlobalContext const &, ModuleCallingContext const &)
 
void postModuleStreamBeginLumi (StreamContext const &, ModuleCallingContext const &)
 
void postModuleStreamBeginRun (StreamContext const &, ModuleCallingContext const &)
 
void postModuleStreamEndLumi (StreamContext const &, ModuleCallingContext const &)
 
void postModuleStreamEndRun (StreamContext const &, ModuleCallingContext const &)
 
void postOpenFile (std::string const &, bool)
 
void postPathEvent (StreamContext const &, PathContext const &, HLTPathStatus const &)
 
void postSourceConstruction (ModuleDescription const &md)
 
void postSourceEvent (StreamID)
 
void postSourceLumi ()
 
void postSourceRun ()
 
void postStreamBeginLumi (StreamContext const &)
 
void postStreamBeginRun (StreamContext const &)
 
void postStreamEndLumi (StreamContext const &)
 
void postStreamEndRun (StreamContext const &)
 
void preallocate (service::SystemBounds const &)
 
void preBeginJob (PathsAndConsumesOfModulesBase const &, ProcessContext const &)
 
void preCloseFile (std::string const &lfn, bool primary)
 
void preEvent (StreamContext const &)
 
void preGlobalBeginLumi (GlobalContext const &)
 
void preGlobalBeginRun (GlobalContext const &)
 
void preGlobalEndLumi (GlobalContext const &)
 
void preGlobalEndRun (GlobalContext const &)
 
void preModuleBeginJob (ModuleDescription const &md)
 
void preModuleBeginStream (StreamContext const &, ModuleCallingContext const &)
 
void preModuleConstruction (ModuleDescription const &md)
 
void preModuleEndJob (ModuleDescription const &md)
 
void preModuleEndStream (StreamContext const &, ModuleCallingContext const &)
 
void preModuleEvent (StreamContext const &, ModuleCallingContext const &)
 
void preModuleEventDelayedGet (StreamContext const &, ModuleCallingContext const &)
 
void preModuleGlobalBeginLumi (GlobalContext const &, ModuleCallingContext const &)
 
void preModuleGlobalBeginRun (GlobalContext const &, ModuleCallingContext const &)
 
void preModuleGlobalEndLumi (GlobalContext const &, ModuleCallingContext const &)
 
void preModuleGlobalEndRun (GlobalContext const &, ModuleCallingContext const &)
 
void preModuleStreamBeginLumi (StreamContext const &, ModuleCallingContext const &)
 
void preModuleStreamBeginRun (StreamContext const &, ModuleCallingContext const &)
 
void preModuleStreamEndLumi (StreamContext const &, ModuleCallingContext const &)
 
void preModuleStreamEndRun (StreamContext const &, ModuleCallingContext const &)
 
void preOpenFile (std::string const &, bool)
 
void prePathEvent (StreamContext const &, PathContext const &)
 
void preSourceConstruction (ModuleDescription const &md)
 
void preSourceEvent (StreamID)
 
void preSourceLumi ()
 
void preSourceRun ()
 
void preStreamBeginLumi (StreamContext const &)
 
void preStreamBeginRun (StreamContext const &)
 
void preStreamEndLumi (StreamContext const &)
 
void preStreamEndRun (StreamContext const &)
 
 Tracer (const ParameterSet &, ActivityRegistry &)
 

Static Public Member Functions

static void fillDescriptions (edm::ConfigurationDescriptions &descriptions)
 

Private Attributes

std::set< std::string > dumpContextForLabels_
 
bool dumpNonModuleContext_
 
bool dumpPathsAndConsumes_
 
std::string indention_
 
bool printTimestamps_
 

Detailed Description

Definition at line 61 of file Tracer.cc.

Constructor & Destructor Documentation

Tracer::Tracer ( const ParameterSet iPS,
ActivityRegistry iRegistry 
)

Definition at line 194 of file Tracer.cc.

References edm::signalslot::Signal< T >::connect(), dumpContextForLabels_, edm::EventID::event(), edm::StreamContext::eventID(), edm::ParameterSet::getUntrackedParameter(), indention_, diffTwoXMLs::label, edm::EventID::luminosityBlock(), edm::LuminosityBlockID::luminosityBlock(), edm::GlobalContext::luminosityBlockID(), eostools::move(), GenerateHcalLaserBadRunList::out, postBeginJob(), postCloseFile(), postEndJob(), postEvent(), postGlobalBeginLumi(), postGlobalBeginRun(), postGlobalEndLumi(), postGlobalEndRun(), postModuleBeginJob(), postModuleBeginStream(), postModuleConstruction(), postModuleEndJob(), postModuleEndStream(), postModuleEvent(), postModuleEventDelayedGet(), postModuleGlobalBeginLumi(), postModuleGlobalBeginRun(), postModuleGlobalEndLumi(), postModuleGlobalEndRun(), postModuleStreamBeginLumi(), postModuleStreamBeginRun(), postModuleStreamEndLumi(), postModuleStreamEndRun(), postOpenFile(), postPathEvent(), postSourceConstruction(), postSourceEvent(), postSourceLumi(), postSourceRun(), postStreamBeginLumi(), postStreamBeginRun(), postStreamEndLumi(), postStreamEndRun(), preallocate(), preBeginJob(), preCloseFile(), preEvent(), preGlobalBeginLumi(), preGlobalBeginRun(), edm::ActivityRegistry::preGlobalEarlyTerminationSignal_, preGlobalEndLumi(), preGlobalEndRun(), preModuleBeginJob(), preModuleBeginStream(), preModuleConstruction(), preModuleEndJob(), preModuleEndStream(), preModuleEvent(), preModuleEventDelayedGet(), preModuleGlobalBeginLumi(), preModuleGlobalBeginRun(), preModuleGlobalEndLumi(), preModuleGlobalEndRun(), preModuleStreamBeginLumi(), preModuleStreamBeginRun(), preModuleStreamEndLumi(), preModuleStreamEndRun(), preOpenFile(), prePathEvent(), preSourceConstruction(), edm::ActivityRegistry::preSourceEarlyTerminationSignal_, preSourceEvent(), preSourceLumi(), preSourceRun(), preStreamBeginLumi(), preStreamBeginRun(), edm::ActivityRegistry::preStreamEarlyTerminationSignal_, preStreamEndLumi(), preStreamEndRun(), printTimestamps_, edm::EventID::run(), edm::LuminosityBlockID::run(), edm::StreamContext::streamID(), AlCaHLTBitMon_QueryRunRegistry::string, edm::GlobalContext::timestamp(), edm::StreamContext::timestamp(), edm::LuminosityBlockID::value(), edm::Timestamp::value(), edm::ActivityRegistry::watchPostBeginJob(), edm::ActivityRegistry::watchPostCloseFile(), edm::ActivityRegistry::watchPostEndJob(), edm::ActivityRegistry::watchPostEvent(), edm::ActivityRegistry::watchPostGlobalBeginLumi(), edm::ActivityRegistry::watchPostGlobalBeginRun(), edm::ActivityRegistry::watchPostGlobalEndLumi(), edm::ActivityRegistry::watchPostGlobalEndRun(), edm::ActivityRegistry::watchPostModuleBeginJob(), edm::ActivityRegistry::watchPostModuleBeginStream(), edm::ActivityRegistry::watchPostModuleConstruction(), edm::ActivityRegistry::watchPostModuleEndJob(), edm::ActivityRegistry::watchPostModuleEndStream(), edm::ActivityRegistry::watchPostModuleEvent(), edm::ActivityRegistry::watchPostModuleEventDelayedGet(), edm::ActivityRegistry::watchPostModuleGlobalBeginLumi(), edm::ActivityRegistry::watchPostModuleGlobalBeginRun(), edm::ActivityRegistry::watchPostModuleGlobalEndLumi(), edm::ActivityRegistry::watchPostModuleGlobalEndRun(), edm::ActivityRegistry::watchPostModuleStreamBeginLumi(), edm::ActivityRegistry::watchPostModuleStreamBeginRun(), edm::ActivityRegistry::watchPostModuleStreamEndLumi(), edm::ActivityRegistry::watchPostModuleStreamEndRun(), edm::ActivityRegistry::watchPostOpenFile(), edm::ActivityRegistry::watchPostPathEvent(), edm::ActivityRegistry::watchPostSourceConstruction(), edm::ActivityRegistry::watchPostSourceEvent(), edm::ActivityRegistry::watchPostSourceLumi(), edm::ActivityRegistry::watchPostSourceRun(), edm::ActivityRegistry::watchPostStreamBeginLumi(), edm::ActivityRegistry::watchPostStreamBeginRun(), edm::ActivityRegistry::watchPostStreamEndLumi(), edm::ActivityRegistry::watchPostStreamEndRun(), edm::ActivityRegistry::watchPreallocate(), edm::ActivityRegistry::watchPreBeginJob(), edm::ActivityRegistry::watchPreCloseFile(), edm::ActivityRegistry::watchPreEvent(), edm::ActivityRegistry::watchPreGlobalBeginLumi(), edm::ActivityRegistry::watchPreGlobalBeginRun(), edm::ActivityRegistry::watchPreGlobalEndLumi(), edm::ActivityRegistry::watchPreGlobalEndRun(), edm::ActivityRegistry::watchPreModuleBeginJob(), edm::ActivityRegistry::watchPreModuleBeginStream(), edm::ActivityRegistry::watchPreModuleConstruction(), edm::ActivityRegistry::watchPreModuleEndJob(), edm::ActivityRegistry::watchPreModuleEndStream(), edm::ActivityRegistry::watchPreModuleEvent(), edm::ActivityRegistry::watchPreModuleEventDelayedGet(), edm::ActivityRegistry::watchPreModuleGlobalBeginLumi(), edm::ActivityRegistry::watchPreModuleGlobalBeginRun(), edm::ActivityRegistry::watchPreModuleGlobalEndLumi(), edm::ActivityRegistry::watchPreModuleGlobalEndRun(), edm::ActivityRegistry::watchPreModuleStreamBeginLumi(), edm::ActivityRegistry::watchPreModuleStreamBeginRun(), edm::ActivityRegistry::watchPreModuleStreamEndLumi(), edm::ActivityRegistry::watchPreModuleStreamEndRun(), edm::ActivityRegistry::watchPreOpenFile(), edm::ActivityRegistry::watchPrePathEvent(), edm::ActivityRegistry::watchPreSourceConstruction(), edm::ActivityRegistry::watchPreSourceEvent(), edm::ActivityRegistry::watchPreSourceLumi(), edm::ActivityRegistry::watchPreSourceRun(), edm::ActivityRegistry::watchPreStreamBeginLumi(), edm::ActivityRegistry::watchPreStreamBeginRun(), edm::ActivityRegistry::watchPreStreamEndLumi(), and edm::ActivityRegistry::watchPreStreamEndRun().

194  :
195  indention_(iPS.getUntrackedParameter<std::string>("indention")),
197  dumpNonModuleContext_(iPS.getUntrackedParameter<bool>("dumpNonModuleContext")),
198  dumpPathsAndConsumes_(iPS.getUntrackedParameter<bool>("dumpPathsAndConsumes")),
199  printTimestamps_(iPS.getUntrackedParameter<bool>("printTimestamps"))
200 {
201  for (std::string & label: iPS.getUntrackedParameter<std::vector<std::string>>("dumpContextForLabels"))
203 
204  iRegistry.watchPreallocate(this, &Tracer::preallocate);
205 
206  iRegistry.watchPreBeginJob(this, &Tracer::preBeginJob);
207  iRegistry.watchPostBeginJob(this, &Tracer::postBeginJob);
208  iRegistry.watchPostEndJob(this, &Tracer::postEndJob);
209 
210  iRegistry.watchPreSourceEvent(this, &Tracer::preSourceEvent);
211  iRegistry.watchPostSourceEvent(this, &Tracer::postSourceEvent);
212 
213  iRegistry.watchPreSourceLumi(this, &Tracer::preSourceLumi);
214  iRegistry.watchPostSourceLumi(this, &Tracer::postSourceLumi);
215 
216  iRegistry.watchPreSourceRun(this, &Tracer::preSourceRun);
217  iRegistry.watchPostSourceRun(this, &Tracer::postSourceRun);
218 
219  iRegistry.watchPreOpenFile(this, &Tracer::preOpenFile);
220  iRegistry.watchPostOpenFile(this, &Tracer::postOpenFile);
221 
222  iRegistry.watchPreCloseFile(this, &Tracer::preCloseFile);
223  iRegistry.watchPostCloseFile(this, &Tracer::postCloseFile);
224 
225  iRegistry.watchPreModuleBeginStream(this, &Tracer::preModuleBeginStream);
226  iRegistry.watchPostModuleBeginStream(this, &Tracer::postModuleBeginStream);
227 
228  iRegistry.watchPreModuleEndStream(this, &Tracer::preModuleEndStream);
229  iRegistry.watchPostModuleEndStream(this, &Tracer::postModuleEndStream);
230 
231  iRegistry.watchPreGlobalBeginRun(this, &Tracer::preGlobalBeginRun);
232  iRegistry.watchPostGlobalBeginRun(this, &Tracer::postGlobalBeginRun);
233 
234  iRegistry.watchPreGlobalEndRun(this, &Tracer::preGlobalEndRun);
235  iRegistry.watchPostGlobalEndRun(this, &Tracer::postGlobalEndRun);
236 
237  iRegistry.watchPreStreamBeginRun(this, &Tracer::preStreamBeginRun);
238  iRegistry.watchPostStreamBeginRun(this, &Tracer::postStreamBeginRun);
239 
240  iRegistry.watchPreStreamEndRun(this, &Tracer::preStreamEndRun);
241  iRegistry.watchPostStreamEndRun(this, &Tracer::postStreamEndRun);
242 
243  iRegistry.watchPreGlobalBeginLumi(this, &Tracer::preGlobalBeginLumi);
244  iRegistry.watchPostGlobalBeginLumi(this, &Tracer::postGlobalBeginLumi);
245 
246  iRegistry.watchPreGlobalEndLumi(this, &Tracer::preGlobalEndLumi);
247  iRegistry.watchPostGlobalEndLumi(this, &Tracer::postGlobalEndLumi);
248 
249  iRegistry.watchPreStreamBeginLumi(this, &Tracer::preStreamBeginLumi);
250  iRegistry.watchPostStreamBeginLumi(this, &Tracer::postStreamBeginLumi);
251 
252  iRegistry.watchPreStreamEndLumi(this, &Tracer::preStreamEndLumi);
253  iRegistry.watchPostStreamEndLumi(this, &Tracer::postStreamEndLumi);
254 
255  iRegistry.watchPreEvent(this, &Tracer::preEvent);
256  iRegistry.watchPostEvent(this, &Tracer::postEvent);
257 
258  iRegistry.watchPrePathEvent(this, &Tracer::prePathEvent);
259  iRegistry.watchPostPathEvent(this, &Tracer::postPathEvent);
260 
261  iRegistry.watchPreModuleConstruction(this, &Tracer::preModuleConstruction);
262  iRegistry.watchPostModuleConstruction(this, &Tracer::postModuleConstruction);
263 
264  iRegistry.watchPreModuleBeginJob(this, &Tracer::preModuleBeginJob);
265  iRegistry.watchPostModuleBeginJob(this, &Tracer::postModuleBeginJob);
266 
267  iRegistry.watchPreModuleEndJob(this, &Tracer::preModuleEndJob);
268  iRegistry.watchPostModuleEndJob(this, &Tracer::postModuleEndJob);
269 
270  iRegistry.watchPreModuleEvent(this, &Tracer::preModuleEvent);
271  iRegistry.watchPostModuleEvent(this, &Tracer::postModuleEvent);
272  iRegistry.watchPreModuleEventDelayedGet(this, &Tracer::preModuleEventDelayedGet);
273  iRegistry.watchPostModuleEventDelayedGet(this, &Tracer::postModuleEventDelayedGet);
274 
275  iRegistry.watchPreModuleStreamBeginRun(this, &Tracer::preModuleStreamBeginRun);
276  iRegistry.watchPostModuleStreamBeginRun(this, &Tracer::postModuleStreamBeginRun);
277  iRegistry.watchPreModuleStreamEndRun(this, &Tracer::preModuleStreamEndRun);
278  iRegistry.watchPostModuleStreamEndRun(this, &Tracer::postModuleStreamEndRun);
279 
280  iRegistry.watchPreModuleStreamBeginLumi(this, &Tracer::preModuleStreamBeginLumi);
281  iRegistry.watchPostModuleStreamBeginLumi(this, &Tracer::postModuleStreamBeginLumi);
282  iRegistry.watchPreModuleStreamEndLumi(this, &Tracer::preModuleStreamEndLumi);
283  iRegistry.watchPostModuleStreamEndLumi(this, &Tracer::postModuleStreamEndLumi);
284 
285  iRegistry.watchPreModuleGlobalBeginRun(this, &Tracer::preModuleGlobalBeginRun);
286  iRegistry.watchPostModuleGlobalBeginRun(this, &Tracer::postModuleGlobalBeginRun);
287  iRegistry.watchPreModuleGlobalEndRun(this, &Tracer::preModuleGlobalEndRun);
288  iRegistry.watchPostModuleGlobalEndRun(this, &Tracer::postModuleGlobalEndRun);
289 
290  iRegistry.watchPreModuleGlobalBeginLumi(this, &Tracer::preModuleGlobalBeginLumi);
291  iRegistry.watchPostModuleGlobalBeginLumi(this, &Tracer::postModuleGlobalBeginLumi);
292  iRegistry.watchPreModuleGlobalEndLumi(this, &Tracer::preModuleGlobalEndLumi);
293  iRegistry.watchPostModuleGlobalEndLumi(this, &Tracer::postModuleGlobalEndLumi);
294 
295  iRegistry.watchPreSourceConstruction(this, &Tracer::preSourceConstruction);
296  iRegistry.watchPostSourceConstruction(this, &Tracer::postSourceConstruction);
297 
298  iRegistry.preSourceEarlyTerminationSignal_.connect([this](edm::TerminationOrigin iOrigin) {
299  LogAbsolute out("Tracer");
300  out << TimeStamper(printTimestamps_);
301  out << indention_ << indention_ << " early termination before processing transition";
302  });
303  iRegistry.preStreamEarlyTerminationSignal_.connect([this](edm::StreamContext const& iContext, edm::TerminationOrigin iOrigin) {
304  LogAbsolute out("Tracer");
305  out << TimeStamper(printTimestamps_);
306  if(iContext.eventID().luminosityBlock() ==0) {
307  out << indention_ << indention_ << " early termination of run: stream = " << iContext.streamID()
308  <<" run = " << iContext.eventID().run();
309  }else {
310  if(iContext.eventID().event() == 0) {
311  out << indention_ << indention_ << " early termination of stream lumi: stream = " << iContext.streamID()
312  <<" run = " << iContext.eventID().run()
313  << " lumi = " << iContext.eventID().luminosityBlock() ;
314  } else {
315  out << indention_ << indention_ << " early termination of event: stream = " << iContext.streamID()
316  <<" run = " << iContext.eventID().run()
317  << " lumi = " << iContext.eventID().luminosityBlock()
318  << " event = "<< iContext.eventID().event();
319 
320  }
321  }
322  out<< " : time = " << iContext.timestamp().value();
323 
324  });
325  iRegistry.preGlobalEarlyTerminationSignal_.connect([this](edm::GlobalContext const& iContext, edm::TerminationOrigin iOrigin) {
326  LogAbsolute out("Tracer");
327  out << TimeStamper(printTimestamps_);
328  if(iContext.luminosityBlockID().value() ==0) {
329  out << indention_ << indention_ << " early termination of global run " << iContext.luminosityBlockID().run();
330  }else {
331  out << indention_ << indention_ << " early termination of global lumi run = " << iContext.luminosityBlockID().run()
332  << " lumi = " << iContext.luminosityBlockID().luminosityBlock() ;
333 
334  }
335  out<< " : time = " << iContext.timestamp().value();
336  });
337 }
void preCloseFile(std::string const &lfn, bool primary)
Definition: Tracer.cc:502
RunNumber_t run() const
Definition: EventID.h:39
EventNumber_t event() const
Definition: EventID.h:41
void postSourceRun()
Definition: Tracer.cc:481
boost::uint64_t value() const
void postModuleGlobalBeginRun(GlobalContext const &, ModuleCallingContext const &)
Definition: Tracer.cc:1046
void postModuleGlobalBeginLumi(GlobalContext const &, ModuleCallingContext const &)
Definition: Tracer.cc:1106
void postModuleStreamEndLumi(StreamContext const &, ModuleCallingContext const &)
Definition: Tracer.cc:1016
void preModuleGlobalBeginLumi(GlobalContext const &, ModuleCallingContext const &)
Definition: Tracer.cc:1091
void postModuleConstruction(ModuleDescription const &md)
Definition: Tracer.cc:795
void postModuleEndStream(StreamContext const &, ModuleCallingContext const &)
Definition: Tracer.cc:553
void postModuleGlobalEndLumi(GlobalContext const &, ModuleCallingContext const &)
Definition: Tracer.cc:1136
void preallocate(service::SystemBounds const &)
Definition: Tracer.cc:352
LuminosityBlockID const & luminosityBlockID() const
Definition: GlobalContext.h:52
void postStreamBeginLumi(StreamContext const &)
Definition: Tracer.cc:708
void preModuleGlobalEndLumi(GlobalContext const &, ModuleCallingContext const &)
Definition: Tracer.cc:1121
void preModuleStreamBeginLumi(StreamContext const &, ModuleCallingContext const &)
Definition: Tracer.cc:971
void preGlobalEndLumi(GlobalContext const &)
Definition: Tracer.cc:675
void preModuleEndJob(ModuleDescription const &md)
Definition: Tracer.cc:827
void preModuleConstruction(ModuleDescription const &md)
Definition: Tracer.cc:785
void preBeginJob(PathsAndConsumesOfModulesBase const &, ProcessContext const &)
Definition: Tracer.cc:359
void postStreamEndRun(StreamContext const &)
Definition: Tracer.cc:642
void postGlobalEndLumi(GlobalContext const &)
Definition: Tracer.cc:686
LuminosityBlockNumber_t luminosityBlock() const
Definition: EventID.h:40
void postModuleBeginJob(ModuleDescription const &md)
Definition: Tracer.cc:816
void postModuleStreamEndRun(StreamContext const &, ModuleCallingContext const &)
Definition: Tracer.cc:956
void postCloseFile(std::string const &, bool)
Definition: Tracer.cc:509
Timestamp const & timestamp() const
Definition: GlobalContext.h:55
void preStreamEndLumi(StreamContext const &)
Definition: Tracer.cc:719
void preOpenFile(std::string const &, bool)
Definition: Tracer.cc:486
void preGlobalBeginRun(GlobalContext const &)
Definition: Tracer.cc:565
void preSourceEvent(StreamID)
Definition: Tracer.cc:456
void preGlobalEndRun(GlobalContext const &)
Definition: Tracer.cc:587
void preModuleStreamEndLumi(StreamContext const &, ModuleCallingContext const &)
Definition: Tracer.cc:1001
void preModuleStreamBeginRun(StreamContext const &, ModuleCallingContext const &)
Definition: Tracer.cc:911
void prePathEvent(StreamContext const &, PathContext const &)
Definition: Tracer.cc:763
def move
Definition: eostools.py:510
void postModuleStreamBeginLumi(StreamContext const &, ModuleCallingContext const &)
Definition: Tracer.cc:986
RunNumber_t run() const
bool dumpPathsAndConsumes_
Definition: Tracer.cc:165
void preModuleGlobalEndRun(GlobalContext const &, ModuleCallingContext const &)
Definition: Tracer.cc:1061
void postStreamBeginRun(StreamContext const &)
Definition: Tracer.cc:620
void preStreamEndRun(StreamContext const &)
Definition: Tracer.cc:631
void postOpenFile(std::string const &, bool)
Definition: Tracer.cc:494
void postPathEvent(StreamContext const &, PathContext const &, HLTPathStatus const &)
Definition: Tracer.cc:774
StreamID const & streamID() const
Definition: StreamContext.h:57
void postModuleEventDelayedGet(StreamContext const &, ModuleCallingContext const &)
Definition: Tracer.cc:895
void preSourceLumi()
Definition: Tracer.cc:466
void postSourceEvent(StreamID)
Definition: Tracer.cc:461
std::string indention_
Definition: Tracer.cc:162
LuminosityBlockNumber_t luminosityBlock() const
void preSourceConstruction(ModuleDescription const &md)
Definition: Tracer.cc:1151
void preModuleEvent(StreamContext const &, ModuleCallingContext const &)
Definition: Tracer.cc:849
void preModuleBeginStream(StreamContext const &, ModuleCallingContext const &)
Definition: Tracer.cc:517
void postGlobalBeginRun(GlobalContext const &)
Definition: Tracer.cc:576
void postGlobalEndRun(GlobalContext const &)
Definition: Tracer.cc:598
void postGlobalBeginLumi(GlobalContext const &)
Definition: Tracer.cc:664
void preEvent(StreamContext const &)
Definition: Tracer.cc:741
void preStreamBeginLumi(StreamContext const &)
Definition: Tracer.cc:697
void postModuleEndJob(ModuleDescription const &md)
Definition: Tracer.cc:838
void preModuleEndStream(StreamContext const &, ModuleCallingContext const &)
Definition: Tracer.cc:541
void postModuleEvent(StreamContext const &, ModuleCallingContext const &)
Definition: Tracer.cc:864
EventID const & eventID() const
Definition: StreamContext.h:59
void preModuleEventDelayedGet(StreamContext const &, ModuleCallingContext const &)
Definition: Tracer.cc:880
void postModuleBeginStream(StreamContext const &, ModuleCallingContext const &)
Definition: Tracer.cc:529
bool dumpNonModuleContext_
Definition: Tracer.cc:164
void preModuleBeginJob(ModuleDescription const &md)
Definition: Tracer.cc:805
void postStreamEndLumi(StreamContext const &)
Definition: Tracer.cc:730
void preModuleStreamEndRun(StreamContext const &, ModuleCallingContext const &)
Definition: Tracer.cc:941
void postEvent(StreamContext const &)
Definition: Tracer.cc:752
void preStreamBeginRun(StreamContext const &)
Definition: Tracer.cc:609
TimeValue_t value() const
Definition: Timestamp.h:56
void postModuleStreamBeginRun(StreamContext const &, ModuleCallingContext const &)
Definition: Tracer.cc:926
void postSourceLumi()
Definition: Tracer.cc:471
void preGlobalBeginLumi(GlobalContext const &)
Definition: Tracer.cc:653
void postModuleGlobalEndRun(GlobalContext const &, ModuleCallingContext const &)
Definition: Tracer.cc:1076
void postSourceConstruction(ModuleDescription const &md)
Definition: Tracer.cc:1162
std::set< std::string > dumpContextForLabels_
Definition: Tracer.cc:163
void preModuleGlobalBeginRun(GlobalContext const &, ModuleCallingContext const &)
Definition: Tracer.cc:1031
Timestamp const & timestamp() const
Definition: StreamContext.h:62

Member Function Documentation

void Tracer::fillDescriptions ( edm::ConfigurationDescriptions descriptions)
static

Definition at line 340 of file Tracer.cc.

References edm::ConfigurationDescriptions::add(), edm::ParameterSetDescription::addUntracked(), edm::ConfigurationDescriptions::setComment(), and AlCaHLTBitMon_QueryRunRegistry::string.

340  {
342  desc.addUntracked<std::string>("indention", "++")->setComment("Prefix characters for output. The characters are repeated to form the indentation.");
343  desc.addUntracked<std::vector<std::string>>("dumpContextForLabels", std::vector<std::string>{})->setComment("Prints context information to cout for the module transitions associated with these modules' labels");
344  desc.addUntracked<bool>("dumpNonModuleContext", false)->setComment("Prints context information to cout for the transitions not associated with any module label");
345  desc.addUntracked<bool>("dumpPathsAndConsumes", false)->setComment("Prints information to cout about paths, endpaths, products consumed by modules and the dependencies between modules created by the products they consume");
346  desc.addUntracked<bool>("printTimestamps", false)->setComment("Prints a time stamp for every transition");
347  descriptions.add("Tracer", desc);
348  descriptions.setComment("This service prints each phase the framework is processing, e.g. constructing a module,running a module, etc.");
349 }
ParameterDescriptionBase * addUntracked(U const &iLabel, T const &value)
void setComment(std::string const &value)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
void Tracer::postBeginJob ( )

Definition at line 446 of file Tracer.cc.

References indention_, and printTimestamps_.

Referenced by Tracer().

446  {
447  LogAbsolute("Tracer") << TimeStamper(printTimestamps_) << indention_ << " finished: begin job";
448 }
std::string indention_
Definition: Tracer.cc:162
void Tracer::postCloseFile ( std::string const &  lfn,
bool  b 
)

Definition at line 509 of file Tracer.cc.

References b, dumpNonModuleContext_, indention_, GenerateHcalLaserBadRunList::out, and printTimestamps_.

Referenced by Tracer().

509  {
510  LogAbsolute out("Tracer");
511  out << TimeStamper(printTimestamps_);
512  out << indention_ << indention_ << " finished: close input file: lfn = " << lfn;
513  if(dumpNonModuleContext_) out << " usedFallBack = " << b;
514 }
std::string indention_
Definition: Tracer.cc:162
double b
Definition: hdecay.h:120
bool dumpNonModuleContext_
Definition: Tracer.cc:164
void Tracer::postEndJob ( )

Definition at line 451 of file Tracer.cc.

References indention_, and printTimestamps_.

Referenced by Tracer().

451  {
452  LogAbsolute("Tracer") << TimeStamper(printTimestamps_) << indention_ << " finished: end job";
453 }
std::string indention_
Definition: Tracer.cc:162
void Tracer::postEvent ( StreamContext const &  sc)

Definition at line 752 of file Tracer.cc.

References dumpNonModuleContext_, edm::EventID::event(), edm::StreamContext::eventID(), indention_, edm::EventID::luminosityBlock(), GenerateHcalLaserBadRunList::out, printTimestamps_, edm::EventID::run(), edm::StreamContext::streamID(), edm::StreamContext::timestamp(), and edm::Timestamp::value().

Referenced by Tracer().

752  {
753  LogAbsolute out("Tracer");
754  out << TimeStamper(printTimestamps_);
755  out << indention_ << indention_ << " finished: processing event : stream = " << sc.streamID() << " run = " << sc.eventID().run()
756  << " lumi = " << sc.eventID().luminosityBlock() << " event = " << sc.eventID().event() << " time = " << sc.timestamp().value();
758  out << "\n" << sc;
759  }
760 }
std::string indention_
Definition: Tracer.cc:162
bool dumpNonModuleContext_
Definition: Tracer.cc:164
void Tracer::postGlobalBeginLumi ( GlobalContext const &  gc)

Definition at line 664 of file Tracer.cc.

References dumpNonModuleContext_, indention_, edm::LuminosityBlockID::luminosityBlock(), edm::GlobalContext::luminosityBlockID(), GenerateHcalLaserBadRunList::out, printTimestamps_, edm::LuminosityBlockID::run(), edm::GlobalContext::timestamp(), and edm::Timestamp::value().

Referenced by Tracer().

664  {
665  LogAbsolute out("Tracer");
666  out << TimeStamper(printTimestamps_);
667  out << indention_ << indention_ << " finished: global begin lumi: run = " << gc.luminosityBlockID().run()
668  << " lumi = " << gc.luminosityBlockID().luminosityBlock() << " time = " << gc.timestamp().value();
670  out << "\n" << gc;
671  }
672 }
std::string indention_
Definition: Tracer.cc:162
bool dumpNonModuleContext_
Definition: Tracer.cc:164
void Tracer::postGlobalBeginRun ( GlobalContext const &  gc)

Definition at line 576 of file Tracer.cc.

References dumpNonModuleContext_, indention_, edm::GlobalContext::luminosityBlockID(), GenerateHcalLaserBadRunList::out, printTimestamps_, edm::LuminosityBlockID::run(), edm::GlobalContext::timestamp(), and edm::Timestamp::value().

Referenced by Tracer().

576  {
577  LogAbsolute out("Tracer");
578  out << TimeStamper(printTimestamps_);
579  out << indention_ << indention_ << " finished: global begin run " << gc.luminosityBlockID().run()
580  << " : time = " << gc.timestamp().value();
582  out << "\n" << gc;
583  }
584 }
std::string indention_
Definition: Tracer.cc:162
bool dumpNonModuleContext_
Definition: Tracer.cc:164
void Tracer::postGlobalEndLumi ( GlobalContext const &  gc)

Definition at line 686 of file Tracer.cc.

References dumpNonModuleContext_, indention_, edm::LuminosityBlockID::luminosityBlock(), edm::GlobalContext::luminosityBlockID(), GenerateHcalLaserBadRunList::out, printTimestamps_, edm::LuminosityBlockID::run(), edm::GlobalContext::timestamp(), and edm::Timestamp::value().

Referenced by Tracer().

686  {
687  LogAbsolute out("Tracer");
688  out << TimeStamper(printTimestamps_);
689  out << indention_ << indention_ << " finished: global end lumi: run = " << gc.luminosityBlockID().run()
690  << " lumi = " << gc.luminosityBlockID().luminosityBlock() << " time = " << gc.timestamp().value();
692  out << "\n" << gc;
693  }
694 }
std::string indention_
Definition: Tracer.cc:162
bool dumpNonModuleContext_
Definition: Tracer.cc:164
void Tracer::postGlobalEndRun ( GlobalContext const &  gc)

Definition at line 598 of file Tracer.cc.

References dumpNonModuleContext_, indention_, edm::GlobalContext::luminosityBlockID(), GenerateHcalLaserBadRunList::out, printTimestamps_, edm::LuminosityBlockID::run(), edm::GlobalContext::timestamp(), and edm::Timestamp::value().

Referenced by Tracer().

598  {
599  LogAbsolute out("Tracer");
600  out << TimeStamper(printTimestamps_);
601  out << indention_ << indention_ << " finished: global end run " << gc.luminosityBlockID().run()
602  << " : time = " << gc.timestamp().value();
604  out << "\n" << gc;
605  }
606 }
std::string indention_
Definition: Tracer.cc:162
bool dumpNonModuleContext_
Definition: Tracer.cc:164
void Tracer::postModuleBeginJob ( ModuleDescription const &  md)

Definition at line 816 of file Tracer.cc.

References dumpContextForLabels_, edm::ModuleDescription::id(), indention_, edm::ModuleDescription::moduleLabel(), GenerateHcalLaserBadRunList::out, and printTimestamps_.

Referenced by Tracer().

816  {
817  LogAbsolute out("Tracer");
818  out << TimeStamper(printTimestamps_);
819  out << indention_ << indention_;
820  out << " finished: begin job for module with label '" << desc.moduleLabel() << "' id = " << desc.id();
821  if(dumpContextForLabels_.find(desc.moduleLabel()) != dumpContextForLabels_.end()) {
822  out << "\n" << desc;
823  }
824 }
std::string indention_
Definition: Tracer.cc:162
std::set< std::string > dumpContextForLabels_
Definition: Tracer.cc:163
void Tracer::postModuleBeginStream ( StreamContext const &  sc,
ModuleCallingContext const &  mcc 
)

Definition at line 529 of file Tracer.cc.

References dumpContextForLabels_, edm::ModuleDescription::id(), indention_, edm::ModuleCallingContext::moduleDescription(), edm::ModuleDescription::moduleLabel(), GenerateHcalLaserBadRunList::out, printTimestamps_, and edm::StreamContext::streamID().

Referenced by Tracer().

529  {
530  ModuleDescription const& desc = *mcc.moduleDescription();
531  LogAbsolute out("Tracer");
532  out << TimeStamper(printTimestamps_);
533  out << indention_ << indention_ << " finished: begin stream for module: stream = " << sc.streamID() << " label = '" << desc.moduleLabel() << "' id = " << desc.id();
534  if(dumpContextForLabels_.find(desc.moduleLabel()) != dumpContextForLabels_.end()) {
535  out << "\n" << sc;
536  out << mcc;
537  }
538 }
std::string indention_
Definition: Tracer.cc:162
std::set< std::string > dumpContextForLabels_
Definition: Tracer.cc:163
void Tracer::postModuleConstruction ( ModuleDescription const &  md)

Definition at line 795 of file Tracer.cc.

References dumpContextForLabels_, edm::ModuleDescription::id(), indention_, edm::ModuleDescription::moduleLabel(), GenerateHcalLaserBadRunList::out, and printTimestamps_.

Referenced by Tracer().

795  {
796  LogAbsolute out("Tracer");
797  out << TimeStamper(printTimestamps_);
798  out << indention_ << indention_ << " finished: constructing module with label '" << desc.moduleLabel() << "' id = " << desc.id();
799  if(dumpContextForLabels_.find(desc.moduleLabel()) != dumpContextForLabels_.end()) {
800  out << "\n" << desc;
801  }
802 }
std::string indention_
Definition: Tracer.cc:162
std::set< std::string > dumpContextForLabels_
Definition: Tracer.cc:163
void Tracer::postModuleEndJob ( ModuleDescription const &  md)

Definition at line 838 of file Tracer.cc.

References dumpContextForLabels_, edm::ModuleDescription::id(), indention_, edm::ModuleDescription::moduleLabel(), GenerateHcalLaserBadRunList::out, and printTimestamps_.

Referenced by Tracer().

838  {
839  LogAbsolute out("Tracer");
840  out << TimeStamper(printTimestamps_);
841  out << indention_ << indention_;
842  out << " finished: end job for module with label '" << desc.moduleLabel() << "' id = " << desc.id();
843  if(dumpContextForLabels_.find(desc.moduleLabel()) != dumpContextForLabels_.end()) {
844  out << "\n" << desc;
845  }
846 }
std::string indention_
Definition: Tracer.cc:162
std::set< std::string > dumpContextForLabels_
Definition: Tracer.cc:163
void Tracer::postModuleEndStream ( StreamContext const &  sc,
ModuleCallingContext const &  mcc 
)

Definition at line 553 of file Tracer.cc.

References dumpContextForLabels_, edm::ModuleDescription::id(), indention_, edm::ModuleCallingContext::moduleDescription(), edm::ModuleDescription::moduleLabel(), GenerateHcalLaserBadRunList::out, printTimestamps_, and edm::StreamContext::streamID().

Referenced by Tracer().

553  {
554  ModuleDescription const& desc = *mcc.moduleDescription();
555  LogAbsolute out("Tracer");
556  out << TimeStamper(printTimestamps_);
557  out << indention_ << indention_ << " finished: end stream for module: stream = " << sc.streamID() << " label = '" << desc.moduleLabel() << "' id = " << desc.id();
558  if(dumpContextForLabels_.find(desc.moduleLabel()) != dumpContextForLabels_.end()) {
559  out << "\n" << sc;
560  out << mcc;
561  }
562 }
std::string indention_
Definition: Tracer.cc:162
std::set< std::string > dumpContextForLabels_
Definition: Tracer.cc:163
void Tracer::postModuleEvent ( StreamContext const &  sc,
ModuleCallingContext const &  mcc 
)

Definition at line 864 of file Tracer.cc.

References edm::ModuleCallingContext::depth(), dumpContextForLabels_, i, edm::ModuleDescription::id(), indention_, edm::ModuleCallingContext::moduleDescription(), edm::ModuleDescription::moduleLabel(), GenerateHcalLaserBadRunList::out, printTimestamps_, and edm::StreamContext::streamID().

Referenced by Tracer().

864  {
865  LogAbsolute out("Tracer");
866  out << TimeStamper(printTimestamps_);
867  unsigned int nIndents = mcc.depth() + 4;
868  for(unsigned int i = 0; i < nIndents; ++i) {
869  out << indention_;
870  }
871  out << " finished: processing event for module: stream = " << sc.streamID() << " label = '" << mcc.moduleDescription()->moduleLabel() << "' id = " << mcc.moduleDescription()->id();
872  if(dumpContextForLabels_.find(mcc.moduleDescription()->moduleLabel()) != dumpContextForLabels_.end()) {
873  out << "\n" << sc;
874  out << mcc;
875  }
876 }
int i
Definition: DBlmapReader.cc:9
std::string indention_
Definition: Tracer.cc:162
std::set< std::string > dumpContextForLabels_
Definition: Tracer.cc:163
void Tracer::postModuleEventDelayedGet ( StreamContext const &  sc,
ModuleCallingContext const &  mcc 
)

Definition at line 895 of file Tracer.cc.

References edm::ModuleCallingContext::depth(), dumpContextForLabels_, i, edm::ModuleDescription::id(), indention_, edm::ModuleCallingContext::moduleDescription(), edm::ModuleDescription::moduleLabel(), GenerateHcalLaserBadRunList::out, printTimestamps_, and edm::StreamContext::streamID().

Referenced by Tracer().

895  {
896  LogAbsolute out("Tracer");
897  out << TimeStamper(printTimestamps_);
898  unsigned int nIndents = mcc.depth() + 4;
899  for(unsigned int i = 0; i < nIndents; ++i) {
900  out << indention_;
901  }
902  out << " finished: delayed processing event for module: stream = " << sc.streamID() << " label = '" << mcc.moduleDescription()->moduleLabel() << "' id = " << mcc.moduleDescription()->id();
903  if(dumpContextForLabels_.find(mcc.moduleDescription()->moduleLabel()) != dumpContextForLabels_.end()) {
904  out << "\n" << sc;
905  out << mcc;
906  }
907 }
int i
Definition: DBlmapReader.cc:9
std::string indention_
Definition: Tracer.cc:162
std::set< std::string > dumpContextForLabels_
Definition: Tracer.cc:163
void Tracer::postModuleGlobalBeginLumi ( GlobalContext const &  gc,
ModuleCallingContext const &  mcc 
)

Definition at line 1106 of file Tracer.cc.

References edm::ModuleCallingContext::depth(), dumpContextForLabels_, i, edm::ModuleDescription::id(), indention_, edm::ModuleCallingContext::moduleDescription(), edm::ModuleDescription::moduleLabel(), GenerateHcalLaserBadRunList::out, and printTimestamps_.

Referenced by Tracer().

1106  {
1107  LogAbsolute out("Tracer");
1108  out << TimeStamper(printTimestamps_);
1109  unsigned int nIndents = mcc.depth() + 3;
1110  for(unsigned int i = 0; i < nIndents; ++i) {
1111  out << indention_;
1112  }
1113  out << " finished: global begin lumi for module: label = '" << mcc.moduleDescription()->moduleLabel() << "' id = " << mcc.moduleDescription()->id();
1114  if(dumpContextForLabels_.find(mcc.moduleDescription()->moduleLabel()) != dumpContextForLabels_.end()) {
1115  out << "\n" << gc;
1116  out << mcc;
1117  }
1118 }
int i
Definition: DBlmapReader.cc:9
std::string indention_
Definition: Tracer.cc:162
std::set< std::string > dumpContextForLabels_
Definition: Tracer.cc:163
void Tracer::postModuleGlobalBeginRun ( GlobalContext const &  gc,
ModuleCallingContext const &  mcc 
)

Definition at line 1046 of file Tracer.cc.

References edm::ModuleCallingContext::depth(), dumpContextForLabels_, i, edm::ModuleDescription::id(), indention_, edm::ModuleCallingContext::moduleDescription(), edm::ModuleDescription::moduleLabel(), GenerateHcalLaserBadRunList::out, and printTimestamps_.

Referenced by Tracer().

1046  {
1047  LogAbsolute out("Tracer");
1048  out << TimeStamper(printTimestamps_);
1049  unsigned int nIndents = mcc.depth() + 3;
1050  for(unsigned int i = 0; i < nIndents; ++i) {
1051  out << indention_;
1052  }
1053  out << " finished: global begin run for module: label = '" << mcc.moduleDescription()->moduleLabel() << "' id = " << mcc.moduleDescription()->id();
1054  if(dumpContextForLabels_.find(mcc.moduleDescription()->moduleLabel()) != dumpContextForLabels_.end()) {
1055  out << "\n" << gc;
1056  out << mcc;
1057  }
1058 }
int i
Definition: DBlmapReader.cc:9
std::string indention_
Definition: Tracer.cc:162
std::set< std::string > dumpContextForLabels_
Definition: Tracer.cc:163
void Tracer::postModuleGlobalEndLumi ( GlobalContext const &  gc,
ModuleCallingContext const &  mcc 
)

Definition at line 1136 of file Tracer.cc.

References edm::ModuleCallingContext::depth(), dumpContextForLabels_, i, edm::ModuleDescription::id(), indention_, edm::ModuleCallingContext::moduleDescription(), edm::ModuleDescription::moduleLabel(), GenerateHcalLaserBadRunList::out, and printTimestamps_.

Referenced by Tracer().

1136  {
1137  LogAbsolute out("Tracer");
1138  out << TimeStamper(printTimestamps_);
1139  unsigned int nIndents = mcc.depth() + 3;
1140  for(unsigned int i = 0; i < nIndents; ++i) {
1141  out << indention_;
1142  }
1143  out << " finished: global end lumi for module: label = '" << mcc.moduleDescription()->moduleLabel() << "' id = " << mcc.moduleDescription()->id();
1144  if(dumpContextForLabels_.find(mcc.moduleDescription()->moduleLabel()) != dumpContextForLabels_.end()) {
1145  out << "\n" << gc;
1146  out << mcc;
1147  }
1148 }
int i
Definition: DBlmapReader.cc:9
std::string indention_
Definition: Tracer.cc:162
std::set< std::string > dumpContextForLabels_
Definition: Tracer.cc:163
void Tracer::postModuleGlobalEndRun ( GlobalContext const &  gc,
ModuleCallingContext const &  mcc 
)

Definition at line 1076 of file Tracer.cc.

References edm::ModuleCallingContext::depth(), dumpContextForLabels_, i, edm::ModuleDescription::id(), indention_, edm::ModuleCallingContext::moduleDescription(), edm::ModuleDescription::moduleLabel(), GenerateHcalLaserBadRunList::out, and printTimestamps_.

Referenced by Tracer().

1076  {
1077  LogAbsolute out("Tracer");
1078  out << TimeStamper(printTimestamps_);
1079  unsigned int nIndents = mcc.depth() + 3;
1080  for(unsigned int i = 0; i < nIndents; ++i) {
1081  out << indention_;
1082  }
1083  out << " finished: global end run for module: label = '" << mcc.moduleDescription()->moduleLabel() << "' id = " << mcc.moduleDescription()->id();
1084  if(dumpContextForLabels_.find(mcc.moduleDescription()->moduleLabel()) != dumpContextForLabels_.end()) {
1085  out << "\n" << gc;
1086  out << mcc;
1087  }
1088 }
int i
Definition: DBlmapReader.cc:9
std::string indention_
Definition: Tracer.cc:162
std::set< std::string > dumpContextForLabels_
Definition: Tracer.cc:163
void Tracer::postModuleStreamBeginLumi ( StreamContext const &  sc,
ModuleCallingContext const &  mcc 
)

Definition at line 986 of file Tracer.cc.

References edm::ModuleCallingContext::depth(), dumpContextForLabels_, i, edm::ModuleDescription::id(), indention_, edm::ModuleCallingContext::moduleDescription(), edm::ModuleDescription::moduleLabel(), GenerateHcalLaserBadRunList::out, printTimestamps_, and edm::StreamContext::streamID().

Referenced by Tracer().

986  {
987  LogAbsolute out("Tracer");
988  out << TimeStamper(printTimestamps_);
989  unsigned int nIndents = mcc.depth() + 3;
990  for(unsigned int i = 0; i < nIndents; ++i) {
991  out << indention_;
992  }
993  out << " finished: begin lumi for module: stream = " << sc.streamID() << " label = '" << mcc.moduleDescription()->moduleLabel() << "' id = " << mcc.moduleDescription()->id();
994  if(dumpContextForLabels_.find(mcc.moduleDescription()->moduleLabel()) != dumpContextForLabels_.end()) {
995  out << "\n" << sc;
996  out << mcc;
997  }
998 }
int i
Definition: DBlmapReader.cc:9
std::string indention_
Definition: Tracer.cc:162
std::set< std::string > dumpContextForLabels_
Definition: Tracer.cc:163
void Tracer::postModuleStreamBeginRun ( StreamContext const &  sc,
ModuleCallingContext const &  mcc 
)

Definition at line 926 of file Tracer.cc.

References edm::ModuleCallingContext::depth(), dumpContextForLabels_, i, edm::ModuleDescription::id(), indention_, edm::ModuleCallingContext::moduleDescription(), edm::ModuleDescription::moduleLabel(), GenerateHcalLaserBadRunList::out, printTimestamps_, and edm::StreamContext::streamID().

Referenced by Tracer().

926  {
927  LogAbsolute out("Tracer");
928  out << TimeStamper(printTimestamps_);
929  unsigned int nIndents = mcc.depth() + 3;
930  for(unsigned int i = 0; i < nIndents; ++i) {
931  out << indention_;
932  }
933  out << " finished: begin run for module: stream = " << sc.streamID() << " label = '" << mcc.moduleDescription()->moduleLabel() << "' id = " << mcc.moduleDescription()->id();
934  if(dumpContextForLabels_.find(mcc.moduleDescription()->moduleLabel()) != dumpContextForLabels_.end()) {
935  out << "\n" << sc;
936  out << mcc;
937  }
938 }
int i
Definition: DBlmapReader.cc:9
std::string indention_
Definition: Tracer.cc:162
std::set< std::string > dumpContextForLabels_
Definition: Tracer.cc:163
void Tracer::postModuleStreamEndLumi ( StreamContext const &  sc,
ModuleCallingContext const &  mcc 
)

Definition at line 1016 of file Tracer.cc.

References edm::ModuleCallingContext::depth(), dumpContextForLabels_, i, edm::ModuleDescription::id(), indention_, edm::ModuleCallingContext::moduleDescription(), edm::ModuleDescription::moduleLabel(), GenerateHcalLaserBadRunList::out, printTimestamps_, and edm::StreamContext::streamID().

Referenced by Tracer().

1016  {
1017  LogAbsolute out("Tracer");
1018  out << TimeStamper(printTimestamps_);
1019  unsigned int nIndents = mcc.depth() + 3;
1020  for(unsigned int i = 0; i < nIndents; ++i) {
1021  out << indention_;
1022  }
1023  out << " finished: end lumi for module: stream = " << sc.streamID() << " label = '"<< mcc.moduleDescription()->moduleLabel() << "' id = " << mcc.moduleDescription()->id();
1024  if(dumpContextForLabels_.find(mcc.moduleDescription()->moduleLabel()) != dumpContextForLabels_.end()) {
1025  out << "\n" << sc;
1026  out << mcc;
1027  }
1028 }
int i
Definition: DBlmapReader.cc:9
std::string indention_
Definition: Tracer.cc:162
std::set< std::string > dumpContextForLabels_
Definition: Tracer.cc:163
void Tracer::postModuleStreamEndRun ( StreamContext const &  sc,
ModuleCallingContext const &  mcc 
)

Definition at line 956 of file Tracer.cc.

References edm::ModuleCallingContext::depth(), dumpContextForLabels_, i, edm::ModuleDescription::id(), indention_, edm::ModuleCallingContext::moduleDescription(), edm::ModuleDescription::moduleLabel(), GenerateHcalLaserBadRunList::out, printTimestamps_, and edm::StreamContext::streamID().

Referenced by Tracer().

956  {
957  LogAbsolute out("Tracer");
958  out << TimeStamper(printTimestamps_);
959  unsigned int nIndents = mcc.depth() + 3;
960  for(unsigned int i = 0; i < nIndents; ++i) {
961  out << indention_;
962  }
963  out << " finished: end run for module: stream = " << sc.streamID() << " label = '" << mcc.moduleDescription()->moduleLabel() << "' id = " << mcc.moduleDescription()->id();
964  if(dumpContextForLabels_.find(mcc.moduleDescription()->moduleLabel()) != dumpContextForLabels_.end()) {
965  out << "\n" << sc;
966  out << mcc;
967  }
968 }
int i
Definition: DBlmapReader.cc:9
std::string indention_
Definition: Tracer.cc:162
std::set< std::string > dumpContextForLabels_
Definition: Tracer.cc:163
void Tracer::postOpenFile ( std::string const &  lfn,
bool  b 
)

Definition at line 494 of file Tracer.cc.

References b, dumpNonModuleContext_, indention_, GenerateHcalLaserBadRunList::out, and printTimestamps_.

Referenced by Tracer().

494  {
495  LogAbsolute out("Tracer");
496  out << TimeStamper(printTimestamps_);
497  out << indention_ << indention_ << " finished: open input file: lfn = " << lfn;
498  if(dumpNonModuleContext_) out << " usedFallBack = " << b;
499 }
std::string indention_
Definition: Tracer.cc:162
double b
Definition: hdecay.h:120
bool dumpNonModuleContext_
Definition: Tracer.cc:164
void Tracer::postPathEvent ( StreamContext const &  sc,
PathContext const &  pc,
HLTPathStatus const &  hlts 
)

Definition at line 774 of file Tracer.cc.

References dumpNonModuleContext_, indention_, GenerateHcalLaserBadRunList::out, edm::PathContext::pathName(), printTimestamps_, and edm::StreamContext::streamID().

Referenced by Tracer().

774  {
775  LogAbsolute out("Tracer");
776  out << TimeStamper(printTimestamps_);
777  out << indention_ << indention_ << indention_ << " finished: processing path '" << pc.pathName() << "' : stream = " << sc.streamID();
779  out << "\n" << sc;
780  out << pc;
781  }
782 }
std::string indention_
Definition: Tracer.cc:162
bool dumpNonModuleContext_
Definition: Tracer.cc:164
void Tracer::postSourceConstruction ( ModuleDescription const &  md)

Definition at line 1162 of file Tracer.cc.

References dumpNonModuleContext_, indention_, edm::ModuleDescription::moduleName(), GenerateHcalLaserBadRunList::out, and printTimestamps_.

Referenced by Tracer().

1162  {
1163  LogAbsolute out("Tracer");
1164  out << TimeStamper(printTimestamps_);
1165  out << indention_;
1166  out << " finished: constructing source: " << desc.moduleName();
1167  if(dumpNonModuleContext_) {
1168  out << "\n" << desc;
1169  }
1170 }
std::string indention_
Definition: Tracer.cc:162
bool dumpNonModuleContext_
Definition: Tracer.cc:164
void Tracer::postSourceEvent ( StreamID  sid)

Definition at line 461 of file Tracer.cc.

References indention_, and printTimestamps_.

Referenced by Tracer().

461  {
462  LogAbsolute("Tracer") << TimeStamper(printTimestamps_) << indention_ << indention_ << " finished: source event";
463 }
std::string indention_
Definition: Tracer.cc:162
void Tracer::postSourceLumi ( )

Definition at line 471 of file Tracer.cc.

References indention_, and printTimestamps_.

Referenced by Tracer().

471  {
472  LogAbsolute("Tracer") << TimeStamper(printTimestamps_) << indention_ << indention_ << " finished: source lumi";
473 }
std::string indention_
Definition: Tracer.cc:162
void Tracer::postSourceRun ( )

Definition at line 481 of file Tracer.cc.

References indention_, and printTimestamps_.

Referenced by Tracer().

481  {
482  LogAbsolute("Tracer") << TimeStamper(printTimestamps_) << indention_ << indention_ << " finished: source run";
483 }
std::string indention_
Definition: Tracer.cc:162
void Tracer::postStreamBeginLumi ( StreamContext const &  sc)

Definition at line 708 of file Tracer.cc.

References dumpNonModuleContext_, edm::StreamContext::eventID(), indention_, edm::EventID::luminosityBlock(), GenerateHcalLaserBadRunList::out, printTimestamps_, edm::EventID::run(), edm::StreamContext::streamID(), edm::StreamContext::timestamp(), and edm::Timestamp::value().

Referenced by Tracer().

708  {
709  LogAbsolute out("Tracer");
710  out << TimeStamper(printTimestamps_);
711  out << indention_ << indention_ << " finished: begin lumi: stream = " << sc.streamID() << " run = " << sc.eventID().run()
712  << " lumi = " << sc.eventID().luminosityBlock() << " time = " << sc.timestamp().value();
714  out << "\n" << sc;
715  }
716 }
std::string indention_
Definition: Tracer.cc:162
bool dumpNonModuleContext_
Definition: Tracer.cc:164
void Tracer::postStreamBeginRun ( StreamContext const &  sc)

Definition at line 620 of file Tracer.cc.

References dumpNonModuleContext_, edm::StreamContext::eventID(), indention_, GenerateHcalLaserBadRunList::out, printTimestamps_, edm::EventID::run(), edm::StreamContext::streamID(), edm::StreamContext::timestamp(), and edm::Timestamp::value().

Referenced by Tracer().

620  {
621  LogAbsolute out("Tracer");
622  out << TimeStamper(printTimestamps_);
623  out << indention_ << indention_ << " finished: begin run: stream = " << sc.streamID() << " run = " << sc.eventID().run()
624  << " time = " << sc.timestamp().value();
626  out << "\n" << sc;
627  }
628 }
std::string indention_
Definition: Tracer.cc:162
bool dumpNonModuleContext_
Definition: Tracer.cc:164
void Tracer::postStreamEndLumi ( StreamContext const &  sc)

Definition at line 730 of file Tracer.cc.

References dumpNonModuleContext_, edm::StreamContext::eventID(), indention_, edm::EventID::luminosityBlock(), GenerateHcalLaserBadRunList::out, printTimestamps_, edm::EventID::run(), edm::StreamContext::streamID(), edm::StreamContext::timestamp(), and edm::Timestamp::value().

Referenced by Tracer().

730  {
731  LogAbsolute out("Tracer");
732  out << TimeStamper(printTimestamps_);
733  out << indention_ << indention_ << " finished: end lumi: stream = " << sc.streamID() << " run = " << sc.eventID().run()
734  << " lumi = " << sc.eventID().luminosityBlock() << " time = " << sc.timestamp().value();
736  out << "\n" << sc;
737  }
738 }
std::string indention_
Definition: Tracer.cc:162
bool dumpNonModuleContext_
Definition: Tracer.cc:164
void Tracer::postStreamEndRun ( StreamContext const &  sc)

Definition at line 642 of file Tracer.cc.

References dumpNonModuleContext_, edm::StreamContext::eventID(), indention_, GenerateHcalLaserBadRunList::out, printTimestamps_, edm::EventID::run(), edm::StreamContext::streamID(), edm::StreamContext::timestamp(), and edm::Timestamp::value().

Referenced by Tracer().

642  {
643  LogAbsolute out("Tracer");
644  out << TimeStamper(printTimestamps_);
645  out << indention_ << indention_ << " finished: end run: stream = " << sc.streamID() << " run = " << sc.eventID().run()
646  << " time = " << sc.timestamp().value();
648  out << "\n" << sc;
649  }
650 }
std::string indention_
Definition: Tracer.cc:162
bool dumpNonModuleContext_
Definition: Tracer.cc:164
void Tracer::preallocate ( service::SystemBounds const &  bounds)

Definition at line 352 of file Tracer.cc.

References indention_, edm::service::SystemBounds::maxNumberOfConcurrentLuminosityBlocks(), edm::service::SystemBounds::maxNumberOfConcurrentRuns(), edm::service::SystemBounds::maxNumberOfStreams(), and printTimestamps_.

Referenced by Tracer().

352  {
353  LogAbsolute("Tracer") << TimeStamper(printTimestamps_) << indention_ << " preallocate: " << bounds.maxNumberOfConcurrentRuns() << " concurrent runs, "
354  << bounds.maxNumberOfConcurrentLuminosityBlocks() << " concurrent luminosity sections, "
355  << bounds.maxNumberOfStreams() << " streams";
356 }
std::string indention_
Definition: Tracer.cc:162
void Tracer::preBeginJob ( PathsAndConsumesOfModulesBase const &  pathsAndConsumes,
ProcessContext const &  pc 
)

Definition at line 359 of file Tracer.cc.

References edm::PathsAndConsumesOfModulesBase::allModules(), edm::PathsAndConsumesOfModulesBase::consumesInfo(), dumpPathsAndConsumes_, edm::ELEMENT_TYPE, edm::PathsAndConsumesOfModulesBase::endPaths(), Exception, indention_, info(), edm::InLumi, edm::InRun, j, python.rootplot.argparse::module, edm::PathsAndConsumesOfModulesBase::moduleDescription(), edm::PathsAndConsumesOfModulesBase::modulesOnEndPath(), edm::PathsAndConsumesOfModulesBase::modulesOnPath(), edm::PathsAndConsumesOfModulesBase::modulesWhoseProductsAreConsumedBy(), GenerateHcalLaserBadRunList::out, fed_dqm_sourceclient-live_cfg::path, edm::PathsAndConsumesOfModulesBase::paths(), mergeAndRegister::paths, printTimestamps_, and edm::ProcessContext::processName().

Referenced by Tracer().

359  {
360  LogAbsolute out("Tracer");
361  out << TimeStamper(printTimestamps_) << indention_ << " starting: begin job";
363  out << "\n" << "Process name = " << pc.processName() << "\n";
364  out << "paths:\n";
365  std::vector<std::string> const& paths = pathsAndConsumes.paths();
366  for(auto const& path : paths) {
367  out << " " << path << "\n";
368  }
369  out << "end paths:\n";
370  std::vector<std::string> const& endpaths = pathsAndConsumes.endPaths();
371  for(auto const& endpath : endpaths) {
372  out << " " << endpath << "\n";
373  }
374  for(unsigned int j = 0; j < paths.size(); ++j) {
375  std::vector<ModuleDescription const*> const& modulesOnPath = pathsAndConsumes.modulesOnPath(j);
376  out << "modules on path " << paths.at(j) << ":\n";
377  for(auto const& desc : modulesOnPath) {
378  out << " " << desc->moduleLabel() << "\n";
379  }
380  }
381  for(unsigned int j = 0; j < endpaths.size(); ++j) {
382  std::vector<ModuleDescription const*> const& modulesOnEndPath = pathsAndConsumes.modulesOnEndPath(j);
383  out << "modules on end path " << endpaths.at(j) << ":\n";
384  for(auto const& desc : modulesOnEndPath) {
385  out << " " << desc->moduleLabel() << "\n";
386  }
387  }
388  std::vector<ModuleDescription const*> const& allModules = pathsAndConsumes.allModules();
389  out << "All modules and modules in the current process whose products they consume:\n";
390  out << "(This does not include modules from previous processes or the source)\n";
391  for(auto const& module : allModules) {
392  out << " " << module->moduleName() << "/\'" << module->moduleLabel() << "\'";
393  unsigned int moduleID = module->id();
394  if(pathsAndConsumes.moduleDescription(moduleID) != module) {
395  throw cms::Exception("TestFailure") << "Tracer::preBeginJob, moduleDescription returns incorrect value";
396  }
397  std::vector<ModuleDescription const*> const& modulesWhoseProductsAreConsumedBy =
398  pathsAndConsumes.modulesWhoseProductsAreConsumedBy(moduleID);
399  if(!modulesWhoseProductsAreConsumedBy.empty()) {
400  out << " consumes products from these modules:\n";
401  for(auto const& producingModule : modulesWhoseProductsAreConsumedBy) {
402  out << " " << producingModule->moduleName() << "/\'" << producingModule->moduleLabel() << "\'\n";
403  }
404  } else {
405  out << "\n";
406  }
407  }
408  out << "All modules (listed by class and label) and all their consumed products.\n";
409  out << "Consumed products are listed by type, label, instance, process.\n";
410  out << "For products not in the event, \'run\' or \'lumi\' is added to indicate the TTree they are from.\n";
411  out << "For products that are declared with mayConsume, \'may consume\' is added.\n";
412  out << "For products consumed for Views, \'element type\' is added\n";
413  out << "For products only read from previous processes, \'skip current process\' is added\n";
414  for(auto const* module : allModules) {
415  out << " " << module->moduleName() << "/\'" << module->moduleLabel() << "\'";
416  std::vector<ConsumesInfo> consumesInfo = pathsAndConsumes.consumesInfo(module->id());
417  if(!consumesInfo.empty()) {
418  out << " consumes:\n";
419  for(auto const& info : consumesInfo) {
420  out << " " << info.type() << " \'" << info.label() << "\' \'" << info.instance();
421  out << "\' \'" << info.process() << "\'";
422  if(info.branchType() == InLumi) {
423  out << ", lumi";
424  } else if(info.branchType() == InRun) {
425  out << ", run";
426  }
427  if(!info.alwaysGets()) {
428  out << ", may consume";
429  }
430  if(info.kindOfType() == ELEMENT_TYPE) {
431  out << ", element type";
432  }
433  if(info.skipCurrentProcess()) {
434  out << ", skip current process";
435  }
436  out << "\n";
437  }
438  } else {
439  out << "\n";
440  }
441  }
442  }
443 }
static const TGPicture * info(bool iBackgroundIsBlack)
int j
Definition: DBlmapReader.cc:9
bool dumpPathsAndConsumes_
Definition: Tracer.cc:165
std::string indention_
Definition: Tracer.cc:162
Definition: vlib.h:208
void Tracer::preCloseFile ( std::string const &  lfn,
bool  primary 
)

Definition at line 502 of file Tracer.cc.

References b, dumpNonModuleContext_, indention_, GenerateHcalLaserBadRunList::out, and printTimestamps_.

Referenced by Tracer().

502  {
503  LogAbsolute out("Tracer");
504  out << TimeStamper(printTimestamps_);
505  out << indention_ << indention_ << " starting: close input file: lfn = " << lfn;
506  if(dumpNonModuleContext_) out << " usedFallBack = " << b;
507 }
std::string indention_
Definition: Tracer.cc:162
double b
Definition: hdecay.h:120
bool dumpNonModuleContext_
Definition: Tracer.cc:164
void Tracer::preEvent ( StreamContext const &  sc)

Definition at line 741 of file Tracer.cc.

References dumpNonModuleContext_, edm::EventID::event(), edm::StreamContext::eventID(), indention_, edm::EventID::luminosityBlock(), GenerateHcalLaserBadRunList::out, printTimestamps_, edm::EventID::run(), edm::StreamContext::streamID(), edm::StreamContext::timestamp(), and edm::Timestamp::value().

Referenced by Tracer().

741  {
742  LogAbsolute out("Tracer");
743  out << TimeStamper(printTimestamps_);
744  out << indention_ << indention_ << " starting: processing event : stream = " << sc.streamID() << " run = " << sc.eventID().run()
745  << " lumi = " << sc.eventID().luminosityBlock() << " event = " << sc.eventID().event() << " time = " << sc.timestamp().value();
747  out << "\n" << sc;
748  }
749 }
std::string indention_
Definition: Tracer.cc:162
bool dumpNonModuleContext_
Definition: Tracer.cc:164
void Tracer::preGlobalBeginLumi ( GlobalContext const &  gc)

Definition at line 653 of file Tracer.cc.

References dumpNonModuleContext_, indention_, edm::LuminosityBlockID::luminosityBlock(), edm::GlobalContext::luminosityBlockID(), GenerateHcalLaserBadRunList::out, printTimestamps_, edm::LuminosityBlockID::run(), edm::GlobalContext::timestamp(), and edm::Timestamp::value().

Referenced by Tracer().

653  {
654  LogAbsolute out("Tracer");
655  out << TimeStamper(printTimestamps_);
656  out << indention_ << indention_ << " starting: global begin lumi: run = " << gc.luminosityBlockID().run()
657  << " lumi = " << gc.luminosityBlockID().luminosityBlock() << " time = " << gc.timestamp().value();
659  out << "\n" << gc;
660  }
661 }
std::string indention_
Definition: Tracer.cc:162
bool dumpNonModuleContext_
Definition: Tracer.cc:164
void Tracer::preGlobalBeginRun ( GlobalContext const &  gc)

Definition at line 565 of file Tracer.cc.

References dumpNonModuleContext_, indention_, edm::GlobalContext::luminosityBlockID(), GenerateHcalLaserBadRunList::out, printTimestamps_, edm::LuminosityBlockID::run(), edm::GlobalContext::timestamp(), and edm::Timestamp::value().

Referenced by Tracer().

565  {
566  LogAbsolute out("Tracer");
567  out << TimeStamper(printTimestamps_);
568  out << indention_ << indention_ << " starting: global begin run " << gc.luminosityBlockID().run()
569  << " : time = " << gc.timestamp().value();
571  out << "\n" << gc;
572  }
573 }
std::string indention_
Definition: Tracer.cc:162
bool dumpNonModuleContext_
Definition: Tracer.cc:164
void Tracer::preGlobalEndLumi ( GlobalContext const &  gc)

Definition at line 675 of file Tracer.cc.

References dumpNonModuleContext_, indention_, edm::LuminosityBlockID::luminosityBlock(), edm::GlobalContext::luminosityBlockID(), GenerateHcalLaserBadRunList::out, printTimestamps_, edm::LuminosityBlockID::run(), edm::GlobalContext::timestamp(), and edm::Timestamp::value().

Referenced by Tracer().

675  {
676  LogAbsolute out("Tracer");
677  out << TimeStamper(printTimestamps_);
678  out << indention_ << indention_ << " starting: global end lumi: run = " << gc.luminosityBlockID().run()
679  << " lumi = " << gc.luminosityBlockID().luminosityBlock() << " time = " << gc.timestamp().value();
681  out << "\n" << gc;
682  }
683 }
std::string indention_
Definition: Tracer.cc:162
bool dumpNonModuleContext_
Definition: Tracer.cc:164
void Tracer::preGlobalEndRun ( GlobalContext const &  gc)

Definition at line 587 of file Tracer.cc.

References dumpNonModuleContext_, indention_, edm::GlobalContext::luminosityBlockID(), GenerateHcalLaserBadRunList::out, printTimestamps_, edm::LuminosityBlockID::run(), edm::GlobalContext::timestamp(), and edm::Timestamp::value().

Referenced by Tracer().

587  {
588  LogAbsolute out("Tracer");
589  out << TimeStamper(printTimestamps_);
590  out << indention_ << indention_ << " starting: global end run " << gc.luminosityBlockID().run()
591  << " : time = " << gc.timestamp().value();
593  out << "\n" << gc;
594  }
595 }
std::string indention_
Definition: Tracer.cc:162
bool dumpNonModuleContext_
Definition: Tracer.cc:164
void Tracer::preModuleBeginJob ( ModuleDescription const &  md)

Definition at line 805 of file Tracer.cc.

References dumpContextForLabels_, edm::ModuleDescription::id(), indention_, edm::ModuleDescription::moduleLabel(), GenerateHcalLaserBadRunList::out, and printTimestamps_.

Referenced by Tracer().

805  {
806  LogAbsolute out("Tracer");
807  out << TimeStamper(printTimestamps_);
808  out << indention_ << indention_;
809  out << " starting: begin job for module with label '" << desc.moduleLabel() << "' id = " << desc.id();
810  if(dumpContextForLabels_.find(desc.moduleLabel()) != dumpContextForLabels_.end()) {
811  out << "\n" << desc;
812  }
813 }
std::string indention_
Definition: Tracer.cc:162
std::set< std::string > dumpContextForLabels_
Definition: Tracer.cc:163
void Tracer::preModuleBeginStream ( StreamContext const &  sc,
ModuleCallingContext const &  mcc 
)

Definition at line 517 of file Tracer.cc.

References dumpContextForLabels_, edm::ModuleDescription::id(), indention_, edm::ModuleCallingContext::moduleDescription(), edm::ModuleDescription::moduleLabel(), GenerateHcalLaserBadRunList::out, printTimestamps_, and edm::StreamContext::streamID().

Referenced by Tracer().

517  {
518  ModuleDescription const& desc = *mcc.moduleDescription();
519  LogAbsolute out("Tracer");
520  out << TimeStamper(printTimestamps_);
521  out << indention_ << indention_ << " starting: begin stream for module: stream = " << sc.streamID() << " label = '" << desc.moduleLabel() << "' id = " << desc.id();
522  if(dumpContextForLabels_.find(desc.moduleLabel()) != dumpContextForLabels_.end()) {
523  out << "\n" << sc;
524  out << mcc;
525  }
526 }
std::string indention_
Definition: Tracer.cc:162
std::set< std::string > dumpContextForLabels_
Definition: Tracer.cc:163
void Tracer::preModuleConstruction ( ModuleDescription const &  md)

Definition at line 785 of file Tracer.cc.

References dumpContextForLabels_, edm::ModuleDescription::id(), indention_, edm::ModuleDescription::moduleLabel(), GenerateHcalLaserBadRunList::out, and printTimestamps_.

Referenced by Tracer().

785  {
786  LogAbsolute out("Tracer");
787  out << TimeStamper(printTimestamps_);
788  out << indention_ << indention_ << " starting: constructing module with label '" << desc.moduleLabel() << "' id = " << desc.id();
789  if(dumpContextForLabels_.find(desc.moduleLabel()) != dumpContextForLabels_.end()) {
790  out << "\n" << desc;
791  }
792 }
std::string indention_
Definition: Tracer.cc:162
std::set< std::string > dumpContextForLabels_
Definition: Tracer.cc:163
void Tracer::preModuleEndJob ( ModuleDescription const &  md)

Definition at line 827 of file Tracer.cc.

References dumpContextForLabels_, edm::ModuleDescription::id(), indention_, edm::ModuleDescription::moduleLabel(), GenerateHcalLaserBadRunList::out, and printTimestamps_.

Referenced by Tracer().

827  {
828  LogAbsolute out("Tracer");
829  out << TimeStamper(printTimestamps_);
830  out << indention_ << indention_;
831  out << " starting: end job for module with label '" << desc.moduleLabel() << "' id = " << desc.id();
832  if(dumpContextForLabels_.find(desc.moduleLabel()) != dumpContextForLabels_.end()) {
833  out << "\n" << desc;
834  }
835 }
std::string indention_
Definition: Tracer.cc:162
std::set< std::string > dumpContextForLabels_
Definition: Tracer.cc:163
void Tracer::preModuleEndStream ( StreamContext const &  sc,
ModuleCallingContext const &  mcc 
)

Definition at line 541 of file Tracer.cc.

References dumpContextForLabels_, edm::ModuleDescription::id(), indention_, edm::ModuleCallingContext::moduleDescription(), edm::ModuleDescription::moduleLabel(), GenerateHcalLaserBadRunList::out, printTimestamps_, and edm::StreamContext::streamID().

Referenced by Tracer().

541  {
542  ModuleDescription const& desc = *mcc.moduleDescription();
543  LogAbsolute out("Tracer");
544  out << TimeStamper(printTimestamps_);
545  out << indention_ << indention_ << " starting: end stream for module: stream = " << sc.streamID() << " label = '" << desc.moduleLabel() << "' id = " << desc.id();
546  if(dumpContextForLabels_.find(desc.moduleLabel()) != dumpContextForLabels_.end()) {
547  out << "\n" << sc;
548  out << mcc;
549  }
550 }
std::string indention_
Definition: Tracer.cc:162
std::set< std::string > dumpContextForLabels_
Definition: Tracer.cc:163
void Tracer::preModuleEvent ( StreamContext const &  sc,
ModuleCallingContext const &  mcc 
)

Definition at line 849 of file Tracer.cc.

References edm::ModuleCallingContext::depth(), dumpContextForLabels_, i, edm::ModuleDescription::id(), indention_, edm::ModuleCallingContext::moduleDescription(), edm::ModuleDescription::moduleLabel(), GenerateHcalLaserBadRunList::out, printTimestamps_, and edm::StreamContext::streamID().

Referenced by Tracer().

849  {
850  LogAbsolute out("Tracer");
851  out << TimeStamper(printTimestamps_);
852  unsigned int nIndents = mcc.depth() + 4;
853  for(unsigned int i = 0; i < nIndents; ++i) {
854  out << indention_;
855  }
856  out << " starting: processing event for module: stream = " << sc.streamID() << " label = '" << mcc.moduleDescription()->moduleLabel() << "' id = " << mcc.moduleDescription()->id();
857  if(dumpContextForLabels_.find(mcc.moduleDescription()->moduleLabel()) != dumpContextForLabels_.end()) {
858  out << "\n" << sc;
859  out << mcc;
860  }
861 }
int i
Definition: DBlmapReader.cc:9
std::string indention_
Definition: Tracer.cc:162
std::set< std::string > dumpContextForLabels_
Definition: Tracer.cc:163
void Tracer::preModuleEventDelayedGet ( StreamContext const &  sc,
ModuleCallingContext const &  mcc 
)

Definition at line 880 of file Tracer.cc.

References edm::ModuleCallingContext::depth(), dumpContextForLabels_, i, edm::ModuleDescription::id(), indention_, edm::ModuleCallingContext::moduleDescription(), edm::ModuleDescription::moduleLabel(), GenerateHcalLaserBadRunList::out, printTimestamps_, and edm::StreamContext::streamID().

Referenced by Tracer().

880  {
881  LogAbsolute out("Tracer");
882  out << TimeStamper(printTimestamps_);
883  unsigned int nIndents = mcc.depth() + 4;
884  for(unsigned int i = 0; i < nIndents; ++i) {
885  out << indention_;
886  }
887  out << " starting: delayed processing event for module: stream = " << sc.streamID() << " label = '" << mcc.moduleDescription()->moduleLabel() << "' id = " << mcc.moduleDescription()->id();
888  if(dumpContextForLabels_.find(mcc.moduleDescription()->moduleLabel()) != dumpContextForLabels_.end()) {
889  out << "\n" << sc;
890  out << mcc;
891  }
892 }
int i
Definition: DBlmapReader.cc:9
std::string indention_
Definition: Tracer.cc:162
std::set< std::string > dumpContextForLabels_
Definition: Tracer.cc:163
void Tracer::preModuleGlobalBeginLumi ( GlobalContext const &  gc,
ModuleCallingContext const &  mcc 
)

Definition at line 1091 of file Tracer.cc.

References edm::ModuleCallingContext::depth(), dumpContextForLabels_, i, edm::ModuleDescription::id(), indention_, edm::ModuleCallingContext::moduleDescription(), edm::ModuleDescription::moduleLabel(), GenerateHcalLaserBadRunList::out, and printTimestamps_.

Referenced by Tracer().

1091  {
1092  LogAbsolute out("Tracer");
1093  out << TimeStamper(printTimestamps_);
1094  unsigned int nIndents = mcc.depth() + 3;
1095  for(unsigned int i = 0; i < nIndents; ++i) {
1096  out << indention_;
1097  }
1098  out << " starting: global begin lumi for module: label = '" << mcc.moduleDescription()->moduleLabel() << "' id = " << mcc.moduleDescription()->id();
1099  if(dumpContextForLabels_.find(mcc.moduleDescription()->moduleLabel()) != dumpContextForLabels_.end()) {
1100  out << "\n" << gc;
1101  out << mcc;
1102  }
1103 }
int i
Definition: DBlmapReader.cc:9
std::string indention_
Definition: Tracer.cc:162
std::set< std::string > dumpContextForLabels_
Definition: Tracer.cc:163
void Tracer::preModuleGlobalBeginRun ( GlobalContext const &  gc,
ModuleCallingContext const &  mcc 
)

Definition at line 1031 of file Tracer.cc.

References edm::ModuleCallingContext::depth(), dumpContextForLabels_, i, edm::ModuleDescription::id(), indention_, edm::ModuleCallingContext::moduleDescription(), edm::ModuleDescription::moduleLabel(), GenerateHcalLaserBadRunList::out, and printTimestamps_.

Referenced by Tracer().

1031  {
1032  LogAbsolute out("Tracer");
1033  out << TimeStamper(printTimestamps_);
1034  unsigned int nIndents = mcc.depth() + 3;
1035  for(unsigned int i = 0; i < nIndents; ++i) {
1036  out << indention_;
1037  }
1038  out << " starting: global begin run for module: label = '" << mcc.moduleDescription()->moduleLabel() << "' id = " << mcc.moduleDescription()->id();
1039  if(dumpContextForLabels_.find(mcc.moduleDescription()->moduleLabel()) != dumpContextForLabels_.end()) {
1040  out << "\n" << gc;
1041  out << mcc;
1042  }
1043 }
int i
Definition: DBlmapReader.cc:9
std::string indention_
Definition: Tracer.cc:162
std::set< std::string > dumpContextForLabels_
Definition: Tracer.cc:163
void Tracer::preModuleGlobalEndLumi ( GlobalContext const &  gc,
ModuleCallingContext const &  mcc 
)

Definition at line 1121 of file Tracer.cc.

References edm::ModuleCallingContext::depth(), dumpContextForLabels_, i, edm::ModuleDescription::id(), indention_, edm::ModuleCallingContext::moduleDescription(), edm::ModuleDescription::moduleLabel(), GenerateHcalLaserBadRunList::out, and printTimestamps_.

Referenced by Tracer().

1121  {
1122  LogAbsolute out("Tracer");
1123  out << TimeStamper(printTimestamps_);
1124  unsigned int nIndents = mcc.depth() + 3;
1125  for(unsigned int i = 0; i < nIndents; ++i) {
1126  out << indention_;
1127  }
1128  out << " starting: global end lumi for module: label = '" << mcc.moduleDescription()->moduleLabel() << "' id = " << mcc.moduleDescription()->id();
1129  if(dumpContextForLabels_.find(mcc.moduleDescription()->moduleLabel()) != dumpContextForLabels_.end()) {
1130  out << "\n" << gc;
1131  out << mcc;
1132  }
1133 }
int i
Definition: DBlmapReader.cc:9
std::string indention_
Definition: Tracer.cc:162
std::set< std::string > dumpContextForLabels_
Definition: Tracer.cc:163
void Tracer::preModuleGlobalEndRun ( GlobalContext const &  gc,
ModuleCallingContext const &  mcc 
)

Definition at line 1061 of file Tracer.cc.

References edm::ModuleCallingContext::depth(), dumpContextForLabels_, i, edm::ModuleDescription::id(), indention_, edm::ModuleCallingContext::moduleDescription(), edm::ModuleDescription::moduleLabel(), GenerateHcalLaserBadRunList::out, and printTimestamps_.

Referenced by Tracer().

1061  {
1062  LogAbsolute out("Tracer");
1063  out << TimeStamper(printTimestamps_);
1064  unsigned int nIndents = mcc.depth() + 3;
1065  for(unsigned int i = 0; i < nIndents; ++i) {
1066  out << indention_;
1067  }
1068  out << " starting: global end run for module: label = '" << mcc.moduleDescription()->moduleLabel() << "' id = " << mcc.moduleDescription()->id();
1069  if(dumpContextForLabels_.find(mcc.moduleDescription()->moduleLabel()) != dumpContextForLabels_.end()) {
1070  out << "\n" << gc;
1071  out << mcc;
1072  }
1073 }
int i
Definition: DBlmapReader.cc:9
std::string indention_
Definition: Tracer.cc:162
std::set< std::string > dumpContextForLabels_
Definition: Tracer.cc:163
void Tracer::preModuleStreamBeginLumi ( StreamContext const &  sc,
ModuleCallingContext const &  mcc 
)

Definition at line 971 of file Tracer.cc.

References edm::ModuleCallingContext::depth(), dumpContextForLabels_, i, edm::ModuleDescription::id(), indention_, edm::ModuleCallingContext::moduleDescription(), edm::ModuleDescription::moduleLabel(), GenerateHcalLaserBadRunList::out, printTimestamps_, and edm::StreamContext::streamID().

Referenced by Tracer().

971  {
972  LogAbsolute out("Tracer");
973  out << TimeStamper(printTimestamps_);
974  unsigned int nIndents = mcc.depth() + 3;
975  for(unsigned int i = 0; i < nIndents; ++i) {
976  out << indention_;
977  }
978  out << " starting: begin lumi for module: stream = " << sc.streamID() << " label = '" << mcc.moduleDescription()->moduleLabel() << "' id = " << mcc.moduleDescription()->id();
979  if(dumpContextForLabels_.find(mcc.moduleDescription()->moduleLabel()) != dumpContextForLabels_.end()) {
980  out << "\n" << sc;
981  out << mcc;
982  }
983 }
int i
Definition: DBlmapReader.cc:9
std::string indention_
Definition: Tracer.cc:162
std::set< std::string > dumpContextForLabels_
Definition: Tracer.cc:163
void Tracer::preModuleStreamBeginRun ( StreamContext const &  sc,
ModuleCallingContext const &  mcc 
)

Definition at line 911 of file Tracer.cc.

References edm::ModuleCallingContext::depth(), dumpContextForLabels_, i, edm::ModuleDescription::id(), indention_, edm::ModuleCallingContext::moduleDescription(), edm::ModuleDescription::moduleLabel(), GenerateHcalLaserBadRunList::out, printTimestamps_, and edm::StreamContext::streamID().

Referenced by Tracer().

911  {
912  LogAbsolute out("Tracer");
913  out << TimeStamper(printTimestamps_);
914  unsigned int nIndents = mcc.depth() + 3;
915  for(unsigned int i = 0; i < nIndents; ++i) {
916  out << indention_;
917  }
918  out << " starting: begin run for module: stream = " << sc.streamID() << " label = '" << mcc.moduleDescription()->moduleLabel() << "' id = " << mcc.moduleDescription()->id();
919  if(dumpContextForLabels_.find(mcc.moduleDescription()->moduleLabel()) != dumpContextForLabels_.end()) {
920  out << "\n" << sc;
921  out << mcc;
922  }
923 }
int i
Definition: DBlmapReader.cc:9
std::string indention_
Definition: Tracer.cc:162
std::set< std::string > dumpContextForLabels_
Definition: Tracer.cc:163
void Tracer::preModuleStreamEndLumi ( StreamContext const &  sc,
ModuleCallingContext const &  mcc 
)

Definition at line 1001 of file Tracer.cc.

References edm::ModuleCallingContext::depth(), dumpContextForLabels_, i, edm::ModuleDescription::id(), indention_, edm::ModuleCallingContext::moduleDescription(), edm::ModuleDescription::moduleLabel(), GenerateHcalLaserBadRunList::out, printTimestamps_, and edm::StreamContext::streamID().

Referenced by Tracer().

1001  {
1002  LogAbsolute out("Tracer");
1003  out << TimeStamper(printTimestamps_);
1004  unsigned int nIndents = mcc.depth() + 3;
1005  for(unsigned int i = 0; i < nIndents; ++i) {
1006  out << indention_;
1007  }
1008  out << " starting: end lumi for module: stream = " << sc.streamID() << " label = '"<< mcc.moduleDescription()->moduleLabel() << "' id = " << mcc.moduleDescription()->id();
1009  if(dumpContextForLabels_.find(mcc.moduleDescription()->moduleLabel()) != dumpContextForLabels_.end()) {
1010  out << "\n" << sc;
1011  out << mcc;
1012  }
1013 }
int i
Definition: DBlmapReader.cc:9
std::string indention_
Definition: Tracer.cc:162
std::set< std::string > dumpContextForLabels_
Definition: Tracer.cc:163
void Tracer::preModuleStreamEndRun ( StreamContext const &  sc,
ModuleCallingContext const &  mcc 
)

Definition at line 941 of file Tracer.cc.

References edm::ModuleCallingContext::depth(), dumpContextForLabels_, i, edm::ModuleDescription::id(), indention_, edm::ModuleCallingContext::moduleDescription(), edm::ModuleDescription::moduleLabel(), GenerateHcalLaserBadRunList::out, printTimestamps_, and edm::StreamContext::streamID().

Referenced by Tracer().

941  {
942  LogAbsolute out("Tracer");
943  out << TimeStamper(printTimestamps_);
944  unsigned int nIndents = mcc.depth() + 3;
945  for(unsigned int i = 0; i < nIndents; ++i) {
946  out << indention_;
947  }
948  out << " starting: end run for module: stream = " << sc.streamID() << " label = '" << mcc.moduleDescription()->moduleLabel() << "' id = " << mcc.moduleDescription()->id();
949  if(dumpContextForLabels_.find(mcc.moduleDescription()->moduleLabel()) != dumpContextForLabels_.end()) {
950  out << "\n" << sc;
951  out << mcc;
952  }
953 }
int i
Definition: DBlmapReader.cc:9
std::string indention_
Definition: Tracer.cc:162
std::set< std::string > dumpContextForLabels_
Definition: Tracer.cc:163
void Tracer::preOpenFile ( std::string const &  lfn,
bool  b 
)

Definition at line 486 of file Tracer.cc.

References b, dumpNonModuleContext_, indention_, GenerateHcalLaserBadRunList::out, and printTimestamps_.

Referenced by Tracer().

486  {
487  LogAbsolute out("Tracer");
488  out << TimeStamper(printTimestamps_);
489  out << indention_ << indention_ << " starting: open input file: lfn = " << lfn;
490  if(dumpNonModuleContext_) out << " usedFallBack = " << b;
491 }
std::string indention_
Definition: Tracer.cc:162
double b
Definition: hdecay.h:120
bool dumpNonModuleContext_
Definition: Tracer.cc:164
void Tracer::prePathEvent ( StreamContext const &  sc,
PathContext const &  pc 
)

Definition at line 763 of file Tracer.cc.

References dumpNonModuleContext_, indention_, GenerateHcalLaserBadRunList::out, edm::PathContext::pathName(), printTimestamps_, and edm::StreamContext::streamID().

Referenced by Tracer().

763  {
764  LogAbsolute out("Tracer");
765  out << TimeStamper(printTimestamps_);
766  out << indention_ << indention_ << indention_ << " starting: processing path '" << pc.pathName() << "' : stream = " << sc.streamID();
768  out << "\n" << sc;
769  out << pc;
770  }
771 }
std::string indention_
Definition: Tracer.cc:162
bool dumpNonModuleContext_
Definition: Tracer.cc:164
void Tracer::preSourceConstruction ( ModuleDescription const &  md)

Definition at line 1151 of file Tracer.cc.

References dumpNonModuleContext_, indention_, edm::ModuleDescription::moduleName(), GenerateHcalLaserBadRunList::out, and printTimestamps_.

Referenced by Tracer().

1151  {
1152  LogAbsolute out("Tracer");
1153  out << TimeStamper(printTimestamps_);
1154  out << indention_;
1155  out << " starting: constructing source: " << desc.moduleName();
1156  if(dumpNonModuleContext_) {
1157  out << "\n" << desc;
1158  }
1159 }
std::string indention_
Definition: Tracer.cc:162
bool dumpNonModuleContext_
Definition: Tracer.cc:164
void Tracer::preSourceEvent ( StreamID  sid)

Definition at line 456 of file Tracer.cc.

References indention_, and printTimestamps_.

Referenced by Tracer().

456  {
457  LogAbsolute("Tracer") << TimeStamper(printTimestamps_) << indention_ << indention_ << " starting: source event";
458 }
std::string indention_
Definition: Tracer.cc:162
void Tracer::preSourceLumi ( )

Definition at line 466 of file Tracer.cc.

References indention_, and printTimestamps_.

Referenced by Tracer().

466  {
467  LogAbsolute("Tracer") << TimeStamper(printTimestamps_) << indention_ << indention_ << " starting: source lumi";
468 }
std::string indention_
Definition: Tracer.cc:162
void Tracer::preSourceRun ( )

Definition at line 476 of file Tracer.cc.

References indention_, and printTimestamps_.

Referenced by Tracer().

476  {
477  LogAbsolute("Tracer") << TimeStamper(printTimestamps_) << indention_ << indention_ << " starting: source run";
478 }
std::string indention_
Definition: Tracer.cc:162
void Tracer::preStreamBeginLumi ( StreamContext const &  sc)

Definition at line 697 of file Tracer.cc.

References dumpNonModuleContext_, edm::StreamContext::eventID(), indention_, edm::EventID::luminosityBlock(), GenerateHcalLaserBadRunList::out, printTimestamps_, edm::EventID::run(), edm::StreamContext::streamID(), edm::StreamContext::timestamp(), and edm::Timestamp::value().

Referenced by Tracer().

697  {
698  LogAbsolute out("Tracer");
699  out << TimeStamper(printTimestamps_);
700  out << indention_ << indention_ << " starting: begin lumi: stream = " << sc.streamID() << " run = " << sc.eventID().run()
701  << " lumi = " << sc.eventID().luminosityBlock() << " time = " << sc.timestamp().value();
703  out << "\n" << sc;
704  }
705 }
std::string indention_
Definition: Tracer.cc:162
bool dumpNonModuleContext_
Definition: Tracer.cc:164
void Tracer::preStreamBeginRun ( StreamContext const &  sc)

Definition at line 609 of file Tracer.cc.

References dumpNonModuleContext_, edm::StreamContext::eventID(), indention_, GenerateHcalLaserBadRunList::out, printTimestamps_, edm::EventID::run(), edm::StreamContext::streamID(), edm::StreamContext::timestamp(), and edm::Timestamp::value().

Referenced by Tracer().

609  {
610  LogAbsolute out("Tracer");
611  out << TimeStamper(printTimestamps_);
612  out << indention_ << indention_ << " starting: begin run: stream = " << sc.streamID() << " run = " << sc.eventID().run()
613  << " time = " << sc.timestamp().value();
615  out << "\n" << sc;
616  }
617 }
std::string indention_
Definition: Tracer.cc:162
bool dumpNonModuleContext_
Definition: Tracer.cc:164
void Tracer::preStreamEndLumi ( StreamContext const &  sc)

Definition at line 719 of file Tracer.cc.

References dumpNonModuleContext_, edm::StreamContext::eventID(), indention_, edm::EventID::luminosityBlock(), GenerateHcalLaserBadRunList::out, printTimestamps_, edm::EventID::run(), edm::StreamContext::streamID(), edm::StreamContext::timestamp(), and edm::Timestamp::value().

Referenced by Tracer().

719  {
720  LogAbsolute out("Tracer");
721  out << TimeStamper(printTimestamps_);
722  out << indention_ << indention_ << " starting: end lumi: stream = " << sc.streamID() << " run = " << sc.eventID().run()
723  << " lumi = " << sc.eventID().luminosityBlock() << " time = " << sc.timestamp().value();
725  out << "\n" << sc;
726  }
727 }
std::string indention_
Definition: Tracer.cc:162
bool dumpNonModuleContext_
Definition: Tracer.cc:164
void Tracer::preStreamEndRun ( StreamContext const &  sc)

Definition at line 631 of file Tracer.cc.

References dumpNonModuleContext_, edm::StreamContext::eventID(), indention_, GenerateHcalLaserBadRunList::out, printTimestamps_, edm::EventID::run(), edm::StreamContext::streamID(), edm::StreamContext::timestamp(), and edm::Timestamp::value().

Referenced by Tracer().

631  {
632  LogAbsolute out("Tracer");
633  out << TimeStamper(printTimestamps_);
634  out << indention_ << indention_ << " starting: end run: stream = " << sc.streamID() << " run = " << sc.eventID().run()
635  << " time = " << sc.timestamp().value();
637  out << "\n" << sc;
638  }
639 }
std::string indention_
Definition: Tracer.cc:162
bool dumpNonModuleContext_
Definition: Tracer.cc:164

Member Data Documentation

std::set<std::string> edm::service::Tracer::dumpContextForLabels_
private
bool edm::service::Tracer::dumpNonModuleContext_
private
bool edm::service::Tracer::dumpPathsAndConsumes_
private

Definition at line 165 of file Tracer.cc.

Referenced by preBeginJob().

std::string edm::service::Tracer::indention_
private
bool edm::service::Tracer::printTimestamps_
private