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 | Private Attributes
TkHistoMap Class Reference

#include <TkHistoMap.h>

Public Member Functions

void add (uint32_t &detid, float value)
 
void dumpInTkMap (TrackerMap *tkmap, bool dumpEntries=false)
 
void fill (uint32_t &detid, float value)
 
void fillFromAscii (std::string filename)
 
std::vector< MonitorElement * > & getAllMaps ()
 
uint32_t getDetId (std::string title, int ix, int iy)
 
uint32_t getDetId (int layer, int ix, int iy)
 
uint32_t getDetId (MonitorElement *ME, int ix, int iy)
 
float getEntries (uint32_t &detid)
 
std::string getLayerName (std::string title)
 
uint16_t getLayerNum (std::string layerName)
 
MonitorElementgetMap (short layerNumber)
 
float getValue (uint32_t &detid)
 
void loadServices ()
 
void loadTkHistoMap (std::string path, std::string MapName, bool mechanicalView=false)
 
void save (std::string filename)
 
void saveAsCanvas (std::string filename, std::string options="", std::string mode="RECREATE")
 
void setBinContent (uint32_t &detid, float value)
 
 TkHistoMap (DQMStore::IBooker &ibooker, std::string path, std::string MapName, float baseline=0, bool mechanicalView=false)
 
 TkHistoMap (std::string path, std::string MapName, float baseline=0, bool mechanicalView=false)
 
 TkHistoMap ()
 
 ~TkHistoMap ()
 

Private Types

typedef std::vector
< MonitorElement * > 
tkHistoMapVect
 

Private Member Functions

void createTkHistoMap (std::string &path, std::string &MapName, float &baseline, bool mechanicalView)
 
void createTkHistoMap (DQMStore::IBooker &ibooker, std::string &path, std::string &MapName, float &baseline, bool mechanicalView)
 
std::string folderDefinition (std::string &path, std::string &MapName, int layer, bool mechanicalView, std::string &fullName)
 

Private Attributes

uint32_t cached_detid
 
int16_t cached_layer
 
TkLayerMap::XYbin cached_XYbin
 
DQMStoredqmStore_
 
int HistoNumber
 
std::string MapName_
 
TkDetMaptkdetmap_
 
std::vector< MonitorElement * > tkHistoMap_
 

Detailed Description

Definition at line 13 of file TkHistoMap.h.

Member Typedef Documentation

typedef std::vector<MonitorElement*> TkHistoMap::tkHistoMapVect
private

Definition at line 15 of file TkHistoMap.h.

Constructor & Destructor Documentation

TkHistoMap::TkHistoMap ( DQMStore::IBooker ibooker,
std::string  path,
std::string  MapName,
float  baseline = 0,
bool  mechanicalView = false 
)

Definition at line 27 of file TkHistoMap.cc.

TkHistoMap::TkHistoMap ( std::string  path,
std::string  MapName,
float  baseline = 0,
bool  mechanicalView = false 
)

Definition at line 16 of file TkHistoMap.cc.

TkHistoMap::TkHistoMap ( )

Definition at line 6 of file TkHistoMap.cc.

TkHistoMap::~TkHistoMap ( )
inline

Definition at line 21 of file TkHistoMap.h.

21 {};

Member Function Documentation

void TkHistoMap::add ( uint32_t &  detid,
float  value 
)

Definition at line 213 of file TkHistoMap.cc.

Referenced by counter.Counter::register().

void TkHistoMap::createTkHistoMap ( std::string &  path,
std::string &  MapName,
float &  baseline,
bool  mechanicalView 
)
private

Definition at line 80 of file TkHistoMap.cc.

void TkHistoMap::createTkHistoMap ( DQMStore::IBooker ibooker,
std::string &  path,
std::string &  MapName,
float &  baseline,
bool  mechanicalView 
)
private

Definition at line 111 of file TkHistoMap.cc.

void TkHistoMap::dumpInTkMap ( TrackerMap tkmap,
bool  dumpEntries = false 
)
void TkHistoMap::fill ( uint32_t &  detid,
float  value 
)
void TkHistoMap::fillFromAscii ( std::string  filename)

Definition at line 168 of file TkHistoMap.cc.

std::string TkHistoMap::folderDefinition ( std::string &  path,
std::string &  MapName,
int  layer,
bool  mechanicalView,
std::string &  fullName 
)
private

Definition at line 142 of file TkHistoMap.cc.

std::vector<MonitorElement*>& TkHistoMap::getAllMaps ( )
inline

Definition at line 28 of file TkHistoMap.h.

References tkHistoMap_.

28 {return tkHistoMap_;};
std::vector< MonitorElement * > tkHistoMap_
Definition: TkHistoMap.h:60
uint32_t TkHistoMap::getDetId ( std::string  title,
int  ix,
int  iy 
)
inline

