|
ATLAS Offline Software
|
Go to the documentation of this file.
16 m_readFileforXcryo(true),
22 m_beam_intercept_x(0),
23 m_beam_intercept_y(0),
43 return StatusCode::SUCCESS;
62 return StatusCode::FAILURE;
96 return StatusCode::SUCCESS;
101 return StatusCode::SUCCESS;
106 for (
unsigned i=0;
i<extension.size();
i++) {
107 const char&
ch=extension[
i];
108 if (
ch==
'=' ||
ch==
':' ||
ch==
'/')
124 std::string txtFileWithXY =
"xcryo_ytable.txt";
127 std::ifstream xyFile;
131 if (!xyFile.is_open()) {
132 ATH_MSG_ERROR (
"File " << txtFileWithXY <<
" fail to open in $DATAPATH");
133 return StatusCode::FAILURE;
135 while ( getline(xyFile,
line,
'\n') ) {
137 std::istringstream buf(
line);
139 buf >>
run >>
x >>
y >>
e;
141 if (
run==
m_nRun && xyFile.good())
return StatusCode::SUCCESS;
143 return StatusCode::FAILURE;
def retrieve(aClass, aKey=None)
bool m_readFileforXcryo
Get Xcryo and Ytable from a text file.
static std::string find_file(const std::string &logical_file_name, const std::string &search_path, SearchType search_type=LocalSearch)
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
unsigned int getRunNum() const
int run(int argc, char *argv[])
virtual StatusCode CBNT_finalize() override
#define ATH_MSG_VERBOSE(x)
virtual StatusCode CBNT_execute() override
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
StatusCode getXcryoYtable(float &x, float &y, float &eBeam)
::StatusCode StatusCode
StatusCode definition for legacy code.
void addBranch(const std::string &branchname, T &obj, const std::string &leaflist)
virtual StatusCode CBNT_initialize() override
CBNTAA_TBTrack(const std::string &name, ISvcLocator *pSvcLocator)
float getBeamMomentum() const
std::string add_name(const char *base, const std::string &extension)