|
ATLAS Offline Software
|
Go to the documentation of this file.
13 ISvcLocator* pSvcLocator) :
16 m_nEventRandomTrigger(0),
22 m_txtFileWithXY(
"xcryo_ytable.txt"),
33 return StatusCode::SUCCESS;
39 return StatusCode::SUCCESS;
50 sc =
evtStore()->retrieve(theEventInfo,
"TBEventInfo");
51 if (
sc.isFailure() ) {
53 (
"Cannot retrieve TBEventInfo from StoreGate" );
54 setFilterPassed(
false);
55 return StatusCode::SUCCESS;
66 float xFile, yFile, eFile;
102 setFilterPassed(
true);
103 return StatusCode::SUCCESS;
111 std::ifstream xyFile;
115 if (!xyFile.is_open()) {
117 return StatusCode::FAILURE;
121 while ( getline(xyFile,
line,
'\n') ) {
123 std::istringstream buf(
line);
125 buf >>
run >>
x >>
y >>
e;
127 if (
run ==
m_nRun && xyFile.good())
return StatusCode::SUCCESS;
130 return StatusCode::FAILURE;
virtual StatusCode finalize() override
virtual ~TBXCryYTableRead()
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[])
StatusCode getXcryoYtable(float &x, float &y, float &eBeam)
Get Xcryo and Ytable from a text file.
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
virtual StatusCode execute() override
float getCryoAngle() const
std::string m_txtFileWithXY
TableY.
const std::string & getBeamParticle() const
::StatusCode StatusCode
StatusCode definition for legacy code.
int getEventClock() const
TBXCryYTableRead(const std::string &name, ISvcLocator *pSvcLocator)
virtual StatusCode initialize() override
#define ATH_MSG_WARNING(x)
float getBeamMomentum() const
float m_xCryo
Beam momentum.
float m_beamMom
Run number.