CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_5_3_14/src/CaloOnlineTools/HcalOnlineDb/interface/XMLHTRZeroSuppressionLoader.h

Go to the documentation of this file.
00001 #ifndef HCALConfigDBTools_XMLTools_XMLHTRZeroSuppressionLoader_h
00002 #define HCALConfigDBTools_XMLTools_XMLHTRZeroSuppressionLoader_h
00003 // -*- C++ -*-
00004 //
00005 // Package:     XMLTools
00006 // Class  :     XMLHTRZeroSuppressionLoader
00007 // 
00016 //
00017 // Original Author:  Gena Kukartsev, kukarzev@fnal.gov
00018 //         Created:  Tue Nov 06 14:30:33 CDT 2007
00019 // $Id: XMLHTRZeroSuppressionLoader.h,v 1.4 2010/08/06 20:24:10 wmtan Exp $
00020 //
00021 
00022 // system include files
00023 
00024 // user include files
00025 #include "CalibCalorimetry/HcalTPGAlgos/interface/XMLDOMBlock.h"
00026 #include "CalibCalorimetry/HcalTPGAlgos/interface/XMLProcessor.h"
00027 
00028 // forward declarations
00029 
00030 class XMLHTRZeroSuppressionLoader : public XMLDOMBlock
00031 {
00032   
00033  public:
00034   
00035   typedef struct _loaderBaseConfig
00036   {
00037     _loaderBaseConfig();
00038     std::string extention_table_name;
00039     std::string name;
00040     std::string run_type;
00041     long long int run_number;
00042     time_t run_begin_timestamp;
00043     std::string comment_description;
00044     std::string data_set_id;
00045     std::string iov_id;
00046     long long int iov_begin;
00047     long long int iov_end;
00048     std::string tag_id;
00049     std::string tag_mode;
00050     std::string tag_name;
00051     std::string detector_name;
00052     std::string elements_comment_description;
00053   } loaderBaseConfig;
00054   
00055   typedef struct _datasetDBConfig : public XMLProcessor::DBConfig
00056   {
00057     _datasetDBConfig();
00058     std::string comment_description;
00059     std::string extention_table_name;
00060     int eta, phi, depth;
00061     int z;
00062     long long int hcal_channel_id;
00063     std::string detector_name;
00064     int zero_suppression;
00065   } datasetDBConfig;
00066   
00067   XMLHTRZeroSuppressionLoader();
00068   XMLHTRZeroSuppressionLoader( loaderBaseConfig * config, std::string templateBase = "HCAL_HTR_ZERO_SUPPRESSION.XMLloader.template" );
00069   virtual ~XMLHTRZeroSuppressionLoader();
00070 
00071   // deprecated - to be removed
00072   //int createLoader( void );
00073   
00074   int addZS( datasetDBConfig * config,
00075              std::string templateFileName = "HCAL_HTR_ZERO_SUPPRESSION.dataset.template" );
00076   
00077  private:
00078   XMLHTRZeroSuppressionLoader(const XMLHTRZeroSuppressionLoader&); // stop default
00079   
00080   const XMLHTRZeroSuppressionLoader& operator=(const XMLHTRZeroSuppressionLoader&); // stop default
00081   
00082   // ---------- member data --------------------------------
00083   
00084 };
00085 
00086 
00087 #endif