#include <SteerDesc.hh>
Collaboration diagram for SteerDesc:

Public Member Functions | |
| SteerDesc () | |
| ~SteerDesc () | |
| bool | setRun (Run &cible) |
| bool | isValid (void) const |
| std::string | getSlowControlPath () |
| void | print (void) const |
| size_t | fillDifByChamberId (std::vector< DifInfo_t > &result, i32 chamberId) const |
| size_t | fillBoardByChamberId (std::vector< BoardInfo_t > &result, i32 chamberId) const |
| size_t | fillChipByChamberId (std::vector< ChipInfo_t > &result, i32 chamberId) const |
Public Attributes | |
| input_info_t * | inputInfo |
| std::vector< input_info_t > | inputFiles |
| std::string | outputFile |
| std::string | detectorName |
| std::string | date |
| std::string | detectorDescription |
| int | lastChamberId |
| int | lastDifId |
| int | lastBoardId |
| chamber_info_t * | chamberInfo |
| std::vector< chamber_info_t > | chambers |
| BoardInfo_t * | boardInfo |
| std::vector< BoardInfo_t > | boards |
| DifInfo_t * | difInfo |
| std::vector< DifInfo_t > | difs |
| ChipInfo_t * | chipInfo |
| std::vector< ChipInfo_t > | chips |
| ui16 | monitoringDif |
| std::string | slowControl |
| SlowControl_t * | slowControlInfo |
| std::vector< SlowControl_t > | slowControls |
Definition at line 81 of file SteerDesc.hh.
| SteerDesc::SteerDesc | ( | ) |
Definition at line 18 of file SteerDesc.cpp.
00018 { 00019 chamberInfo = NULL; 00020 inputInfo = NULL; 00021 boardInfo = NULL; 00022 difInfo = NULL; 00023 chipInfo = NULL; 00024 slowControlInfo = NULL; 00025 lastChamberId = -1; 00026 lastDifId = -1; 00027 lastBoardId = -1; 00028 //monitoringDif = 0; 00029 } // SteerDesc
| SteerDesc::~SteerDesc | ( | ) |
| bool SteerDesc::setRun | ( | Run & | cible | ) |
Definition at line 62 of file SteerDesc.cpp.
Referenced by main().
00063 { 00064 if ( this->isValid()) 00065 { 00066 // set run 00067 // cout << "setRun with date[" << date << "]" << endl; 00068 FILE_LOG(logINFO) << "setRun with date[" << date << "]" << endl; 00069 00070 cible.setDate(date); 00071 cible.getDetector().setDescription(detectorDescription); 00072 cible.getDetector().setName(detectorName); 00073 return true; 00074 } 00075 else 00076 { 00077 return false; 00078 } 00079 }
| bool SteerDesc::isValid | ( | void | ) | const |
| string SteerDesc::getSlowControlPath | ( | ) |
Definition at line 85 of file SteerDesc.cpp.
Referenced by main().
00086 { 00087 return slowControl; 00088 }
| void SteerDesc::print | ( | void | ) | const |
Definition at line 93 of file SteerDesc.cpp.
00094 { 00095 //FILE_LOG(logDEBUG) << date << endl; 00096 //FILE_LOG(logDEBUG) << slowControl << endl; 00097 00098 00099 for ( int index = 0; index < inputFiles.size() ; index++) 00100 { 00101 //FILE_LOG(logDEBUG) << inputFiles[index].path << " , type: "; 00102 //FILE_LOG(logDEBUG) << inputFiles[index].type << endl; 00103 } 00104 //FILE_LOG(logDEBUG) << outputFile << endl;; 00105 //FILE_LOG(logDEBUG) << detectorName << endl;; 00106 00107 for ( int index = 0; index < chambers.size() ; index++) 00108 { 00109 //FILE_LOG(logDEBUG) << chambers[index].type << endl; 00110 //FILE_LOG(logDEBUG) << chambers[index].xPos << endl; 00111 //FILE_LOG(logDEBUG) << chambers[index].yPos << endl; 00112 //FILE_LOG(logDEBUG) << chambers[index].zPos << endl; 00113 //FILE_LOG(logDEBUG) << chambers[index].id << endl; 00114 } 00115 }
| size_t SteerDesc::fillDifByChamberId | ( | std::vector< DifInfo_t > & | result, | |
| i32 | chamberId | |||
| ) | const |
Definition at line 36 of file SteerDesc.cpp.
Referenced by Detector::build().
00037 { 00038 std::remove_copy_if(difs.begin() , difs.end() , std::back_inserter(result) , std::bind2nd(filterByChamberId<DifInfo_t>(), chamberId)); 00039 return result.size(); 00040 }
| size_t SteerDesc::fillBoardByChamberId | ( | std::vector< BoardInfo_t > & | result, | |
| i32 | chamberId | |||
| ) | const |
Definition at line 42 of file SteerDesc.cpp.
Referenced by Detector::build().
00043 { 00044 std::remove_copy_if(boards.begin() , boards.end() , std::back_inserter(result) , std::bind2nd(filterByChamberId<BoardInfo_t>(), chamberId)); 00045 return result.size(); 00046 }
| size_t SteerDesc::fillChipByChamberId | ( | std::vector< ChipInfo_t > & | result, | |
| i32 | chamberId | |||
| ) | const |
Definition at line 48 of file SteerDesc.cpp.
Referenced by Detector::build().
00049 { 00050 std::remove_copy_if(chips.begin() , chips.end() , std::back_inserter(result) , std::bind2nd(filterByChamberId<ChipInfo_t>(), chamberId)); 00051 return result.size(); 00052 }
| std::vector<input_info_t> SteerDesc::inputFiles |
Definition at line 99 of file SteerDesc.hh.
Referenced by main(), print(), and XMLTool::receiveEvent().
| std::string SteerDesc::outputFile |
| std::string SteerDesc::detectorName |
| std::string SteerDesc::date |
| std::string SteerDesc::detectorDescription |
Definition at line 106 of file SteerDesc.hh.
Referenced by XMLTool::receiveEvent(), and SteerDesc().
Definition at line 107 of file SteerDesc.hh.
Referenced by XMLTool::receiveEvent(), and SteerDesc().
Definition at line 108 of file SteerDesc.hh.
Referenced by XMLTool::receiveEvent(), and SteerDesc().
Definition at line 109 of file SteerDesc.hh.
Referenced by XMLTool::receiveEvent(), and SteerDesc().
| std::vector<chamber_info_t> SteerDesc::chambers |
Definition at line 110 of file SteerDesc.hh.
Referenced by Detector::build(), EventDisplay::Display(), main(), print(), and XMLTool::receiveEvent().
Definition at line 111 of file SteerDesc.hh.
Referenced by XMLTool::receiveEvent(), and SteerDesc().
| std::vector<BoardInfo_t> SteerDesc::boards |
Definition at line 112 of file SteerDesc.hh.
Referenced by fillBoardByChamberId(), and XMLTool::receiveEvent().
Definition at line 113 of file SteerDesc.hh.
Referenced by XMLTool::receiveEvent(), and SteerDesc().
| std::vector<DifInfo_t> SteerDesc::difs |
Definition at line 114 of file SteerDesc.hh.
Referenced by fillDifByChamberId(), and XMLTool::receiveEvent().
Definition at line 115 of file SteerDesc.hh.
Referenced by XMLTool::receiveEvent(), and SteerDesc().
| std::vector<ChipInfo_t> SteerDesc::chips |
Definition at line 116 of file SteerDesc.hh.
Referenced by fillChipByChamberId(), and XMLTool::receiveEvent().
Definition at line 118 of file SteerDesc.hh.
Referenced by Detector::build(), and XMLTool::receiveEvent().
| std::string SteerDesc::slowControl |
Definition at line 121 of file SteerDesc.hh.
Referenced by getSlowControlPath(), and XMLTool::receiveEvent().
Definition at line 122 of file SteerDesc.hh.
Referenced by XMLTool::receiveEvent(), and SteerDesc().
| std::vector<SlowControl_t> SteerDesc::slowControls |
Definition at line 123 of file SteerDesc.hh.
Referenced by SlowControlManager::build(), and XMLTool::receiveEvent().
1.4.7