|
ATLAS Offline Software
|
Go to the documentation of this file.
26 ISvcLocator* pSvcLocator) :
28 m_nEvent(0), m_nEventRandomTrigger(0), m_first(true),
31 m_caloCellContainerName(
"AllCalo"),
32 m_headerTreeName(
"HeaderTree"),
33 m_noiseTreeName(
"NoiseTree"),
34 m_rootfile_name(
"tbh6tree_noise.root"),
40 m_txtFileWithXY(
"xcryo_ytable.txt")
58 m_cell_id =
new std::vector<unsigned int>;
65 return StatusCode::FAILURE;
80 return StatusCode::SUCCESS;
92 return StatusCode::SUCCESS;
111 if (evType != 3)
return StatusCode::FAILURE;
124 return StatusCode::FAILURE;
140 unsigned int id =
cell->ID().get_identifier32().get_compact();
147 return StatusCode::SUCCESS;
155 std::ifstream xyFile;
159 if (!xyFile.is_open()) {
161 return StatusCode::FAILURE;
164 while ( getline(xyFile,
line,
'\n') ) {
166 std::istringstream buf(
line);
168 buf >>
run >>
x >>
y >>
e;
173 return StatusCode::FAILURE;
def retrieve(aClass, aKey=None)
std::string m_noiseTreeName
TBNoiseWrite(const std::string &name, ISvcLocator *pSvcLocator)
std::vector< unsigned int > * m_cell_id
static std::string find_file(const std::string &logical_file_name, const std::string &search_path, SearchType search_type=LocalSearch)
std::vector< float > * m_cell_energy
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
unsigned int getRunNum() const
int run(int argc, char *argv[])
std::string m_rootfile_name
std::string m_caloCellContainerName
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
int m_nEventRandomTrigger
::StatusCode StatusCode
StatusCode definition for legacy code.
std::string m_txtFileWithXY
Text file containing xCryo and yTable.
StatusCode getXcryoYtable(float &x, float &y, float &eBeam)
Get Xcryo and Ytable from a text file.
Container class for CaloCell.
Data object for each calorimeter readout cell.
std::string m_headerTreeName
float getBeamMomentum() const
virtual StatusCode initialize() override
virtual StatusCode execute() override
virtual StatusCode finalize() override