Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-08-13 23:27:09

0001 #include "FWCore/Framework/interface/LuminosityBlockForOutput.h"
0002 
0003 #include "FWCore/Framework/interface/LuminosityBlockPrincipal.h"
0004 #include "FWCore/Framework/interface/RunForOutput.h"
0005 #include "FWCore/Framework/interface/TransitionInfoTypes.h"
0006 #include "FWCore/Utilities/interface/Algorithms.h"
0007 #include "FWCore/Utilities/interface/get_underlying_safe.h"
0008 
0009 namespace edm {
0010 
0011   LuminosityBlockForOutput::LuminosityBlockForOutput(LumiTransitionInfo const& info,
0012                                                      ModuleDescription const& md,
0013                                                      ModuleCallingContext const* mcc,
0014                                                      bool isAtEnd)
0015       : LuminosityBlockForOutput(info.principal(), md, mcc, isAtEnd) {}
0016 
0017   LuminosityBlockForOutput::LuminosityBlockForOutput(LuminosityBlockPrincipal const& lbp,
0018                                                      ModuleDescription const& md,
0019                                                      ModuleCallingContext const* moduleCallingContext,
0020                                                      bool isAtEnd)
0021       : OccurrenceForOutput(lbp, md, moduleCallingContext, isAtEnd),
0022         aux_(lbp.aux()),
0023         run_(new RunForOutput(lbp.runPrincipal(), md, moduleCallingContext, false)) {}
0024 
0025   LuminosityBlockForOutput::~LuminosityBlockForOutput() {}
0026 
0027   LuminosityBlockPrincipal const& LuminosityBlockForOutput::luminosityBlockPrincipal() const {
0028     return dynamic_cast<LuminosityBlockPrincipal const&>(principal());
0029   }
0030 
0031   /**\return Reusable index which can be used to separate data for different simultaneous LuminosityBlocks.
0032    */
0033   LuminosityBlockIndex LuminosityBlockForOutput::index() const { return luminosityBlockPrincipal().index(); }
0034 
0035 }  // namespace edm