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 Member Functions | Private Attributes
evf::RecoEventOutputModuleForFU< Consumer > Class Template Reference

#include <RecoEventOutputModuleForFU.h>

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

Public Member Functions

 RecoEventOutputModuleForFU (edm::ParameterSet const &ps)
 
virtual ~RecoEventOutputModuleForFU ()
 
- Public Member Functions inherited from edm::StreamerOutputModuleBase
 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 fillDescriptions (edm::ConfigurationDescriptions &descriptions)
 
- Static Public Member Functions inherited from edm::StreamerOutputModuleBase
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 beginLuminosityBlock (edm::LuminosityBlockPrincipal const &, edm::ModuleCallingContext const *) override
 
virtual void doOutputEvent (EventMsgBuilder const &msg) override
 
virtual void doOutputHeader (InitMsgBuilder const &init_message) override
 
virtual void endLuminosityBlock (edm::LuminosityBlockPrincipal const &, edm::ModuleCallingContext const *) override
 
void initRun ()
 
virtual void start () override
 
virtual void stop () override
 

Private Attributes

jsoncollector::IntJ accepted_
 
std::auto_ptr< Consumer > c_
 
jsoncollector::IntJ errorEvents_
 
jsoncollector::IntJ fileAdler32_
 
jsoncollector::StringJ filelist_
 
jsoncollector::IntJ filesize_
 
evf::FastMonitoringServicefms_
 
jsoncollector::IntJ hltErrorEvents_
 
jsoncollector::StringJ inputFiles_
 
boost::shared_ptr
< jsoncollector::FastMonitor
jsonMonitor_
 
jsoncollector::StringJ mergeType_
 
boost::filesystem::path openDatChecksumFilePath_
 
boost::filesystem::path openDatFilePath_
 
unsigned char * outBuf_ = 0
 
jsoncollector::DataPointDefinition outJsonDef_
 
jsoncollector::IntJ processed_
 
bool readAdler32Check_ =false
 
jsoncollector::IntJ retCodeMask_
 
std::string stream_label_
 
jsoncollector::StringJ transferDestination_
 

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

template<typename Consumer>
class evf::RecoEventOutputModuleForFU< Consumer >

Definition at line 25 of file RecoEventOutputModuleForFU.h.

Constructor & Destructor Documentation

template<typename Consumer >
evf::RecoEventOutputModuleForFU< Consumer >::RecoEventOutputModuleForFU ( edm::ParameterSet const &  ps)
explicit
Consumers are supposed to provide

void doOutputHeader(InitMsgBuilder const& init_message) void doOutputEvent(EventMsgBuilder const& msg) void start() void stop() static void fillDescription(ParameterSetDescription&)

Definition at line 77 of file RecoEventOutputModuleForFU.h.

References Exception, evf::RecoEventOutputModuleForFU< Consumer >::fms_, evf::RecoEventOutputModuleForFU< Consumer >::stream_label_, and AlCaHLTBitMon_QueryRunRegistry::string.

77  :
80  c_(new Consumer(ps)),
81  stream_label_(ps.getParameter<std::string>("@module_label")),
82  processed_(0),
83  accepted_(0),
84  errorEvents_(0),
85  retCodeMask_(0),
86  filelist_(),
87  filesize_(0),
88  inputFiles_(),
89  fileAdler32_(1),
91  mergeType_(),
92  hltErrorEvents_(0),
93  outBuf_(new unsigned char[1024*1024])
94  {
95  //replace hltOutoputA with stream if the HLT menu uses this convention
96  std::string testPrefix="hltOutput";
97  if (stream_label_.find(testPrefix)==0)
98  stream_label_=std::string("stream")+stream_label_.substr(testPrefix.size());
99 
100  if (stream_label_.find("_")!=std::string::npos) {
101  throw cms::Exception("RecoEventOutputModuleForFU")
102  << "Underscore character is reserved can not be used for stream names in FFF, but was detected in stream name -: " << stream_label_;
103  }
104 
105  std::string stream_label_lo = stream_label_;
106  boost::algorithm::to_lower(stream_label_lo);
107  auto streampos = stream_label_lo.rfind("stream");
108  if (streampos !=0 && streampos!=std::string::npos)
109  throw cms::Exception("RecoEventOutputModuleForFU")
110  << "stream (case-insensitive) sequence was found in stream suffix. This is reserved and can not be used for names in FFF based HLT, but was detected in stream name";
111 
113  }
OutputModuleBase(ParameterSet const &pset)
template<typename Consumer >
evf::RecoEventOutputModuleForFU< Consumer >::~RecoEventOutputModuleForFU ( )
virtual

