CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
KalmanAlignmentDataCollector.h
Go to the documentation of this file.
1 #ifndef Alignment_KalmanAlignmentAlgorithm_KalmanAlignmentDataCollector_h
2 #define Alignment_KalmanAlignmentAlgorithm_KalmanAlignmentDataCollector_h
3 
5 
6 #include <vector>
7 #include <map>
8 #include <string>
9 
11 
13 {
14 
15 public:
16 
20 
21  static KalmanAlignmentDataCollector* get( void );
22 
23  static void configure( const edm::ParameterSet& config );
24 
25  static void fillHistogram( std::string histo_name, float data );
26  static void fillHistogram( std::string histo_name, int histo_number, float data );
27 
28  static void fillGraph( std::string graph_name, float x_data, float y_data );
29  static void fillGraph( std::string graph_name, int graph_number, float x_data, float y_data );
30 
31  static void fillNtuple( std::string ntuple_name, float data );
32 
33  static void write( void );
34  static void write( std::string file_name, std::string mode = "RECREATE" );
35 
36  static void clear( void );
37 
38 private:
39 
40  void config( const edm::ParameterSet & config );
41 
42  void fillTH1F( std::string histo_name, float data );
43  void fillTH1F( std::string histo_name, int histo_number, float data );
44 
45  void fillTGraph( std::string graph_name, float x_data, float y_data );
46  void fillTGraph( std::string graph_name, int graph_number, float x_data, float y_data );
47 
48  void fillTNtuple( std::string ntuple_name, float data );
49 
50  void writeToTFile( void );
51  void writeToTFile( std::string file_name, std::string mode = "RECREATE" );
52 
53  void clearData( void );
54 
55  std::string toString( int );
56 
58 
60 
61  std::map< std::string, std::vector< float > > theHistoData;
62  std::map< std::string, std::vector< float > > theXGraphData;
63  std::map< std::string, std::vector< float > > theYGraphData;
64  std::map< std::string, std::vector< float > > theNtupleData;
65 };
66 
67 
68 #endif
std::map< std::string, std::vector< float > > theNtupleData
static void fillHistogram(std::string histo_name, float data)
void fillTGraph(std::string graph_name, float x_data, float y_data)
void fillTH1F(std::string histo_name, float data)
std::map< std::string, std::vector< float > > theXGraphData
std::map< std::string, std::vector< float > > theHistoData
A simple class that allows fast and easy histograming and the production of graphs.
static KalmanAlignmentDataCollector * theDataCollector
static void fillNtuple(std::string ntuple_name, float data)
void fillTNtuple(std::string ntuple_name, float data)
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
void config(const edm::ParameterSet &config)
static void configure(const edm::ParameterSet &config)
static void fillGraph(std::string graph_name, float x_data, float y_data)
std::map< std::string, std::vector< float > > theYGraphData