CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Types | Private Member Functions | Static Private Member Functions | Private Attributes
DTHVStatusHandler Class Reference

#include <DTHVStatusHandler.h>

Inheritance diagram for DTHVStatusHandler:
popcon::PopConSourceHandler< DTHVStatus >

Public Member Functions

 DTHVStatusHandler (const edm::ParameterSet &ps)
 
void getNewObjects ()
 
std::string id () const
 
virtual ~DTHVStatusHandler ()
 
- Public Member Functions inherited from popcon::PopConSourceHandler< DTHVStatus >
void convertFromOld ()
 
SummarydummySummary (typename OldContainer::value_type const &) const
 
void initialize (const cond::persistency::Session &dbSession, cond::TagInfo_t const &tagInfo, cond::LogDBEntry_t const &logDBEntry)
 
Ref lastPayload () const
 
cond::LogDBEntry_t const & logDBEntry () const
 
std::pair< Container const
*, std::string const > 
operator() (const cond::persistency::Session &session, cond::TagInfo_t const &tagInfo, cond::LogDBEntry_t const &logDBEntry) const
 
 PopConSourceHandler ()
 
Container const & returnData ()
 
void sort ()
 
cond::TagInfo_t const & tagInfo () const
 
std::string const & userTextLog () const
 
virtual ~PopConSourceHandler ()
 

Private Types

typedef std::pair< int, float > channelValue
 
typedef
DTHVAbstractCheck::timedMeasurement 
timedMeasurement
 

Private Member Functions

int checkForPeriod (cond::Time_t condSince, cond::Time_t condUntil, int &missingChannels, bool copyOffline)
 
void checkNewData ()
 
int checkStatusChange (int type, float oldValue, float newValue)
 
void copyHVData ()
 
void createSnapshot ()
 
void dumpHVAliases ()
 
void dumpSnapshot (const coral::TimeStamp &time)
 
void filterData ()
 
void getChannelMap ()
 
void getChannelSplit ()
 
void getLayerSplit ()
 
void getLayerValues (int rawId, int type, float &valueL, float &valueR, float &valueS, float &valueC)
 
DTHVStatusofflineList ()
 
cond::Time_t recoverLastTime ()
 
int recoverSnapshot ()
 
void setChannelFlag (DTHVStatus *hv, int whe, int sta, int sec, int qua, int lay, int l_p, const DTHVAbstractCheck::flag &flag)
 
void updateHVStatus ()
 

Static Private Member Functions

static cond::Time_t condTime (const coral::TimeStamp &time)
 
static cond::Time_t condTime (long long int time)
 
static coral::TimeStamp coralTime (const cond::Time_t &time)
 
static DTWireId layerId (int rawId, int l_p)
 

Private Attributes

std::map< int, int > aliasMap
 
cond::persistency::Session buff_session
 
std::string bufferConnect
 
long long int bwdTime
 
std::map< int, std::vector
< int > * > 
channelSplit
 
std::string dataTag
 
int dSince
 
bool dumpAtEnd
 
bool dumpAtStart
 
int dUntil
 
long long int fwdTime
 
int hSince
 
int hUntil
 
DTHVAbstractCheckhvChecker
 
cond::Time_t lastFound
 
long long int lastStamp
 
DTHVStatuslastStatus
 
std::map< int, int > layerMap
 
std::map< int, int > laySplit
 
std::string mapVersion
 
int maxPayload
 
long long int minTime
 
int mSince
 
int mUntil
 
cond::Time_t nextFound
 
cond::persistency::Session omds_session
 
std::string onlineAuthentication
 
std::string onlineConnect
 
cond::Time_t procSince
 
cond::Time_t procUntil
 
int pSince
 
int pUntil
 
std::map< int, timedMeasurementsnapshotValues
 
std::string splitVersion
 
int sSince
 
int sUntil
 
bool switchOff
 
cond::Time_t timeLimit
 
std::vector< std::pair
< DTHVStatus *, cond::Time_t > > 
tmpContainer
 
cond::persistency::Session util_session
 
std::string utilConnect
 
int ySince
 
int yUntil
 

Additional Inherited Members

- Public Types inherited from popcon::PopConSourceHandler< DTHVStatus >
typedef std::vector< TripletContainer
 
typedef std::vector< std::pair
< DTHVStatus *, cond::Time_t > > 
OldContainer
 
typedef PopConSourceHandler
< DTHVStatus
self
 
typedef cond::Summary Summary
 
typedef cond::Time_t Time_t
 
typedef DTHVStatus value_type
 
- Protected Member Functions inherited from popcon::PopConSourceHandler< DTHVStatus >
int add (value_type *payload, Summary *summary, Time_t time)
 
- Protected Attributes inherited from popcon::PopConSourceHandler< DTHVStatus >
OldContainer m_to_transfer
 
std::string m_userTextLog
 

