|
ATLAS Offline Software
|
Go to the documentation of this file.
22 ISvcLocator* pSvcLocator) :
56 return StatusCode::SUCCESS;
63 const EventContext& ctx = Gaudi::Hive::currentContext();
66 unsigned int thisrun=ctx.eventID().run_number();
86 for (
const TBBPCRaw * bpcraw : *bpcrawCont) {
87 std::string
name = bpcraw->getDetectorName();
123 ATH_MSG_DEBUG (
"BPC " <<
name <<
" PosXR = " << xposR <<
" PosYR = " << yposR );
130 bpc->
setXPulse(1.*bpcraw->getADCHorizontal());
131 bpc->
setYPulse(1.*bpcraw->getADCVertical());
168 if (bpcraw->getTDCLeft()+bpcraw->getTDCRight() <
m_tdccutlr[
ind])
175 if (bpcraw->getTDCUp()+bpcraw->getTDCDown() <
m_tdccutud[
ind])
193 if (
sc.isFailure( ) ) {
198 if (
sc.isFailure( ) ) {
199 setFilterPassed(
false);
201 setFilterPassed(
true);
204 return StatusCode::SUCCESS;
212 return StatusCode::SUCCESS;
245 std::ifstream calibfile;
248 if(!calibfile.good()){
250 return StatusCode::FAILURE;
256 pos = calibfile.tellg();
261 pos = calibfile.tellg();
263 for(
int j=0;j<bpcnumber+1;j++) calibfile.ignore(5000,
'\n');
277 calibfile.seekg(
pos);
279 for(
int j=0;j<bpcnumber;j++)
304 return StatusCode::SUCCESS;
void setXPulse(signal_type theSignal)
std::vector< float > m_bpc_lroffset
std::vector< float > m_bpc_updown
raw data class for BPC measurement
static std::string find_file(const std::string &logical_file_name, const std::string &search_path, SearchType search_type=LocalSearch)
std::vector< float > m_tdccutmax
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
virtual StatusCode execute() override
std::string m_calib_filename
void setYPulse(signal_type theSignal)
std::string m_SGrecordkey
std::vector< float > m_bpc_calibY
void setXPulseOverflow(bool overflow=true)
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
std::vector< float > m_bpc_leftright
std::vector< float > m_rotation
std::vector< float > m_bpc_calibX
std::vector< float > m_bpc_udoffset
std::vector< float > m_tdccutud
::StatusCode StatusCode
StatusCode definition for legacy code.
virtual StatusCode finalize() override
std::vector< std::string > m_bpc_names
virtual StatusCode initialize() override
std::vector< float > m_tdccutmin
void setYPosOverflow(bool overflow=true)
value_type push_back(value_type pElem)
Add an element to the end of the collection.
void setXPos(signal_type theSignal)
#define ATH_MSG_WARNING(x)
TBBPCRec(const std::string &name, ISvcLocator *pSvcLocator)
std::vector< float > m_bpc_invY
std::vector< float > m_tdccutlr
void setYPulseOverflow(bool overflow=true)
std::vector< float > m_bpc_invX
size_type size() const noexcept
Returns the number of elements in the collection.
void setYPos(signal_type theSignal)
void setXPosOverflow(bool overflow=true)