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 Member Functions | Private Attributes
edm::StreamerOutputModuleBase Class Referenceabstract

#include <StreamerOutputModuleBase.h>

Inheritance diagram for edm::StreamerOutputModuleBase:
edm::one::OutputModule< one::WatchRuns, one::WatchLuminosityBlocks > edm::one::OutputModuleBase edm::EDConsumerBase edm::StreamerOutputModule< Consumer > evf::RecoEventOutputModuleForFU< Consumer >

Public Member Functions

 StreamerOutputModuleBase (ParameterSet const &ps)
 
virtual ~StreamerOutputModuleBase ()
 
- Public Member Functions inherited from edm::one::OutputModule< one::WatchRuns, one::WatchLuminosityBlocks >
 OutputModule (edm::ParameterSet const &iPSet)
 
- Public Member Functions inherited from edm::one::OutputModuleBase
BranchIDLists const * branchIDLists ()
 
std::array< bool,
NumBranchTypes > const & 
hasNewlyDroppedBranch () const
 
SelectedProductsForBranchType
const & 
keptProducts () const
 
int maxEvents () const
 
const ModuleDescriptionmoduleDescription () const
 
OutputModuleBaseoperator= (OutputModuleBase const &)=delete
 
 OutputModuleBase (ParameterSet const &pset)
 
 OutputModuleBase (OutputModuleBase const &)=delete
 
std::string const & processName () const
 
int remainingEvents () const
 
bool selected (BranchDescription const &desc) const
 
void selectProducts (ProductRegistry const &preg, ThinnedAssociationsHelper const &)
 
ThinnedAssociationsHelper const * thinnedAssociationsHelper () const
 
bool wantAllEvents () const
 
virtual ~OutputModuleBase ()
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
 EDConsumerBase ()
 
ProductHolderIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
std::vector
< ProductHolderIndexAndSkipBit >
const & 
itemsToGetFromEvent () const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesDependentUpon (std::string const &iProcessName, std::string const &iModuleLabel, bool iPrint, std::vector< char const * > &oModuleLabels) const
 
void modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
bool registeredToConsume (ProductHolderIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &)
 
virtual ~EDConsumerBase ()
 

Static Public Member Functions

static void fillDescription (ParameterSetDescription &desc)
 
- Static Public Member Functions inherited from edm::one::OutputModuleBase
static const std::string & baseType ()
 
static void fillDescription (ParameterSetDescription &desc)
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &)
 

Private Member Functions

virtual void beginJob () override
 
virtual void beginRun (RunPrincipal const &, ModuleCallingContext const *) override
 
virtual void doOutputEvent (EventMsgBuilder const &msg)=0
 
virtual void doOutputHeader (InitMsgBuilder const &init_message)=0
 
virtual void endJob () override
 
virtual void endRun (RunPrincipal const &, ModuleCallingContext const *) override
 
Trig getTriggerResults (EDGetTokenT< TriggerResults > const &token, EventPrincipal const &ep, ModuleCallingContext const *) const
 
std::auto_ptr< EventMsgBuilderserializeEvent (EventPrincipal const &e, ModuleCallingContext const *mcc)
 
std::auto_ptr< InitMsgBuilderserializeRegistry ()
 
void setHltMask (EventPrincipal const &e, ModuleCallingContext const *)
 
void setLumiSection ()
 
virtual void start ()=0
 
virtual void stop ()=0
 
virtual void write (EventPrincipal const &e, ModuleCallingContext const *) override
 
virtual void writeLuminosityBlock (LuminosityBlockPrincipal const &, ModuleCallingContext const *) override
 
virtual void writeRun (RunPrincipal const &, ModuleCallingContext const *) override
 

Private Attributes

int compressionLevel_
 
std::vector< unsigned char > hltbits_
 
unsigned int hltsize_
 
Strings hltTriggerSelections_
 
char host_name_ [255]
 
std::vector< bool > l1bit_
 
uint32 lumi_
 
int lumiSectionInterval_
 
int maxEventSize_
 
uint32 origSize_
 
uint32 outputModuleId_
 
SelectedProducts const * selections_
 