Definition at line 32 of file TkHistoMap.h.

References getDetId(), getLayerName(), and getLayerNum().

Referenced by getDetId().

32 {return getDetId(getLayerNum(getLayerName(title)),ix,iy);}
std::string getLayerName(std::string title)
Definition: TkHistoMap.h:35
uint16_t getLayerNum(std::string layerName)
Definition: TkHistoMap.h:36
uint32_t getDetId(std::string title, int ix, int iy)
Definition: TkHistoMap.h:32
uint32_t TkHistoMap::getDetId ( int  layer,
int  ix,
int  iy 
)
inline

Definition at line 33 of file TkHistoMap.h.

References TkDetMap::getDetFromBin(), and tkdetmap_.

33 {return tkdetmap_->getDetFromBin(layer,ix,iy);}
uint32_t getDetFromBin(int layer, int ix, int iy) const
Definition: TkDetMap.h:128
TkDetMap * tkdetmap_
Definition: TkHistoMap.h:56
uint32_t TkHistoMap::getDetId ( MonitorElement ME,
int  ix,
int  iy 
)
inline

Definition at line 34 of file TkHistoMap.h.

References getDetId(), and MonitorElement::getTitle().

Referenced by getDetId().

34 {return getDetId(ME->getTitle(),ix,iy);}
std::string getTitle(void) const
get MonitorElement title
uint32_t getDetId(std::string title, int ix, int iy)
Definition: TkHistoMap.h:32
float TkHistoMap::getEntries ( uint32_t &  detid)

Definition at line 228 of file TkHistoMap.cc.

std::string TkHistoMap::getLayerName ( std::string  title)
inline

Definition at line 35 of file TkHistoMap.h.

References MapName_.

Referenced by getDetId().

35 {return title.erase(0,MapName_.size()+1);}
std::string MapName_
Definition: TkHistoMap.h:62
uint16_t TkHistoMap::getLayerNum ( std::string  layerName)
inline

Definition at line 36 of file TkHistoMap.h.

References TkDetMap::getLayerNum(), and tkdetmap_.

Referenced by getDetId().

36 {return tkdetmap_->getLayerNum(layerName);}
int getLayerNum(const std::string &in) const
Definition: TkDetMap.cc:777
TkDetMap * tkdetmap_
Definition: TkHistoMap.h:56
MonitorElement* TkHistoMap::getMap ( short  layerNumber)
inline

Definition at line 27 of file TkHistoMap.h.

References align::tib::layerNumber(), and tkHistoMap_.

27 {return tkHistoMap_[layerNumber];};
std::vector< MonitorElement * > tkHistoMap_
Definition: TkHistoMap.h:60
unsigned int layerNumber(align::ID, const TrackerTopology *)
Layer number increases with rho from 1 to 8.
Definition: TIBNameSpace.h:86
float TkHistoMap::getValue ( uint32_t &  detid)

Definition at line 223 of file TkHistoMap.cc.

void TkHistoMap::loadServices ( )

Definition at line 38 of file TkHistoMap.cc.

void TkHistoMap::loadTkHistoMap ( std::string  path,
std::string  MapName,
bool  mechanicalView = false 
)

Definition at line 61 of file TkHistoMap.cc.

void TkHistoMap::save ( std::string  filename)
void TkHistoMap::saveAsCanvas ( std::string  filename,
std::string  options = "",
std::string  mode = "RECREATE" 
)

Definition at line 252 of file TkHistoMap.cc.

void TkHistoMap::setBinContent ( uint32_t &  detid,
float  value 
)

Definition at line 196 of file TkHistoMap.cc.

Member Data Documentation

uint32_t TkHistoMap::cached_detid
private

Definition at line 57 of file TkHistoMap.h.

int16_t TkHistoMap::cached_layer
private

Definition at line 58 of file TkHistoMap.h.

TkLayerMap::XYbin TkHistoMap::cached_XYbin
private

Definition at line 59 of file TkHistoMap.h.

DQMStore* TkHistoMap::dqmStore_
private

Definition at line 55 of file TkHistoMap.h.

int TkHistoMap::HistoNumber
private

Definition at line 61 of file TkHistoMap.h.

std::string TkHistoMap::MapName_
private

Definition at line 62 of file TkHistoMap.h.

Referenced by getLayerName().

TkDetMap* TkHistoMap::tkdetmap_
private

Definition at line 56 of file TkHistoMap.h.

Referenced by getDetId(), and getLayerNum().

std::vector<MonitorElement*> TkHistoMap::tkHistoMap_
private

Definition at line 60 of file TkHistoMap.h.

Referenced by getAllMaps(), and getMap().