Definition at line 183 of file RecoEventOutputModuleForFU.h.

183 {}

Member Function Documentation

template<typename Consumer >
void evf::RecoEventOutputModuleForFU< Consumer >::beginJob ( void  )
overrideprivatevirtual

Reimplemented from edm::StreamerOutputModuleBase.

Definition at line 259 of file RecoEventOutputModuleForFU.h.

References evf::MergeTypeDAT.

260  {
261  //get stream transfer destination
264  }
template<typename Consumer >
void evf::RecoEventOutputModuleForFU< Consumer >::beginLuminosityBlock ( edm::LuminosityBlockPrincipal const &  ls,
edm::ModuleCallingContext const *   
)
overrideprivatevirtual

Definition at line 268 of file RecoEventOutputModuleForFU.h.

References edm::LuminosityBlockPrincipal::luminosityBlock().

269  {
270  //edm::LogInfo("RecoEventOutputModuleForFU") << "begin lumi";
271  openDatFilePath_ = edm::Service<evf::EvFDaqDirector>()->getOpenDatFilePath(ls.luminosityBlock(),stream_label_);
272  openDatChecksumFilePath_ = edm::Service<evf::EvFDaqDirector>()->getOpenDatFilePath(ls.luminosityBlock(),stream_label_);
273  c_->setOutputFile(openDatFilePath_.string());
274  filelist_ = openDatFilePath_.filename().string();
275  }
def ls
Definition: eostools.py:348
boost::filesystem::path openDatChecksumFilePath_
template<typename Consumer >
void evf::RecoEventOutputModuleForFU< Consumer >::doOutputEvent ( EventMsgBuilder const &  msg)
overrideprivatevirtual

Implements edm::StreamerOutputModuleBase.

Definition at line 244 of file RecoEventOutputModuleForFU.h.

244  {
245  accepted_.value()++;
246  c_->doOutputEvent(msg); // You can't use msg in RecoEventOutputModuleForFU after this point
247  }
template<typename Consumer >
void evf::RecoEventOutputModuleForFU< Consumer >::doOutputHeader ( InitMsgBuilder const &  init_message)
overrideprivatevirtual

Implements edm::StreamerOutputModuleBase.

Definition at line 207 of file RecoEventOutputModuleForFU.h.

References cms::Adler32(), Exception, alcazmumu_cfi::src, and AlCaHLTBitMon_QueryRunRegistry::string.

208  {
209  c_->doOutputHeader(init_message);
210 
211  const std::string openIniFileName = edm::Service<evf::EvFDaqDirector>()->getOpenInitFilePath(stream_label_);
212  struct stat istat;
213  stat(openIniFileName.c_str(), &istat);
214  //read back file to check integrity of what was written
215  off_t readInput=0;
216  uint32_t adlera=1,adlerb=0;
217  FILE *src = fopen(openIniFileName.c_str(),"r");
218  while (readInput<istat.st_size)
219  {
220  size_t toRead= readInput+1024*1024 < istat.st_size ? 1024*1024 : istat.st_size-readInput;
221  fread(outBuf_,toRead,1,src);
222  cms::Adler32((const char*)outBuf_,toRead,adlera,adlerb);
223  readInput+=toRead;
224  }
225  fclose(src);
226  //free output buffer if micromerge is not done by the module
227  if (edm::Service<evf::EvFDaqDirector>()->microMergeDisabled()) {
228  delete [] outBuf_;
229  outBuf_=nullptr;
230  }
231  uint32_t adler32c = (adlerb << 16) | adlera;
232  if (adler32c != c_->get_adler32_ini()) {
233  throw cms::Exception("RecoEventOutputModuleForFU") << "Checksum mismatch of ini file -: " << openIniFileName
234  << " expected:" << c_->get_adler32_ini() << " obtained:" << adler32c;
235  }
236  else {
237  edm::LogWarning("RecoEventOutputModuleForFU") << "Ini file checksum -: "<< stream_label_ << " " << adler32c;
238  boost::filesystem::rename(openIniFileName,edm::Service<evf::EvFDaqDirector>()->getInitFilePath(stream_label_));
239  }
240  }
void Adler32(char const *data, size_t len, uint32_t &a, uint32_t &b)
template<typename Consumer >
void evf::RecoEventOutputModuleForFU< Consumer >::endLuminosityBlock ( edm::LuminosityBlockPrincipal const &  ls,
edm::ModuleCallingContext const *   
)
overrideprivatevirtual

