Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
Alignment
MillePedeAlignmentAlgorithm
plugins
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
24
#include "
FWCore/Framework/interface/Frameworkfwd.h
"
25
#include "
FWCore/Framework/interface/EDAnalyzer.h
"
26
#include "
FWCore/Framework/interface/Event.h
"
27
#include "
FWCore/Framework/interface/MakerMacros.h
"
28
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
29
#include "
CondFormats/Common/interface/FileBlobCollection.h
"
30
31
class
MillePedeFileExtractor
:
public
edm::EDAnalyzer
{
32
public
:
33
explicit
MillePedeFileExtractor
(
const
edm::ParameterSet
&);
34
~MillePedeFileExtractor
();
35
static
void
fillDescriptions
(
edm::ConfigurationDescriptions
& descriptions);
36
37
private
:
38
virtual
void
endRun
(
edm::Run
const
&,
edm::EventSetup
const
&)
override
;
39
void
analyze
(
const
edm::Event
&,
const
edm::EventSetup
&) {}
40
41
std::string
theOutputDir
;
42
std::string
theOutputFileName
;
43
44
edm::EDGetTokenT<FileBlobCollection>
theFileBlobToken
;
45
46
};
47
48
// define this as a plug-in
49
DEFINE_FWK_MODULE
(
MillePedeFileExtractor
);
50
51
#endif
MillePedeFileExtractor::endRun
virtual void endRun(edm::Run const &, edm::EventSetup const &) override
Definition:
MillePedeFileExtractor.cc:24
MillePedeFileExtractor::analyze
void analyze(const edm::Event &, const edm::EventSetup &)
Definition:
MillePedeFileExtractor.h:39
MillePedeFileExtractor::~MillePedeFileExtractor
~MillePedeFileExtractor()
Definition:
MillePedeFileExtractor.cc:22
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition:
MakerMacros.h:17
Event.h
MillePedeFileExtractor::MillePedeFileExtractor
MillePedeFileExtractor(const edm::ParameterSet &)
Definition:
MillePedeFileExtractor.cc:13
MakerMacros.h
FileBlobCollection.h
edm::EDGetTokenT< FileBlobCollection >
Frameworkfwd.h
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
ParameterSet.h
MillePedeFileExtractor::theOutputFileName
std::string theOutputFileName
Definition:
MillePedeFileExtractor.h:42
MillePedeFileExtractor::fillDescriptions
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
Definition:
MillePedeFileExtractor.cc:62
edm::EventSetup
Definition:
EventSetup.h:45
edm::EDAnalyzer
Definition:
EDAnalyzer.h:27
EDAnalyzer.h
MillePedeFileExtractor::theFileBlobToken
edm::EDGetTokenT< FileBlobCollection > theFileBlobToken
Definition:
MillePedeFileExtractor.h:44
edm::ParameterSet
Definition:
ParameterSet.h:36
MillePedeFileExtractor::theOutputDir
std::string theOutputDir
Definition:
MillePedeFileExtractor.h:41
edm::Event
Definition:
Event.h:65
MillePedeFileExtractor
Definition:
MillePedeFileExtractor.h:31
edm::ConfigurationDescriptions
Definition:
ConfigurationDescriptions.h:27
edm::Run
Definition:
Run.h:43
Generated for CMSSW Reference Manual by
1.8.5