SerializeDataBuffer serializeDataBuffer_
 
StreamSerializer serializer_
 
double timeInSecSinceUTC
 
edm::EDGetTokenT
< edm::TriggerResults
trToken_
 
bool useCompression_
 

Additional Inherited Members

- Public Types inherited from edm::one::OutputModuleBase
typedef OutputModuleBase ModuleType
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Protected Member Functions inherited from edm::one::OutputModuleBase
void configure (OutputModuleDescription const &desc)
 
ModuleDescription const & description () const
 
void doBeginJob ()
 
bool doBeginLuminosityBlock (LuminosityBlockPrincipal const &lbp, EventSetup const &c, ModuleCallingContext const *)
 
bool doBeginRun (RunPrincipal const &rp, EventSetup const &c, ModuleCallingContext const *)
 
void doEndJob ()
 
bool doEndLuminosityBlock (LuminosityBlockPrincipal const &lbp, EventSetup const &c, ModuleCallingContext const *)
 
bool doEndRun (RunPrincipal const &rp, EventSetup const &c, ModuleCallingContext const *)
 
bool doEvent (EventPrincipal const &ep, EventSetup const &c, ActivityRegistry *, ModuleCallingContext const *)
 
void doPreallocate (PreallocationConfiguration const &)
 
std::map< BranchID::value_type,
BranchID::value_type > const & 
droppedBranchIDToKeptBranchID ()
 
ParameterSetID selectorConfig () const
 
void setEventSelectionInfo (std::map< std::string, std::vector< std::pair< std::string, int > > > const &outputModulePathPositions, bool anyProductProduced)
 
- Protected Member Functions inherited from edm::EDConsumerBase
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken consumes (TypeToGet const &id, edm::InputTag const &tag)
 
ConsumesCollector consumesCollector ()
 Use a ConsumesCollector to gather consumes information from helper functions. More...
 
template<typename ProductType , BranchType B = InEvent>
void consumesMany ()
 
void consumesMany (const TypeToGet &id)
 
template<BranchType B>
void consumesMany (const TypeToGet &id)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 

Detailed Description

Definition at line 19 of file StreamerOutputModuleBase.h.

Constructor & Destructor Documentation

edm::StreamerOutputModuleBase::StreamerOutputModuleBase ( ParameterSet const &  ps)
explicit

Definition at line 58 of file StreamerOutputModuleBase.cc.

References SerializeDataBuffer::bufs_, compressionLevel_, FDEBUG, edm::EventSelector::getEventSelectionVString(), hltTriggerSelections_, host_name_, maxEventSize_, serializeDataBuffer_, timeInSecSinceUTC, and useCompression_.

58  :
60  one::OutputModule<one::WatchRuns, one::WatchLuminosityBlocks>(ps),
62  maxEventSize_(ps.getUntrackedParameter<int>("max_event_size")),
63  useCompression_(ps.getUntrackedParameter<bool>("use_compression")),
64  compressionLevel_(ps.getUntrackedParameter<int>("compression_level")),
65  lumiSectionInterval_(ps.getUntrackedParameter<int>("lumiSection_interval")),
68  hltsize_(0),
69  lumi_(0),
70  l1bit_(0),
71  hltbits_(0),
72  origSize_(0),
73  host_name_(),
74  trToken_(consumes<edm::TriggerResults>(edm::InputTag("TriggerResults"))),
76  outputModuleId_(0) {
77  // no compression as default value - we need this!
78 
79  // test luminosity sections
80  struct timeval now;
81  struct timezone dummyTZ;
82  gettimeofday(&now, &dummyTZ);
83  timeInSecSinceUTC = static_cast<double>(now.tv_sec) + (static_cast<double>(now.tv_usec)/1000000.0);
84 
85  if(useCompression_ == true) {
86  if(compressionLevel_ <= 0) {
87  FDEBUG(9) << "Compression Level = " << compressionLevel_
88  << " no compression" << std::endl;
90  useCompression_ = false;
91  } else if(compressionLevel_ > 9) {
92  FDEBUG(9) << "Compression Level = " << compressionLevel_
93  << " using max compression level 9" << std::endl;
95  }
96  }
98  int got_host = gethostname(host_name_, 255);
99  if(got_host != 0) strncpy(host_name_, "noHostNameFoundOrTooLong", sizeof(host_name_));
100  //loadExtraClasses();
101 
102  // 25-Jan-2008, KAB - pull out the trigger selection request
103  // which we need for the INIT message
105  }
#define FDEBUG(lev)
Definition: DebugMacros.h:18
static std::vector< std::string > getEventSelectionVString(edm::ParameterSet const &pset)
SelectedProductsForBranchType const & keptProducts() const
OutputModuleBase(ParameterSet const &pset)
SelectedProducts const * selections_
edm::EDGetTokenT< edm::TriggerResults > trToken_
std::vector< unsigned char > hltbits_
edm::StreamerOutputModuleBase::~StreamerOutputModuleBase ( )
virtual

