|
ATLAS Offline Software
|
Go to the documentation of this file.
45 outfit->Add(
s.c_str());
56 Double_t Amplitude[2000];
60 outfit->SetBranchAddress(
"channelId", &
channelId);
61 outfit->SetBranchAddress(
"FT", &
FT);
62 outfit->SetBranchAddress(
"slot", &slot);
63 outfit->SetBranchAddress(
"channel", &
channel);
64 outfit->SetBranchAddress(
"timeIndex", &timeIndex);
65 outfit->SetBranchAddress(
"Dt", &Dt);
66 outfit->SetBranchAddress(
"timeOffset", &timeOffset);
67 outfit->SetBranchAddress(
"flag", &
flag);
68 outfit->SetBranchAddress(
"gain", &
gain);
69 outfit->SetBranchAddress(
"Amplitude", Amplitude);
70 outfit->SetBranchAddress(
"Error",
Error);
71 outfit->SetBranchAddress(
"Triggers", Triggers);
81 Long64_t
nentries = outfit->GetEntries();
100 if ( timeIndex >= 2000 ) {
101 ATH_MSG_ERROR (
" Too many points specified vs the expected content of the ntuple ! " );
105 std::vector<double> wave(timeIndex);
106 std::vector<double> wave_err(timeIndex);
107 std::vector<int> wave_trig(timeIndex);
108 for (
int i = 0;
i < timeIndex;
i++ ) {
113 unsigned int skipped = 0;
114 unsigned int limit = timeIndex;
116 for (
unsigned int i = 0;
i <
limit;
i++ )
128 LArPhysWave newLArPhysWave(wave, wave_err, wave_trig, Dt, timeOffset, uflag);
136 return StatusCode::SUCCESS;
def retrieve(aClass, aKey=None)
void setPdata(const HWIdentifier id, const T &payload, unsigned int gain=0)
put payload in persistent data
int slot(const HWIdentifier id) const
Return the slot number of a hardware cell identifier: slot = [1,15] Slot-ID in top part of the crat...
Gaudi::Property< unsigned int > m_prefixPoints
make a PhysWave with the first m_prefixPoints as zeros
~LArPhysWaveFromStdNtuple()
Liquid Argon Physics Wave Container.
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
int channel(const HWIdentifier id) const
Return the channel number of a hardware cell identifier channel = [0,127] in all FEB.
Gaudi::Property< std::string > m_ntuple_name
ntuple name
::StatusCode StatusCode
StatusCode definition for legacy code.
Gaudi::Property< std::string > m_store_key
key of the PhysWave collection in Storegate
Gaudi::Property< std::string > m_groupingType
Grouping type. Default is Feedthrough.
Helper for the Liquid Argon Calorimeter cell identifiers.
LArPhysWaveFromStdNtuple(const std::string &name, ISvcLocator *pSvcLocator)
Gaudi::Property< bool > m_isSC
is SC ?
int feedthrough(const HWIdentifier id) const
Return the feedthrough of a hardware cell identifier : feedthrough = [0,31] Barrel - A/C side or H/...
Gaudi::Property< std::vector< std::string > > m_root_file_names
list of input ntuple file names
virtual StatusCode initialize()
Initialization done after creation or read back - derived classes may augment the functionality.
Error
The different types of error that can be flagged in the L1TopoRDO.
Gaudi::Property< unsigned int > m_skipPoints
the first m_skipPoints points of the waveform in the ntuple are skipped