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
BranchChildren const & branchChildren () const
 
BranchIDLists const * branchIDLists () const
 
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 (const std::string &iProcessName, std::vector< const char * > &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) const =0
 
virtual void doOutputHeader (InitMsgBuilder const &init_message) const =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 () const =0
 
virtual void stop () const =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 122 of file StreamerOutputModuleBase.cc.

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

Definition at line 110 of file StreamerOutputModuleBase.cc.

References doOutputHeader(), serializeRegistry(), and start().

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

Reimplemented from edm::one::OutputModuleBase.

Definition at line 125 of file StreamerOutputModuleBase.cc.

References stop().

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

Definition at line 117 of file StreamerOutputModuleBase.cc.

References stop().

117  {
118  stop();
119  }
virtual void stop() const =0
void edm::StreamerOutputModuleBase::fillDescription ( ParameterSetDescription desc)
static

Definition at line 304 of file StreamerOutputModuleBase.cc.

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

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

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

Definition at line 200 of file StreamerOutputModuleBase.cc.

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

Referenced by setHltMask().

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

Definition at line 252 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().

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

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

Definition at line 211 of file StreamerOutputModuleBase.cc.

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

Referenced by serializeEvent().

211  {
212 
213  hltbits_.clear(); // If there was something left over from last event
214 
216  //Trig const& prod = getTrigMask(e);
217  std::vector<unsigned char> vHltState;
218 
219  if (prod.isValid()) {
221  vHltState.push_back(((prod->at(i)).state()));
222  }
223  } else {
224  // We fill all Trigger bits to valid state.
226  vHltState.push_back(hlt::Pass);
227  }
228  }
229  //Pack into member hltbits_
230  packIntoString(vHltState, hltbits_);
231 
232  //This is Just a printing code.
233  //std::cout << "Size of hltbits:" << hltbits_.size() << std::endl;
234  //for(unsigned int i=0; i != hltbits_.size() ; ++i) {
235  // printBits(hltbits_[i]);
236  //}
237  //std::cout << "\n";
238  }
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 242 of file StreamerOutputModuleBase.cc.

References lumi_, lumiSectionInterval_, and timeInSecSinceUTC.

Referenced by serializeEvent().

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

Implements edm::one::OutputModuleBase.

Definition at line 136 of file StreamerOutputModuleBase.cc.

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

136  {
137  std::auto_ptr<EventMsgBuilder> msg = serializeEvent(e, mcc);
138  doOutputEvent(*msg); // You can't use msg in StreamerOutputModuleBase after this point
139  }
virtual void doOutputEvent(EventMsgBuilder const &msg) const =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 133 of file StreamerOutputModuleBase.cc.

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

Implements edm::one::OutputModuleBase.

Definition at line 130 of file StreamerOutputModuleBase.cc.

130 {}

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().