Definition at line 107 of file StreamerOutputModuleBase.cc.

107 {}

Member Function Documentation

void edm::StreamerOutputModuleBase::beginJob ( void  )
overrideprivatevirtual

Reimplemented from edm::one::OutputModuleBase.

Reimplemented in evf::RecoEventOutputModuleForFU< Consumer >.

Definition at line 124 of file StreamerOutputModuleBase.cc.

124 {}
void edm::StreamerOutputModuleBase::beginRun ( RunPrincipal const &  ,
ModuleCallingContext const *   
)
overrideprivatevirtual

Definition at line 110 of file StreamerOutputModuleBase.cc.

References doOutputHeader(), SerializeDataBuffer::header_buf_, serializeDataBuffer_, serializeRegistry(), and start().

110  {
111  start();
112  std::auto_ptr<InitMsgBuilder> init_message = serializeRegistry();
113  doOutputHeader(*init_message);
115  serializeDataBuffer_.header_buf_.shrink_to_fit();
116  }
virtual void doOutputHeader(InitMsgBuilder const &init_message)=0
std::auto_ptr< InitMsgBuilder > serializeRegistry()
virtual void edm::StreamerOutputModuleBase::doOutputEvent ( EventMsgBuilder const &  msg)
privatepure virtual
virtual void edm::StreamerOutputModuleBase::doOutputHeader ( InitMsgBuilder const &  init_message)
privatepure virtual
void edm::StreamerOutputModuleBase::endJob ( void  )
overrideprivatevirtual

Reimplemented from edm::one::OutputModuleBase.

Definition at line 127 of file StreamerOutputModuleBase.cc.

References stop().

127  {
128  stop(); // for closing of files, notify storage manager, etc.
129  }
void edm::StreamerOutputModuleBase::endRun ( RunPrincipal const &  ,
ModuleCallingContext const *   
)
overrideprivatevirtual

Definition at line 119 of file StreamerOutputModuleBase.cc.

References stop().

119  {
120  stop();
121  }
void edm::StreamerOutputModuleBase::fillDescription ( ParameterSetDescription desc)
static

Definition at line 306 of file StreamerOutputModuleBase.cc.

References edm::ParameterSetDescription::addUntracked(), and edm::OutputModule::fillDescription().

Referenced by edm::StreamerOutputModule< Consumer >::fillDescriptions(), and evf::RecoEventOutputModuleForFU< Consumer >::fillDescriptions().

306  {
307  desc.addUntracked<int>("max_event_size", 7000000)
308  ->setComment("Starting size in bytes of the serialized event buffer.");
309  desc.addUntracked<bool>("use_compression", true)
310  ->setComment("If True, compression will be used to write streamer file.");
311  desc.addUntracked<int>("compression_level", 1)
312  ->setComment("ROOT compression level to use.");
313  desc.addUntracked<int>("lumiSection_interval", 0)
314  ->setComment("If 0, use lumi section number from event.\n"
315  "If not 0, the interval in seconds between fake lumi sections.");
317  }
static void fillDescription(ParameterSetDescription &desc)
Trig edm::StreamerOutputModuleBase::getTriggerResults ( EDGetTokenT< TriggerResults > const &  token,
EventPrincipal const &  ep,
ModuleCallingContext const *  mcc 
) const
private

