test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
MillePedeFileExtractor.h
Go to the documentation of this file.
1 #ifndef MillePedeFileExtractor_h
2 #define MillePedeFileExtractor_h
3 
4 // Original Author: Broen van Besien
5 // Created: Mon, 23 Mar 2015 14:56:15 GMT
6 
7 /*
8  * This analyzer will extract all fileblobs in the input edm/root file and
9  * write them as files to the file system.
10  *
11  * It searches for the files in the vector of fileblobs that should exist on
12  * the level of the run. Unique filenames for each file are generated based
13  * on a formating directive in the output filename parameter.
14  *
15  * The operation is performed during the endRun phase.
16  *
17  * The original embedding of the (binary) files in the edm/root files can be
18  * done with the corresponding module MillePedeFileConverer.
19  *
20  * For more info about the possible parameters, type:
21  * edmPluginHelp -p MillePedeFileExtractor
22  */
23 
30 
32  public edm::one::EDAnalyzer<edm::one::WatchLuminosityBlocks> {
33  public:
36  static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
37 
38  private:
40  const edm::EventSetup&) override {}
41  virtual void endLuminosityBlock(const edm::LuminosityBlock&,
42  const edm::EventSetup&) override;
43  virtual void analyze(const edm::Event&, const edm::EventSetup&) override {}
44 
45  bool enoughBinaries() {
48 
49  static void writeGzipped(const FileBlob&, const std::string&);
50 
53 
55 
57  int nBinaries_{0};
58 };
59 
60 // define this as a plug-in
62 
63 #endif
edm::EDGetTokenT< FileBlobCollection > fileBlobToken_
const std::string outputFileName_
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:17
MillePedeFileExtractor(const edm::ParameterSet &)
virtual void analyze(const edm::Event &, const edm::EventSetup &) override
virtual void endLuminosityBlock(const edm::LuminosityBlock &, const edm::EventSetup &) override
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
virtual void beginLuminosityBlock(const edm::LuminosityBlock &, const edm::EventSetup &) override
static void writeGzipped(const FileBlob &, const std::string &)