Definition at line 278 of file RecoEventOutputModuleForFU.h.

References cms::Adler32(), Exception, edm::LuminosityBlockPrincipal::luminosityBlock(), NULL, alcazmumu_cfi::src, and AlCaHLTBitMon_QueryRunRegistry::string.

279  {
280  //edm::LogInfo("RecoEventOutputModuleForFU") << "end lumi";
281  long filesize=0;
282  fileAdler32_.value() = c_->get_adler32();
283  c_->closeOutputFile();
284  bool abortFlag = false;
285  processed_.value() = fms_->getEventsProcessedForLumi(ls.luminosityBlock(),&abortFlag);
286 
287  if (abortFlag) {
288  edm::LogInfo("RecoEventOutputModuleForFU") << "output suppressed";
289  return;
290  }
291 
292  if(processed_.value()!=0) {
293 
294  //lock
295  struct stat istat;
296  if (!edm::Service<evf::EvFDaqDirector>()->microMergeDisabled()) {
297  FILE *des = edm::Service<evf::EvFDaqDirector>()->maybeCreateAndLockFileHeadForStream(ls.luminosityBlock(),stream_label_);
298 
299  std::string deschecksum = edm::Service<evf::EvFDaqDirector>()->getMergedDatChecksumFilePath(ls.luminosityBlock(), stream_label_);
300 
301  struct stat istat;
302  FILE * cf = NULL;
303  uint32_t mergedAdler32=1;
304  //get adler32 accumulated checksum for the merged file
305  if (!stat(deschecksum.c_str(), &istat)) {
306  if (istat.st_size) {
307  cf = fopen(deschecksum.c_str(),"r");
308  if (!cf) throw cms::Exception("RecoEventOutputModuleForFU") << "Unable to open checksum file -: " << deschecksum.c_str();
309  fscanf(cf,"%u",&mergedAdler32);
310  fclose(cf);
311  }
312  else edm::LogWarning("RecoEventOutputModuleForFU") << "Checksum file size is empty -: "<< deschecksum.c_str();
313  }
314 
315  FILE *src = fopen(openDatFilePath_.string().c_str(),"r");
316 
317  stat(openDatFilePath_.string().c_str(), &istat);
318  off_t readInput=0;
319  uint32_t adlera=1;
320  uint32_t adlerb=0;
321  while (readInput<istat.st_size) {
322  size_t toRead= readInput+1024*1024 < istat.st_size ? 1024*1024 : istat.st_size-readInput;
323  fread(outBuf_,toRead,1,src);
324  fwrite(outBuf_,toRead,1,des);
325  if (readAdler32Check_)
326  cms::Adler32((const char*)outBuf_,toRead,adlera,adlerb);
327  readInput+=toRead;
328  filesize+=toRead;
329  }
330 
331  //write new string representation of the checksum value
332  cf = fopen(deschecksum.c_str(),"w");
333  if (!cf) throw cms::Exception("RecoEventOutputModuleForFU") << "Unable to open or rewind checksum file for writing -:" << deschecksum.c_str();
334 
335  //write adler32 combine to checksum file
336  mergedAdler32 = adler32_combine(mergedAdler32,fileAdler32_.value(),filesize);
337 
338  fprintf(cf,"%u",mergedAdler32);
339  fclose(cf);
340 
341  edm::Service<evf::EvFDaqDirector>()->unlockAndCloseMergeStream();
342  fclose(src);
343 
344  if (readAdler32Check_ && ((adlerb << 16) | adlera) != fileAdler32_.value()) {
345 
346  throw cms::Exception("RecoEventOutputModuleForFU") << "Adler32 checksum mismatch after reading file -: "
347  << openDatFilePath_.string() <<" in LS " << ls.luminosityBlock() << std::endl;
348  }
349  }
350  else { //no micromerge by HLT
351  stat(openDatFilePath_.string().c_str(), &istat);
352  filesize = istat.st_size;
353  boost::filesystem::rename(openDatFilePath_.string().c_str(), edm::Service<evf::EvFDaqDirector>()->getDatFilePath(ls.luminosityBlock(),stream_label_));
354  }
355  } else {
356  //return if not in empty lumisection mode
357  if (!edm::Service<evf::EvFDaqDirector>()->emptyLumisectionMode()) {
358  remove(openDatFilePath_.string().c_str());
359  return;
360  }
361  filelist_ = "";
362  fileAdler32_.value()=-1;
363  }
364 
365  //remove file
366  remove(openDatFilePath_.string().c_str());
367  filesize_=filesize;
368 
369  jsonMonitor_->snap(ls.luminosityBlock());
370  const std::string outputJsonNameStream =
371  edm::Service<evf::EvFDaqDirector>()->getOutputJsonFilePath(ls.luminosityBlock(),stream_label_);
372  jsonMonitor_->outputFullJSON(outputJsonNameStream,ls.luminosityBlock());
373 
374  // reset monitoring params
375  accepted_.value() = 0;
376  filelist_ = "";
377  }
unsigned int getEventsProcessedForLumi(unsigned int lumi, bool *abortFlag=0)
boost::shared_ptr< jsoncollector::FastMonitor > jsonMonitor_
def ls
Definition: eostools.py:348
#define NULL
Definition: scimark2.h:8
void Adler32(char const *data, size_t len, uint32_t &a, uint32_t &b)
template<typename Consumer >
void evf::RecoEventOutputModuleForFU< Consumer >::fillDescriptions ( edm::ConfigurationDescriptions descriptions)
static