Definition at line 202 of file StreamerOutputModuleBase.cc.

References edm::convert_handle(), edm::PrincipalGetAdapter::getByToken_(), edm::one::OutputModuleBase::moduleDescription(), eostools::move(), edm::PRODUCT_TYPE, query::result, and edm::PrincipalGetAdapter::setConsumer().

Referenced by setHltMask().

202  {
203  //This cast is safe since we only call const functions of the EventPrincipal after this point
204  PrincipalGetAdapter adapter(const_cast<EventPrincipal&>(ep), moduleDescription());
205  adapter.setConsumer(this);
206  Trig result;
207  auto bh = adapter.getByToken_(TypeID(typeid(TriggerResults)),PRODUCT_TYPE, token, mcc);
208  convert_handle(std::move(bh), result);
209  return result;
210  }
detail::TriggerResultsBasedEventSelector::handle_t Trig
Definition: OutputModule.h:49
tuple result
Definition: query.py:137
def move
Definition: eostools.py:510
void convert_handle(BasicHandle &&bh, Handle< T > &result)
Definition: ConvertHandle.h:19
const ModuleDescription & moduleDescription() const
std::auto_ptr< EventMsgBuilder > edm::StreamerOutputModuleBase::serializeEvent ( EventPrincipal const &  e,
ModuleCallingContext const *  mcc 
)
private

Definition at line 254 of file StreamerOutputModuleBase.cc.

References SerializeDataBuffer::adler32_chksum(), SerializeDataBuffer::bufferPointer(), SerializeDataBuffer::bufs_, compressionLevel_, filterCSVwithJSON::copy, SerializeDataBuffer::currentEventSize(), SerializeDataBuffer::currentSpaceUsed(), edm::EventID::event(), hltbits_, hltsize_, host_name_, edm::EventPrincipal::id(), l1bit_, lumi_, edm::EventPrincipal::luminosityBlock(), lumiSectionInterval_, visualization-live-secondInstance_cfg::msg, origSize_, outputModuleId_, edm::EventID::run(), edm::one::OutputModuleBase::selectorConfig(), serializeDataBuffer_, edm::StreamSerializer::serializeEvent(), serializer_, setHltMask(), setLumiSection(), alcazmumu_cfi::src, and useCompression_.

Referenced by write().

254  {
255  //Lets Build the Event Message first
256 
257  //Following is strictly DUMMY Data for L! Trig and will be replaced with actual
258  // once figured out, there is no logic involved here.
259  l1bit_.push_back(true);
260  l1bit_.push_back(true);
261  l1bit_.push_back(false);
262  //End of dummy data
263 
264  setHltMask(e, mcc);
265 
266  if (lumiSectionInterval_ == 0) {
267  lumi_ = e.luminosityBlock();
268  } else {
269  setLumiSection();
270  }
271 
273 
274  // resize bufs_ to reflect space used in serializer_ + header
275  // I just added an overhead for header of 50000 for now
276  unsigned int src_size = serializeDataBuffer_.currentSpaceUsed();
277  unsigned int new_size = src_size + 50000;
278  if(serializeDataBuffer_.bufs_.size() < new_size) serializeDataBuffer_.bufs_.resize(new_size);
279 
280  std::auto_ptr<EventMsgBuilder>
282  e.id().event(), lumi_, outputModuleId_, 0,
283  l1bit_, (uint8*)&hltbits_[0], hltsize_,
285  msg->setOrigDataSize(origSize_); // we need this set to zero
286 
287  // copy data into the destination message
288  // an alternative is to have serializer only to the serialization
289  // in serializeEvent, and then call a new member "getEventData" that
290  // takes the compression arguments and a place to put the data.
291  // This will require one less copy. The only catch is that the
292  // space provided in bufs_ should be at least the uncompressed
293  // size + overhead for header because we will not know the actual
294  // compressed size.
295 
296  unsigned char* src = serializeDataBuffer_.bufferPointer();
297  std::copy(src,src + src_size, msg->eventAddr());
298  msg->setEventLength(src_size);
300 
301  l1bit_.clear(); //Clear up for the next event to come.
302  return msg;
303  }
int serializeEvent(EventPrincipal const &eventPrincipal, ParameterSetID const &selectorConfig, bool use_compression, int compression_level, SerializeDataBuffer &data_buffer, ModuleCallingContext const *mcc)
ParameterSetID selectorConfig() const
unsigned int currentSpaceUsed() const
unsigned char const * bufferPointer() const
unsigned int uint32
Definition: MsgTools.h:13
void setHltMask(EventPrincipal const &e, ModuleCallingContext const *)
uint32_t adler32_chksum() const
unsigned char uint8
Definition: MsgTools.h:11
unsigned int currentEventSize() const
std::vector< unsigned char > hltbits_
std::auto_ptr< InitMsgBuilder > edm::StreamerOutputModuleBase::serializeRegistry ( )
private

