 |
ATLAS Offline Software
|
Go to the documentation of this file.
25 m_ntpath=std::string(
"/NTUPLES/FILE1/TIMEDIFF");
32 NTuple::Item<float> ntold, ntnew, ntoffset, ntcorr;
33 NTuple::Item<long> ntgain;
36 CHECK(
m_nt->addItem(
"PCDiffOld",ntold,-200,200));
37 CHECK(
m_nt->addItem(
"PCDiffNew",ntnew,-200,200));
39 CHECK(
m_nt->addItem(
"correction",ntcorr,0,200));
45 std::vector<std::map<HWIdentifier,float> > offsetMap;
46 if(
m_perFebMG) offsetMap.resize(2);
else offsetMap.resize(3);
47 std::ifstream rein(
m_fileName.c_str(),std::ifstream::in);
50 return StatusCode::SUCCESS;
55 unsigned gain,chidint;
58 rein >> std::hex>>chidint >>std::dec>>
offset;
78 if(
sc!=StatusCode::SUCCESS) {
86 for (;
it!=it_e;++
it) {
101 ntoffset=offsetMap[
gain][fid];
106 ntcorr=offsetMap[
gain][fid]-offsetMap[refGain][fid];
107 const float correction=offsetMap[
gain][fid]-offsetMap[refGain][fid];
111 ntcorr=offsetMap[
gain][fid];
124 if (
sc!=StatusCode::SUCCESS) {
126 return StatusCode::FAILURE;
130 std::cout<<
"2"<<std::endl;
134 return StatusCode::SUCCESS;
def retrieve(aClass, aKey=None)
LArPhysCaliTDiffAlg(const std::string &name, ISvcLocator *pSvcLocator)
Declaration of const iterator.
virtual ~LArPhysCaliTDiffAlg()
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
std::string m_outputContainer
ConstConditionsMapIterator end(unsigned int gain) const
end of all channels for this gain
std::string m_inputContainer
This class implements the ILArPhysCaliTdiff interface ` *.
::StatusCode StatusCode
StatusCode definition for legacy code.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
#define CHECK(...)
Evaluate an expression and check for errors.
HWIdentifier feb_Id(int barrel_ec, int pos_neg, int feedthrough, int slot) const
Create feb_Id from fields.
bool fillFromIdentifier(const HWIdentifier &id)
virtual StatusCode initialize()
Initialization done after creation or read back - derived classes may augment the functionality.
ConstConditionsMapIterator begin(unsigned int gain) const
get iterator for all channels for a gain
bool isHECchannel(const HWIdentifier id) const override final
std::string channel_name(const HWIdentifier id) const
Return a string corresponding to a feedthrough name given an identifier.
void set(const HWIdentifier &CellID, int gain, float tdiff)