Definition at line 251 of file RecoEventOutputModuleForFU.h.

References edm::ConfigurationDescriptions::add(), and edm::StreamerOutputModuleBase::fillDescription().

251  {
254  Consumer::fillDescription(desc);
255  descriptions.add("EvFOutputModule", desc);
256  }
static void fillDescription(ParameterSetDescription &desc)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
template<typename Consumer >
void evf::RecoEventOutputModuleForFU< Consumer >::initRun ( void  )
private

Definition at line 116 of file RecoEventOutputModuleForFU.h.

References jsoncollector::DataPointDefinition::ADLER32, jsoncollector::DataPointDefinition::BINARYOR, jsoncollector::DataPointDefinition::CAT, ws_sso_content_reader::content, LogDebug, jsoncollector::DataPointDefinition::MERGE, jsoncollector::DataPointDefinition::SAME, jsoncollector::JSONSerializer::serialize(), contentValuesCheck::ss, AlCaHLTBitMon_QueryRunRegistry::string, jsoncollector::DataPointDefinition::SUM, and jsoncollector::FileIO::writeStringToFile().

117  {
118  std::string baseRunDir = edm::Service<evf::EvFDaqDirector>()->baseRunDir();
119  readAdler32Check_ = edm::Service<evf::EvFDaqDirector>()->outputAdler32Recheck();
120  LogDebug("RecoEventOutputModuleForFU") << "writing .dat files to -: " << baseRunDir;
121  // create open dir if not already there
122  edm::Service<evf::EvFDaqDirector>()->createRunOpendirMaybe();
123 
124  processed_.setName("Processed");
125  accepted_.setName("Accepted");
126  errorEvents_.setName("ErrorEvents");
127  retCodeMask_.setName("ReturnCodeMask");
128  filelist_.setName("Filelist");
129  filesize_.setName("Filesize");
130  inputFiles_.setName("InputFiles");
131  fileAdler32_.setName("FileAdler32");
132  transferDestination_.setName("TransferDestination");
133  mergeType_.setName("MergeType");
134  hltErrorEvents_.setName("HLTErrorEvents");
135 
148  std::stringstream tmpss,ss;
149  tmpss << baseRunDir << "/open/" << "output_" << getpid() << ".jsd";
150  ss << baseRunDir << "/" << "output_" << getpid() << ".jsd";
151  std::string outTmpJsonDefName = tmpss.str();
152  std::string outJsonDefName = ss.str();
153 
154  edm::Service<evf::EvFDaqDirector>()->lockInitLock();
155  struct stat fstat;
156  if (stat (outJsonDefName.c_str(), &fstat) != 0) { //file does not exist
157  LogDebug("RecoEventOutputModuleForFU") << "writing output definition file -: " << outJsonDefName;
160  jsoncollector::FileIO::writeStringToFile(outTmpJsonDefName, content);
161  boost::filesystem::rename(outTmpJsonDefName,outJsonDefName);
162  }
163  edm::Service<evf::EvFDaqDirector>()->unlockInitLock();
164 
166  jsonMonitor_->setDefPath(outJsonDefName);
167  jsonMonitor_->registerGlobalMonitorable(&processed_,false);
168  jsonMonitor_->registerGlobalMonitorable(&accepted_,false);
169  jsonMonitor_->registerGlobalMonitorable(&errorEvents_,false);
170  jsonMonitor_->registerGlobalMonitorable(&retCodeMask_,false);
171  jsonMonitor_->registerGlobalMonitorable(&filelist_,false);
172  jsonMonitor_->registerGlobalMonitorable(&filesize_,false);
173  jsonMonitor_->registerGlobalMonitorable(&inputFiles_,false);
174  jsonMonitor_->registerGlobalMonitorable(&fileAdler32_,false);
175  jsonMonitor_->registerGlobalMonitorable(&transferDestination_,false);
176  jsonMonitor_->registerGlobalMonitorable(&mergeType_,false);
177  jsonMonitor_->registerGlobalMonitorable(&hltErrorEvents_,false);
178  jsonMonitor_->commit(nullptr);
179 
180  }
#define LogDebug(id)
void addLegendItem(std::string const &name, std::string const &type, std::string const &operation)
boost::shared_ptr< jsoncollector::FastMonitor > jsonMonitor_
static bool serialize(JsonSerializable *pObj, std::string &output)
virtual void setName(std::string name)
static void writeStringToFile(std::string const &filename, std::string &content)
Definition: FileIO.cc:21
jsoncollector::DataPointDefinition outJsonDef_
void setDefaultGroup(std::string const &group)
template<typename Consumer >
void evf::RecoEventOutputModuleForFU< Consumer >::start ( void  )
overrideprivatevirtual