Definition at line 144 of file StreamerOutputModuleBase.cc.

References SerializeDataBuffer::adler32_chksum(), edm::one::OutputModuleBase::branchIDLists(), SerializeDataBuffer::bufferPointer(), edm::Hash< I >::compactForm(), filterCSVwithJSON::copy, SerializeDataBuffer::currentSpaceUsed(), edm::one::OutputModuleBase::description(), edm::getAllTriggerNames(), edm::getReleaseVersion(), SerializeDataBuffer::header_buf_, hltsize_, hltTriggerSelections_, dttmaxenums::L, edm::ModuleDescription::mainParameterSetID(), edm::one::OutputModuleBase::moduleDescription(), edm::ModuleDescription::moduleLabel(), outputModuleId_, edm::OutputModule::processName(), edm::one::OutputModuleBase::processName(), DTTTrigCorrFirst::run, serializeDataBuffer_, serializer_, edm::StreamSerializer::serializeRegistry(), alcazmumu_cfi::src, AlCaHLTBitMon_QueryRunRegistry::string, and edm::one::OutputModuleBase::thinnedAssociationsHelper().

Referenced by beginRun().

144  {
145 
147 
148  // resize bufs_ to reflect space used in serializer_ + header
149  // I just added an overhead for header of 50000 for now
150  unsigned int src_size = serializeDataBuffer_.currentSpaceUsed();
151  unsigned int new_size = src_size + 50000;
152  if(serializeDataBuffer_.header_buf_.size() < new_size) serializeDataBuffer_.header_buf_.resize(new_size);
153 
154  //Build the INIT Message
155  //Following values are strictly DUMMY and will be replaced
156  // once available with Utility function etc.
157  uint32 run = 1;
158 
159  //Get the Process PSet ID
161 
162  //In case we need to print it
163  // cms::Digest dig(toplevel.compactForm());
164  // cms::MD5Result r1 = dig.digest();
165  // std::string hexy = r1.toString();
166  // std::cout << "HEX Representation of Process PSetID: " << hexy << std::endl;
167 
168  Strings hltTriggerNames = getAllTriggerNames();
169  hltsize_ = hltTriggerNames.size();
170 
171  //L1 stays dummy as of today
172  Strings l1_names; //3
173  l1_names.push_back("t1");
174  l1_names.push_back("t10");
175  l1_names.push_back("t2");
176 
177  //Setting the process name to HLT
179 
180  std::string moduleLabel = description().moduleLabel();
181  uLong crc = crc32(0L, Z_NULL, 0);
182  Bytef const* buf = (Bytef const*)(moduleLabel.data());
183  crc = crc32(crc, buf, moduleLabel.length());
184  outputModuleId_ = static_cast<uint32>(crc);
185 
186  std::auto_ptr<InitMsgBuilder> init_message(
188  run, Version((uint8 const*)toplevel.compactForm().c_str()),
189  getReleaseVersion().c_str() , processName.c_str(),
190  moduleLabel.c_str(), outputModuleId_,
191  hltTriggerNames, hltTriggerSelections_, l1_names,
193 
194  // copy data into the destination message
195  unsigned char* src = serializeDataBuffer_.bufferPointer();
196  std::copy(src, src + src_size, init_message->dataAddress());
197  init_message->setDataLength(src_size);
198  return init_message;
199  }
ParameterSetID const & mainParameterSetID() const
ModuleDescription const & description() const
ThinnedAssociationsHelper const * thinnedAssociationsHelper() const
std::vector< std::string > Strings
Definition: MsgTools.h:18
std::string const & processName() const
Definition: OutputModule.h:75
std::string const & moduleLabel() const
unsigned int currentSpaceUsed() const
unsigned char const * bufferPointer() const
int serializeRegistry(SerializeDataBuffer &data_buffer, const BranchIDLists &branchIDLists, ThinnedAssociationsHelper const &thinnedAssociationsHelper)
Hash< ParameterSetType > ParameterSetID
unsigned int uint32
Definition: MsgTools.h:13
std::string getReleaseVersion()
const ModuleDescription & moduleDescription() const
uint32_t adler32_chksum() const
std::string const & processName() const
unsigned char uint8
Definition: MsgTools.h:11
std::vector< std::string > const & getAllTriggerNames()
BranchIDLists const * branchIDLists()
void edm::StreamerOutputModuleBase::setHltMask ( EventPrincipal const &  e,
ModuleCallingContext const *  mcc 
)
private

Definition at line 213 of file StreamerOutputModuleBase.cc.

References getTriggerResults(), hltbits_, hltsize_, i, edm::HandleBase::isValid(), edm::hlt::Pass, parseEventContent::prod, and trToken_.

Referenced by serializeEvent().

213  {
214 
215  hltbits_.clear(); // If there was something left over from last event
216 
218  //Trig const& prod = getTrigMask(e);
219  std::vector<unsigned char> vHltState;
220 
221  if (prod.isValid()) {
223  vHltState.push_back(((prod->at(i)).state()));
224  }
225  } else {
226  // We fill all Trigger bits to valid state.
228  vHltState.push_back(hlt::Pass);
229  }
230  }
231  //Pack into member hltbits_
232  packIntoString(vHltState, hltbits_);
233 
234  //This is Just a printing code.
235  //std::cout << "Size of hltbits:" << hltbits_.size() << std::endl;
236  //for(unsigned int i=0; i != hltbits_.size() ; ++i) {
237  // printBits(hltbits_[i]);
238  //}
239  //std::cout << "\n";
240  }
Trig getTriggerResults(EDGetTokenT< TriggerResults > const &token, EventPrincipal const &ep, ModuleCallingContext const *) const
int i
Definition: DBlmapReader.cc:9
uint16_t size_type
accept
Definition: HLTenums.h:19
edm::EDGetTokenT< edm::TriggerResults > trToken_
std::vector< unsigned char > hltbits_
void edm::StreamerOutputModuleBase::setLumiSection ( )
private

