StFms
0.0.0
FMS software in the STAR framework
|
#include <StFmsDbMaker.h>
Public Member Functions | |
StFmsDbMaker (const Char_t *name="fmsDb") | |
virtual | ~StFmsDbMaker () |
virtual Int_t | Init () |
virtual Int_t | InitRun (Int_t runNumber) |
virtual Int_t | Make () |
virtual Int_t | Finish () |
virtual void | Clear (const Char_t *opt) |
void | setDebug (Int_t debug) |
debug mode, 0 for minimal message, >0 for more debug messages More... | |
fmsChannelGeometry_st * | ChannelGeometry () |
getting the whole table More... | |
fmsDetectorPosition_st * | DetectorPosition () |
getting the whole table More... | |
fmsMap_st * | Map () |
fmsPatchPanelMap_st * | PatchPanelMap () |
fmsQTMap_st * | QTMap () |
fmsGain_st * | Gain () |
fmsGainCorrection_st * | GainCorrection () |
Int_t | maxDetectorId () |
Utility functions related to FMS ChannelGeometry. More... | |
Int_t | detectorId (Int_t ew, Int_t ns, Int_t type) |
maximum value of detector Id More... | |
Int_t | eastWest (Int_t detectorId) |
convert to detector Id More... | |
Int_t | northSouth (Int_t detectorId) |
east or west to the STAR IP More... | |
Int_t | type (Int_t detectorId) |
north or south side More... | |
Int_t | nRow (Int_t detectorId) |
type of the detector More... | |
Int_t | nColumn (Int_t detectorId) |
number of rows More... | |
Int_t | maxChannel (Int_t detectorId) |
number of column More... | |
Int_t | getRowNumber (Int_t detectorId, Int_t ch) |
maximum number of channels More... | |
Int_t | getColumnNumber (Int_t detectorId, Int_t ch) |
get the row number for the channel More... | |
Int_t | getChannelNumber (Int_t detectorId, Int_t row, Int_t column) |
get the column number for the channel More... | |
StThreeVectorF | getDetectorOffset (Int_t detectorId) |
get the channel number More... | |
Float_t | getXWidth (Int_t detectorId) |
get the offset of the detector More... | |
Float_t | getYWidth (Int_t detectorId) |
get the X width of the cell More... | |
StThreeVectorF | getStarXYZ (Int_t detectorId, Float_t FmsX, Float_t FmsY) |
get the Y width of the cell More... | |
Float_t | getPhi (Int_t detectorId, Float_t FmsX, Float_t FmsY) |
get the STAR frame coordinates More... | |
Float_t | getEta (Int_t detectorId, Float_t FmsX, Float_t FmsY, Float_t Vertex) |
get the STAR frame phi angle More... | |
Int_t | maxMap () |
get the STAR frame pseudo rapidity assuming vertex is at (0,0,0) More... | |
void | getMap (Int_t detectorId, Int_t ch, Int_t *qtCrate, Int_t *qtSlot, Int_t *qtChannel) |
void | getReverseMap (Int_t qtCrate, Int_t qtSlot, Int_t qtChannel, Int_t *detectorId, Int_t *ch) |
Int_t | maxModule () |
fmsPatchPanelMap related More... | |
Int_t | maxNS () |
fmsQTMap related More... | |
Int_t | maxGain () |
fmsGain/GainCorrection related More... | |
Int_t | maxGainCorrection () |
Float_t | getGain (Int_t detectorId, Int_t ch) |
Float_t | getGainCorrection (Int_t detectorId, Int_t ch) |
get the gain for the channel More... | |
void | dumpFmsChannelGeometry (const Char_t *filename="dumpFmsChannelGeometry.txt") |
get the gain correction for the channel More... | |
void | dumpFmsDetectorPosition (const Char_t *filename="dumpFmsDetectorPosition.txt") |
void | dumpFmsMap (const Char_t *filename="dumpFmsMap.txt") |
void | dumpFmsPatchPanelMap (const Char_t *filename="dumpFmsPatchPanelMap.txt") |
void | dumpFmsQTMap (const Char_t *filename="dumpFmsQTMap.txt") |
void | dumpFmsGain (const Char_t *filename="dumpFmsGain.txt") |
void | dumpFmsGainCorrection (const Char_t *filename="dumpFmsGainCorrection.txt") |
Private Types | |
enum | { mMaxCrate =8, mMaxSlot =17, mMaxCh =32 } |
Private Member Functions | |
void | deleteArrays () |
virtual const Char_t * | GetCVS () const |
Private Attributes | |
Int_t | mDebug |
fmsChannelGeometry_st * | mChannelGeometry |
>0 dump tables to text files More... | |
Int_t | mMaxDetectorId |
channel configuration for each detector More... | |
fmsDetectorPosition_st * | mDetectorPosition |
max detector Id More... | |
fmsMap_st * | mMap |
position (in STAR frame) of each detector More... | |
fmsMap_st ** | mmMap |
detector map More... | |
Int_t | mMaxMap |
Int_t | mReverseMapDetectorId [mMaxCrate][mMaxSlot][mMaxCh] |
Int_t | mReverseMapChannel [mMaxCrate][mMaxSlot][mMaxCh] |
fmsPatchPanelMap_st * | mPatchPanelMap |
Int_t | mMaxModule |
patch panel map More... | |
fmsQTMap_st * | mQTMap |
Int_t | mMaxNS |
Qt map. More... | |
fmsGain_st * | mGain |
fmsGain_st ** | mmGain |
gain table More... | |
Int_t | mMaxGain |
fmsGainCorrection_st * | mGainCorrection |
fmsGainCorrection_st ** | mmGainCorrection |
gain correction table More... | |
Int_t | mMaxGainCorrection |
Definition at line 38 of file StFmsDbMaker.h.
|
private |
Enumerator | |
---|---|
mMaxCrate | |
mMaxSlot | |
mMaxCh |
Definition at line 118 of file StFmsDbMaker.h.
StFmsDbMaker::StFmsDbMaker | ( | const Char_t * | name = "fmsDb" | ) |
|
virtual |
fmsChannelGeometry_st * StFmsDbMaker::ChannelGeometry | ( | ) |
getting the whole table
Definition at line 271 of file StFmsDbMaker.cxx.
|
virtual |
Definition at line 42 of file StFmsDbMaker.cxx.
|
private |
Int_t StFmsDbMaker::detectorId | ( | Int_t | ew, |
Int_t | ns, | ||
Int_t | type | ||
) |
maximum value of detector Id
Definition at line 330 of file StFmsDbMaker.cxx.
fmsDetectorPosition_st * StFmsDbMaker::DetectorPosition | ( | ) |
getting the whole table
Definition at line 270 of file StFmsDbMaker.cxx.
void StFmsDbMaker::dumpFmsChannelGeometry | ( | const Char_t * | filename = "dumpFmsChannelGeometry.txt" | ) |
get the gain correction for the channel
text dump for debugging
Definition at line 411 of file StFmsDbMaker.cxx.
void StFmsDbMaker::dumpFmsDetectorPosition | ( | const Char_t * | filename = "dumpFmsDetectorPosition.txt" | ) |
Definition at line 434 of file StFmsDbMaker.cxx.
void StFmsDbMaker::dumpFmsGain | ( | const Char_t * | filename = "dumpFmsGain.txt" | ) |
Definition at line 498 of file StFmsDbMaker.cxx.
void StFmsDbMaker::dumpFmsGainCorrection | ( | const Char_t * | filename = "dumpFmsGainCorrection.txt" | ) |
Definition at line 514 of file StFmsDbMaker.cxx.
void StFmsDbMaker::dumpFmsMap | ( | const Char_t * | filename = "dumpFmsMap.txt" | ) |
Definition at line 447 of file StFmsDbMaker.cxx.
void StFmsDbMaker::dumpFmsPatchPanelMap | ( | const Char_t * | filename = "dumpFmsPatchPanelMap.txt" | ) |
Definition at line 467 of file StFmsDbMaker.cxx.
void StFmsDbMaker::dumpFmsQTMap | ( | const Char_t * | filename = "dumpFmsQTMap.txt" | ) |
Int_t StFmsDbMaker::eastWest | ( | Int_t | detectorId | ) |
convert to detector Id
Definition at line 280 of file StFmsDbMaker.cxx.
|
virtual |
Definition at line 43 of file StFmsDbMaker.cxx.
fmsGain_st * StFmsDbMaker::Gain | ( | ) |
Definition at line 275 of file StFmsDbMaker.cxx.
fmsGainCorrection_st * StFmsDbMaker::GainCorrection | ( | ) |
Definition at line 276 of file StFmsDbMaker.cxx.
Int_t StFmsDbMaker::getChannelNumber | ( | Int_t | detectorId, |
Int_t | row, | ||
Int_t | column | ||
) |
get the column number for the channel
Definition at line 350 of file StFmsDbMaker.cxx.
Int_t StFmsDbMaker::getColumnNumber | ( | Int_t | detectorId, |
Int_t | ch | ||
) |
get the row number for the channel
Definition at line 345 of file StFmsDbMaker.cxx.
|
inlineprivatevirtual |
Definition at line 137 of file StFmsDbMaker.h.
StThreeVectorF StFmsDbMaker::getDetectorOffset | ( | Int_t | detectorId | ) |
get the channel number
Utility functions related to DetectorPosition
Definition at line 355 of file StFmsDbMaker.cxx.
Float_t StFmsDbMaker::getEta | ( | Int_t | detectorId, |
Float_t | FmsX, | ||
Float_t | FmsY, | ||
Float_t | Vertex | ||
) |
get the STAR frame phi angle
Definition at line 265 of file StFmsDbMaker.cxx.
Float_t StFmsDbMaker::getGain | ( | Int_t | detectorId, |
Int_t | ch | ||
) |
Definition at line 401 of file StFmsDbMaker.cxx.
Float_t StFmsDbMaker::getGainCorrection | ( | Int_t | detectorId, |
Int_t | ch | ||
) |
get the gain for the channel
Definition at line 405 of file StFmsDbMaker.cxx.
void StFmsDbMaker::getMap | ( | Int_t | detectorId, |
Int_t | ch, | ||
Int_t * | qtCrate, | ||
Int_t * | qtSlot, | ||
Int_t * | qtChannel | ||
) |
Definition at line 373 of file StFmsDbMaker.cxx.
Float_t StFmsDbMaker::getPhi | ( | Int_t | detectorId, |
Float_t | FmsX, | ||
Float_t | FmsY | ||
) |
get the STAR frame coordinates
Definition at line 264 of file StFmsDbMaker.cxx.
void StFmsDbMaker::getReverseMap | ( | Int_t | qtCrate, |
Int_t | qtSlot, | ||
Int_t | qtChannel, | ||
Int_t * | detectorId, | ||
Int_t * | ch | ||
) |
Int_t StFmsDbMaker::getRowNumber | ( | Int_t | detectorId, |
Int_t | ch | ||
) |
maximum number of channels
Definition at line 340 of file StFmsDbMaker.cxx.
StThreeVectorF StFmsDbMaker::getStarXYZ | ( | Int_t | detectorId, |
Float_t | FmsX, | ||
Float_t | FmsY | ||
) |
get the Y width of the cell
get coordinates in STAR frame, will be implemented when the detector position table is fill into the database and available
north side
south side
Definition at line 251 of file StFmsDbMaker.cxx.
Float_t StFmsDbMaker::getXWidth | ( | Int_t | detectorId | ) |
get the offset of the detector
Definition at line 361 of file StFmsDbMaker.cxx.
Float_t StFmsDbMaker::getYWidth | ( | Int_t | detectorId | ) |
get the X width of the cell
Definition at line 366 of file StFmsDbMaker.cxx.
|
virtual |
Definition at line 40 of file StFmsDbMaker.cxx.
|
virtual |
Accessing DBs
Getting DB tables
fmsChannelGeometry
fmsDetectorPosition
fmsPatchPanelMap
LOG_INFO << mMaxModule << "***********" << endm;
fmsQTMap
fmsMap
fmsGain
fmsGainCorrection
Debug
Definition at line 45 of file StFmsDbMaker.cxx.
|
virtual |
Definition at line 41 of file StFmsDbMaker.cxx.
fmsMap_st * StFmsDbMaker::Map | ( | ) |
Definition at line 272 of file StFmsDbMaker.cxx.
Int_t StFmsDbMaker::maxChannel | ( | Int_t | detectorId | ) |
number of column
Definition at line 321 of file StFmsDbMaker.cxx.
Int_t StFmsDbMaker::maxDetectorId | ( | ) |
Utility functions related to FMS ChannelGeometry.
ChannelGeometry.
Definition at line 279 of file StFmsDbMaker.cxx.
Int_t StFmsDbMaker::maxGain | ( | ) |
fmsGain/GainCorrection related
fmsGain/GainCorrection
Definition at line 399 of file StFmsDbMaker.cxx.
Int_t StFmsDbMaker::maxGainCorrection | ( | ) |
Int_t StFmsDbMaker::maxMap | ( | ) |
get the STAR frame pseudo rapidity assuming vertex is at (0,0,0)
fmsMap
fmsMap related
Definition at line 372 of file StFmsDbMaker.cxx.
Int_t StFmsDbMaker::maxModule | ( | ) |
Int_t StFmsDbMaker::maxNS | ( | ) |
Int_t StFmsDbMaker::nColumn | ( | Int_t | detectorId | ) |
number of rows
Definition at line 312 of file StFmsDbMaker.cxx.
Int_t StFmsDbMaker::northSouth | ( | Int_t | detectorId | ) |
east or west to the STAR IP
Definition at line 288 of file StFmsDbMaker.cxx.
Int_t StFmsDbMaker::nRow | ( | Int_t | detectorId | ) |
type of the detector
Definition at line 304 of file StFmsDbMaker.cxx.
fmsPatchPanelMap_st * StFmsDbMaker::PatchPanelMap | ( | ) |
Definition at line 273 of file StFmsDbMaker.cxx.
fmsQTMap_st * StFmsDbMaker::QTMap | ( | ) |
Definition at line 274 of file StFmsDbMaker.cxx.
void StFmsDbMaker::setDebug | ( | Int_t | debug | ) |
debug mode, 0 for minimal message, >0 for more debug messages
Definition at line 267 of file StFmsDbMaker.cxx.
Int_t StFmsDbMaker::type | ( | Int_t | detectorId | ) |
north or south side
Definition at line 296 of file StFmsDbMaker.cxx.
|
private |
>0 dump tables to text files
Definition at line 110 of file StFmsDbMaker.h.
|
private |
Definition at line 108 of file StFmsDbMaker.h.
|
private |
max detector Id
Definition at line 113 of file StFmsDbMaker.h.
|
private |
Definition at line 128 of file StFmsDbMaker.h.
|
private |
Definition at line 132 of file StFmsDbMaker.h.
|
private |
position (in STAR frame) of each detector
Definition at line 115 of file StFmsDbMaker.h.
|
private |
channel configuration for each detector
Definition at line 111 of file StFmsDbMaker.h.
|
private |
Definition at line 130 of file StFmsDbMaker.h.
|
private |
Definition at line 134 of file StFmsDbMaker.h.
|
private |
Definition at line 117 of file StFmsDbMaker.h.
|
private |
patch panel map
Definition at line 123 of file StFmsDbMaker.h.
|
private |
Qt map.
Definition at line 126 of file StFmsDbMaker.h.
|
private |
gain table
Definition at line 129 of file StFmsDbMaker.h.
|
private |
gain correction table
Definition at line 133 of file StFmsDbMaker.h.
|
private |
detector map
Definition at line 116 of file StFmsDbMaker.h.
|
private |
Definition at line 122 of file StFmsDbMaker.h.
|
private |
Definition at line 125 of file StFmsDbMaker.h.
Definition at line 120 of file StFmsDbMaker.h.
Definition at line 119 of file StFmsDbMaker.h.