Implements edm::StreamerOutputModuleBase.

Definition at line 187 of file RecoEventOutputModuleForFU.h.

References AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by progressbar.ProgressBar::__next__(), Types.LuminosityBlockRange::cppID(), and Types.EventRange::cppID().

188  {
189  initRun();
190  const std::string openInitFileName = edm::Service<evf::EvFDaqDirector>()->getOpenInitFilePath(stream_label_);
191  edm::LogInfo("RecoEventOutputModuleForFU") << "start() method, initializing streams. init stream -: "
192  << openInitFileName;
193  c_->setInitMessageFile(openInitFileName);
194  c_->start();
195 
196  }
template<typename Consumer >
void evf::RecoEventOutputModuleForFU< Consumer >::stop ( )
overrideprivatevirtual

Implements edm::StreamerOutputModuleBase.

Definition at line 200 of file RecoEventOutputModuleForFU.h.

201  {
202  c_->stop();
203  }

Member Data Documentation

template<typename Consumer >
jsoncollector::IntJ evf::RecoEventOutputModuleForFU< Consumer >::accepted_
mutableprivate

Definition at line 57 of file RecoEventOutputModuleForFU.h.

template<typename Consumer >
std::auto_ptr<Consumer> evf::RecoEventOutputModuleForFU< Consumer >::c_
private