Detailed Description

Description: Class to copy HV status via PopCon

Date:
2010/07/21 16:06:52
Revision:
1.6
Author
Paolo Ronchese INFN Padova

Definition at line 41 of file DTHVStatusHandler.h.

Member Typedef Documentation

typedef std::pair<int,float> DTHVStatusHandler::channelValue
private

Definition at line 62 of file DTHVStatusHandler.h.

Definition at line 61 of file DTHVStatusHandler.h.

Constructor & Destructor Documentation

DTHVStatusHandler::DTHVStatusHandler ( const edm::ParameterSet ps)

Constructor

Definition at line 52 of file DTHVStatusHandler.cc.

DTHVStatusHandler::~DTHVStatusHandler ( )
virtual

Destructor

Definition at line 91 of file DTHVStatusHandler.cc.

Member Function Documentation

int DTHVStatusHandler::checkForPeriod ( cond::Time_t  condSince,
cond::Time_t  condUntil,
int &  missingChannels,
bool  copyOffline 
)
private

Definition at line 862 of file DTHVStatusHandler.cc.

void DTHVStatusHandler::checkNewData ( )
private

Definition at line 223 of file DTHVStatusHandler.cc.

int DTHVStatusHandler::checkStatusChange ( int  type,
float  oldValue,
float  newValue 
)
private

Definition at line 1203 of file DTHVStatusHandler.cc.

cond::Time_t DTHVStatusHandler::condTime ( const coral::TimeStamp &  time)
staticprivate

Definition at line 1391 of file DTHVStatusHandler.cc.

cond::Time_t DTHVStatusHandler::condTime ( long long int  time)
staticprivate

Definition at line 1398 of file DTHVStatusHandler.cc.

void DTHVStatusHandler::copyHVData ( )
private

Definition at line 993 of file DTHVStatusHandler.cc.

coral::TimeStamp DTHVStatusHandler::coralTime ( const cond::Time_t time)
staticprivate

Definition at line 1383 of file DTHVStatusHandler.cc.

void DTHVStatusHandler::createSnapshot ( )
private

Definition at line 560 of file DTHVStatusHandler.cc.

void DTHVStatusHandler::dumpHVAliases ( )
private

Definition at line 430 of file DTHVStatusHandler.cc.

void DTHVStatusHandler::dumpSnapshot ( const coral::TimeStamp &  time)
private

Definition at line 782 of file DTHVStatusHandler.cc.

void DTHVStatusHandler::filterData ( )
private

Definition at line 1287 of file DTHVStatusHandler.cc.

void DTHVStatusHandler::getChannelMap ( )
private

Definition at line 285 of file DTHVStatusHandler.cc.

void DTHVStatusHandler::getChannelSplit ( )
private

Definition at line 358 of file DTHVStatusHandler.cc.

void DTHVStatusHandler::getLayerSplit ( )
private

Definition at line 313 of file DTHVStatusHandler.cc.

void DTHVStatusHandler::getLayerValues ( int  rawId,
int  type,
float &  valueL,
float &  valueR,
float &  valueS,
float &  valueC 
)
private

Definition at line 1101 of file DTHVStatusHandler.cc.

void DTHVStatusHandler::getNewObjects ( )
virtual

Operations

Implements popcon::PopConSourceHandler< DTHVStatus >.

Definition at line 97 of file DTHVStatusHandler.cc.

std::string DTHVStatusHandler::id ( ) const
virtual

Implements popcon::PopConSourceHandler< DTHVStatus >.

Definition at line 280 of file DTHVStatusHandler.cc.

DTWireId DTHVStatusHandler::layerId ( int  rawId,
int  l_p 
)
staticprivate

Definition at line 1371 of file DTHVStatusHandler.cc.

DTHVStatus * DTHVStatusHandler::offlineList ( )
private

Definition at line 1025 of file DTHVStatusHandler.cc.

cond::Time_t DTHVStatusHandler::recoverLastTime ( )
private

Definition at line 756 of file DTHVStatusHandler.cc.

int DTHVStatusHandler::recoverSnapshot ( )
private

Definition at line 711 of file DTHVStatusHandler.cc.

void DTHVStatusHandler::setChannelFlag ( DTHVStatus hv,
int  whe,
int  sta,
int  sec,
int  qua,
int  lay,
int  l_p,
const DTHVAbstractCheck::flag flag 
)
private

Definition at line 1171 of file DTHVStatusHandler.cc.

void DTHVStatusHandler::updateHVStatus ( )
private

Definition at line 658 of file DTHVStatusHandler.cc.

Member Data Documentation

std::map<int,int> DTHVStatusHandler::aliasMap
private

Definition at line 140 of file DTHVStatusHandler.h.

cond::persistency::Session DTHVStatusHandler::buff_session
private

Definition at line 136 of file DTHVStatusHandler.h.

std::string DTHVStatusHandler::bufferConnect
private

