|
ATLAS Offline Software
|
Go to the documentation of this file.
25 m_TRTCalDbTool(
"TRT_CalDbTool",this),
27 m_par_caloutputfile(
""),
29 m_detstore(
"DetectorStore",
name)
46 if (
sc.isFailure() ) {
53 return StatusCode::FAILURE;
57 return StatusCode::SUCCESS;
78 ATH_MSG_INFO(
" You must use either caliboutput.txt or erroroutput.txt as file name " );
84 ATH_MSG_INFO(
" Spot check of T0 in every 10'th straw_layer in phi_modules 0, 10, 20 and 30");
102 return StatusCode::SUCCESS;
111 outfile <<
"# Rtrelation" << std::endl ;
113 rtContainer->
getall( rtrelations ) ;
115 it != rtrelations.end(); ++
it) {
124 outfile <<
"# StrawT0" << std::endl ;
126 t0Container->
getall( packedstrawdata ) ;
127 float t0(0), t0err(0);
129 it != packedstrawdata.end(); ++
it) {
131 t0Container->
unpack(calid,*
it->second,
t0,t0err) ;
132 outfile << calid <<
" : " <<
t0 <<
" " << t0err << std::endl ;
135 return StatusCode::SUCCESS ;
146 outfile <<
"# RtErrors" << std::endl ;
159 outfile <<
"# RtSlopes" << std::endl ;
161 slopeContainer->
getall( slopes ) ;
163 it != slopes.end(); ++
it) {
172 return StatusCode::SUCCESS ;
JetConstituentVector::iterator iterator
virtual StatusCode writeCalibTextFile(std::ostream &) const
write calibration constants or errors to flat text file
bool m_setup
true at first event
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
std::vector< ALFA_RawData_p1 > t0
virtual StatusCode initialize(void) override
virtual StatusCode finalize(void) override
Algorithm to read TRT calibration constants from db and dump them to a text file.
TRTCondRead(const std::string &name, ISvcLocator *pSvcLocator)
constructor
const_id_iterator straw_layer_end(void) const
virtual StatusCode writeErrorTextFile(std::ostream &) const
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
~TRTCondRead(void)
destructor
virtual TRTCond::ExpandedIdentifier trtcondid(const Identifier &id, int level=TRTCond::ExpandedIdentifier::STRAW) const
create an TRTCond::ExpandedIdentifier from a TRTID identifier
int straw(const Identifier &id) const
static void writeToFile(std::ostream &os, const RtRelation &rt)
write method
(Non-const) Iterator class for DataVector/DataList.
::StatusCode StatusCode
StatusCode definition for legacy code.
int barrel_ec(const Identifier &id) const
Values of different levels (failure returns 0)
int straw_layer(const Identifier &id) const
void unpack(const ExpandedIdentifier &id, const StrawT0 &sd, float &t0, float &t0err) const
public method to unpack a StrawT0 object
int layer_or_wheel(const Identifier &id) const
std::string m_par_caloutputfile
ServiceHandle< StoreGateSvc > m_detstore
int phi_module(const Identifier &id) const
virtual StatusCode execute(void) override
ToolHandle< ITRT_CalDbTool > m_TRTCalDbTool
void getall(typename DaughterContainer::FlatContainer &entries) const
get a flat vector with all values.
RtRelationLayerContainer::FlatContainer FlatContainer
typedef
const_id_iterator straw_layer_begin(void) const
Iterators over full set of straw_layer ids. Straw_layer ids are sorted.
Identifier for TRT detector elements in the conditions code.
StrawT0ContainerTemplate< ExpandedIdentifier::LAYERWHEEL >::FlatContainer FlatContainer
typedefs
Identifier straw_id(int barrel_ec, int phi_module, int layer_or_wheel, int straw_layer, int straw) const
Three ways of getting id for a single straw:
const TRT_ID * m_trtid
trt id helper