|
ATLAS Offline Software
|
Go to the documentation of this file.
26 m_ntpath=std::string(
"/NTUPLES/FILE1/TIMEDIFF");
33 NTuple::Item<float> ntold, ntnew, ntoffset, ntcorr;
34 NTuple::Item<long> ntgain;
37 CHECK(
m_nt->addItem(
"PCDiffOld",ntold,-200,200));
38 CHECK(
m_nt->addItem(
"PCDiffNew",ntnew,-200,200));
40 CHECK(
m_nt->addItem(
"correction",ntcorr,0,200));
46 std::vector<std::map<HWIdentifier,float> > offsetMap;
47 if(
m_perFebMG) offsetMap.resize(2);
else offsetMap.resize(3);
48 std::ifstream rein(
m_fileName.c_str(),std::ifstream::in);
51 return StatusCode::SUCCESS;
56 unsigned gain,chidint;
59 rein >> std::hex>>chidint >>std::dec>>
offset;
79 if(
sc!=StatusCode::SUCCESS) {
87 for (;
it!=it_e;++
it) {
102 ntoffset=offsetMap[
gain][fid];
107 ntcorr=offsetMap[
gain][fid]-offsetMap[refGain][fid];
108 const float correction=offsetMap[
gain][fid]-offsetMap[refGain][fid];
112 ntcorr=offsetMap[
gain][fid];
125 if (
sc!=StatusCode::SUCCESS) {
127 return StatusCode::FAILURE;
131 std::cout<<
"2"<<std::endl;
135 return StatusCode::SUCCESS;
def retrieve(aClass, aKey=None)
LArPhysCaliTDiffAlg(const std::string &name, ISvcLocator *pSvcLocator)
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
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.
#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)