Definition at line 102 of file DTHVStatusHandler.h.

long long int DTHVStatusHandler::bwdTime
private

Definition at line 119 of file DTHVStatusHandler.h.

std::map< int, std::vector<int>* > DTHVStatusHandler::channelSplit
private

Definition at line 143 of file DTHVStatusHandler.h.

std::string DTHVStatusHandler::dataTag
private

Definition at line 98 of file DTHVStatusHandler.h.

int DTHVStatusHandler::dSince
private

Definition at line 107 of file DTHVStatusHandler.h.

bool DTHVStatusHandler::dumpAtEnd
private

Definition at line 118 of file DTHVStatusHandler.h.

bool DTHVStatusHandler::dumpAtStart
private

Definition at line 117 of file DTHVStatusHandler.h.

int DTHVStatusHandler::dUntil
private

Definition at line 113 of file DTHVStatusHandler.h.

long long int DTHVStatusHandler::fwdTime
private

Definition at line 120 of file DTHVStatusHandler.h.

int DTHVStatusHandler::hSince
private

Definition at line 108 of file DTHVStatusHandler.h.

int DTHVStatusHandler::hUntil
private

Definition at line 114 of file DTHVStatusHandler.h.

DTHVAbstractCheck* DTHVStatusHandler::hvChecker
private

Definition at line 124 of file DTHVStatusHandler.h.

cond::Time_t DTHVStatusHandler::lastFound
private

Definition at line 128 of file DTHVStatusHandler.h.

long long int DTHVStatusHandler::lastStamp
private

Definition at line 131 of file DTHVStatusHandler.h.

DTHVStatus* DTHVStatusHandler::lastStatus
private

Definition at line 103 of file DTHVStatusHandler.h.

std::map<int,int> DTHVStatusHandler::layerMap
private

Definition at line 141 of file DTHVStatusHandler.h.

std::map<int,int> DTHVStatusHandler::laySplit
private

Definition at line 142 of file DTHVStatusHandler.h.

std::string DTHVStatusHandler::mapVersion
private

Definition at line 138 of file DTHVStatusHandler.h.

int DTHVStatusHandler::maxPayload
private

Definition at line 132 of file DTHVStatusHandler.h.

long long int DTHVStatusHandler::minTime
private

Definition at line 121 of file DTHVStatusHandler.h.

int DTHVStatusHandler::mSince
private

Definition at line 106 of file DTHVStatusHandler.h.

int DTHVStatusHandler::mUntil
private

Definition at line 112 of file DTHVStatusHandler.h.

cond::Time_t DTHVStatusHandler::nextFound
private

Definition at line 129 of file DTHVStatusHandler.h.

cond::persistency::Session DTHVStatusHandler::omds_session
private

Definition at line 134 of file DTHVStatusHandler.h.

std::string DTHVStatusHandler::onlineAuthentication
private

Definition at line 101 of file DTHVStatusHandler.h.

std::string DTHVStatusHandler::onlineConnect
private

Definition at line 99 of file DTHVStatusHandler.h.

cond::Time_t DTHVStatusHandler::procSince
private

Definition at line 126 of file DTHVStatusHandler.h.

cond::Time_t DTHVStatusHandler::procUntil
private

Definition at line 127 of file DTHVStatusHandler.h.

int DTHVStatusHandler::pSince
private

Definition at line 109 of file DTHVStatusHandler.h.

int DTHVStatusHandler::pUntil
private

Definition at line 115 of file DTHVStatusHandler.h.

std::map<int,timedMeasurement> DTHVStatusHandler::snapshotValues
private

Definition at line 123 of file DTHVStatusHandler.h.

std::string DTHVStatusHandler::splitVersion
private

Definition at line 139 of file DTHVStatusHandler.h.

int DTHVStatusHandler::sSince
private

Definition at line 110 of file DTHVStatusHandler.h.

int DTHVStatusHandler::sUntil
private

Definition at line 116 of file DTHVStatusHandler.h.

bool DTHVStatusHandler::switchOff
private

Definition at line 145 of file DTHVStatusHandler.h.

cond::Time_t DTHVStatusHandler::timeLimit
private

Definition at line 130 of file DTHVStatusHandler.h.

std::vector< std::pair<DTHVStatus*, cond::Time_t> > DTHVStatusHandler::tmpContainer
private

Definition at line 144 of file DTHVStatusHandler.h.

cond::persistency::Session DTHVStatusHandler::util_session
private

Definition at line 135 of file DTHVStatusHandler.h.

std::string DTHVStatusHandler::utilConnect
private

Definition at line 100 of file DTHVStatusHandler.h.

int DTHVStatusHandler::ySince
private

Definition at line 105 of file DTHVStatusHandler.h.

int DTHVStatusHandler::yUntil
private

Definition at line 111 of file DTHVStatusHandler.h.