Definition at line 244 of file StreamerOutputModuleBase.cc.

References lumi_, lumiSectionInterval_, and timeInSecSinceUTC.

Referenced by serializeEvent().

244  {
245  struct timeval now;
246  struct timezone dummyTZ;
247  gettimeofday(&now, &dummyTZ);
248  double timeInSec = static_cast<double>(now.tv_sec) + (static_cast<double>(now.tv_usec)/1000000.0) - timeInSecSinceUTC;
249  // what about overflows?
250  if(lumiSectionInterval_ > 0) lumi_ = static_cast<uint32>(timeInSec/lumiSectionInterval_) + 1;
251  }
unsigned int uint32
Definition: MsgTools.h:13
virtual void edm::StreamerOutputModuleBase::start ( )
privatepure virtual
virtual void edm::StreamerOutputModuleBase::stop ( )
privatepure virtual
void edm::StreamerOutputModuleBase::write ( EventPrincipal const &  e,
ModuleCallingContext const *  mcc 
)
overrideprivatevirtual

Implements edm::one::OutputModuleBase.

Definition at line 138 of file StreamerOutputModuleBase.cc.

References doOutputEvent(), visualization-live-secondInstance_cfg::msg, and serializeEvent().

138  {
139  std::auto_ptr<EventMsgBuilder> msg = serializeEvent(e, mcc);
140  doOutputEvent(*msg); // You can't use msg in StreamerOutputModuleBase after this point
141  }
virtual void doOutputEvent(EventMsgBuilder const &msg)=0
std::auto_ptr< EventMsgBuilder > serializeEvent(EventPrincipal const &e, ModuleCallingContext const *mcc)
void edm::StreamerOutputModuleBase::writeLuminosityBlock ( LuminosityBlockPrincipal const &  ,
ModuleCallingContext const *   
)
overrideprivatevirtual