Definition at line 52 of file RecoEventOutputModuleForFU.h.

template<typename Consumer >
jsoncollector::IntJ evf::RecoEventOutputModuleForFU< Consumer >::errorEvents_
private

Definition at line 58 of file RecoEventOutputModuleForFU.h.

template<typename Consumer >
jsoncollector::IntJ evf::RecoEventOutputModuleForFU< Consumer >::fileAdler32_
private

Definition at line 63 of file RecoEventOutputModuleForFU.h.

template<typename Consumer >
jsoncollector::StringJ evf::RecoEventOutputModuleForFU< Consumer >::filelist_
private

Definition at line 60 of file RecoEventOutputModuleForFU.h.

template<typename Consumer >
jsoncollector::IntJ evf::RecoEventOutputModuleForFU< Consumer >::filesize_
private

Definition at line 61 of file RecoEventOutputModuleForFU.h.

template<typename Consumer >
evf::FastMonitoringService* evf::RecoEventOutputModuleForFU< Consumer >::fms_
private
template<typename Consumer >
jsoncollector::IntJ evf::RecoEventOutputModuleForFU< Consumer >::hltErrorEvents_
private

Definition at line 66 of file RecoEventOutputModuleForFU.h.

template<typename Consumer >
jsoncollector::StringJ evf::RecoEventOutputModuleForFU< Consumer >::inputFiles_
private

Definition at line 62 of file RecoEventOutputModuleForFU.h.

template<typename Consumer >
boost::shared_ptr<jsoncollector::FastMonitor> evf::RecoEventOutputModuleForFU< Consumer >::jsonMonitor_
private

Definition at line 67 of file RecoEventOutputModuleForFU.h.

template<typename Consumer >
jsoncollector::StringJ evf::RecoEventOutputModuleForFU< Consumer >::mergeType_
private

Definition at line 65 of file RecoEventOutputModuleForFU.h.

template<typename Consumer >
boost::filesystem::path evf::RecoEventOutputModuleForFU< Consumer >::openDatChecksumFilePath_
private

Definition at line 55 of file RecoEventOutputModuleForFU.h.

template<typename Consumer >
boost::filesystem::path evf::RecoEventOutputModuleForFU< Consumer >::openDatFilePath_
private

Definition at line 54 of file RecoEventOutputModuleForFU.h.

template<typename Consumer >
unsigned char* evf::RecoEventOutputModuleForFU< Consumer >::outBuf_ = 0
private

Definition at line 70 of file RecoEventOutputModuleForFU.h.

template<typename Consumer >
jsoncollector::DataPointDefinition evf::RecoEventOutputModuleForFU< Consumer >::outJsonDef_
private

Definition at line 69 of file RecoEventOutputModuleForFU.h.

template<typename Consumer >
jsoncollector::IntJ evf::RecoEventOutputModuleForFU< Consumer >::processed_
private

Definition at line 56 of file RecoEventOutputModuleForFU.h.

template<typename Consumer >
bool evf::RecoEventOutputModuleForFU< Consumer >::readAdler32Check_ =false
private

Definition at line 71 of file RecoEventOutputModuleForFU.h.

template<typename Consumer >
jsoncollector::IntJ evf::RecoEventOutputModuleForFU< Consumer >::retCodeMask_
private

Definition at line 59 of file RecoEventOutputModuleForFU.h.

template<typename Consumer >
std::string evf::RecoEventOutputModuleForFU< Consumer >::stream_label_
private
template<typename Consumer >
jsoncollector::StringJ evf::RecoEventOutputModuleForFU< Consumer >::transferDestination_
private

Definition at line 64 of file RecoEventOutputModuleForFU.h.