Implements edm::one::OutputModuleBase.

Definition at line 135 of file StreamerOutputModuleBase.cc.

135 {}
void edm::StreamerOutputModuleBase::writeRun ( RunPrincipal const &  ,
ModuleCallingContext const *   
)
overrideprivatevirtual

Implements edm::one::OutputModuleBase.

Definition at line 132 of file StreamerOutputModuleBase.cc.

132 {}

Member Data Documentation

int edm::StreamerOutputModuleBase::compressionLevel_
private

Definition at line 50 of file StreamerOutputModuleBase.h.

Referenced by serializeEvent(), and StreamerOutputModuleBase().

std::vector<unsigned char> edm::StreamerOutputModuleBase::hltbits_
private

Definition at line 64 of file StreamerOutputModuleBase.h.

Referenced by serializeEvent(), and setHltMask().

unsigned int edm::StreamerOutputModuleBase::hltsize_
private

Definition at line 61 of file StreamerOutputModuleBase.h.

Referenced by serializeEvent(), serializeRegistry(), and setHltMask().

Strings edm::StreamerOutputModuleBase::hltTriggerSelections_
private

Definition at line 69 of file StreamerOutputModuleBase.h.

Referenced by serializeRegistry(), and StreamerOutputModuleBase().

char edm::StreamerOutputModuleBase::host_name_[255]
private

Definition at line 66 of file StreamerOutputModuleBase.h.

Referenced by serializeEvent(), and StreamerOutputModuleBase().

std::vector<bool> edm::StreamerOutputModuleBase::l1bit_
private

Definition at line 63 of file StreamerOutputModuleBase.h.

Referenced by serializeEvent().

uint32 edm::StreamerOutputModuleBase::lumi_
private

Definition at line 62 of file StreamerOutputModuleBase.h.

Referenced by serializeEvent(), and setLumiSection().

int edm::StreamerOutputModuleBase::lumiSectionInterval_
private

Definition at line 53 of file StreamerOutputModuleBase.h.

Referenced by serializeEvent(), and setLumiSection().

int edm::StreamerOutputModuleBase::maxEventSize_
private

Definition at line 48 of file StreamerOutputModuleBase.h.

Referenced by StreamerOutputModuleBase().

uint32 edm::StreamerOutputModuleBase::origSize_
private

Definition at line 65 of file StreamerOutputModuleBase.h.

Referenced by serializeEvent().

uint32 edm::StreamerOutputModuleBase::outputModuleId_
private

Definition at line 70 of file StreamerOutputModuleBase.h.

Referenced by serializeEvent(), and serializeRegistry().

SelectedProducts const* edm::StreamerOutputModuleBase::selections_
private

Definition at line 46 of file StreamerOutputModuleBase.h.

SerializeDataBuffer edm::StreamerOutputModuleBase::serializeDataBuffer_
private
StreamSerializer edm::StreamerOutputModuleBase::serializer_
private

Definition at line 56 of file StreamerOutputModuleBase.h.

Referenced by serializeEvent(), and serializeRegistry().

double edm::StreamerOutputModuleBase::timeInSecSinceUTC
private

Definition at line 54 of file StreamerOutputModuleBase.h.

Referenced by setLumiSection(), and StreamerOutputModuleBase().

edm::EDGetTokenT<edm::TriggerResults> edm::StreamerOutputModuleBase::trToken_
private

Definition at line 68 of file StreamerOutputModuleBase.h.

Referenced by setHltMask().

bool edm::StreamerOutputModuleBase::useCompression_
private

Definition at line 49 of file StreamerOutputModuleBase.h.

Referenced by serializeEvent(), and StreamerOutputModuleBase().