|
ATLAS Offline Software
|
Go to the documentation of this file.
40 return StatusCode::SUCCESS ;
52 TChain* outfit =
new TChain(
"outfit");
54 outfit->Add(
s.c_str());
62 ATH_MSG_ERROR (
" Too many points specified vs the expected content of the ntuple ! " );
63 return StatusCode::FAILURE;
74 outfit->SetBranchAddress(
"Channel", &
Channel);
75 outfit->SetBranchAddress(
"Slot", &Slot);
76 outfit->SetBranchAddress(
"FT", &
FT);
77 if(outfit->FindBranch(
"BarAC")){
78 ATH_MSG_INFO (
"'Side' is prefered branch name to 'BarAC'." );
79 outfit->SetBranchAddress(
"BarAC", &
Side);
81 outfit->SetBranchAddress(
"Side", &
Side);
83 if(!outfit->FindBranch(
"BarEC")){
84 ATH_MSG_INFO (
"'BarEC' branch not found. Assuming barrel data." );
87 outfit->SetBranchAddress(
"BarEC", &BarEC);
89 outfit->SetBranchAddress(
"Gain", &
gain);
90 outfit->SetBranchAddress(
"tphys", tphys);
98 Long64_t
nentries = outfit->GetEntries();
108 unsigned int skipped = 0;
111 for (
unsigned int i = 0;
i <
limit;
i++ )
128 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
Identifier32::value_type Channel
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
std::string m_store_key
key of the PhysWave collection in Storegate
std::vector< std::string > m_root_file_names
list of input ntuple file names
Liquid Argon Physics Wave Container.
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
unsigned int m_NPoints
number of points of the waveform in the ntuple
::StatusCode StatusCode
StatusCode definition for legacy code.
HWIdentifier channel_Id(int barrel_ec, int pos_neg, int feedthrough, int slot, int channel) const
create channel identifier from fields
unsigned int m_flag
flag for the PhysWave container
double m_deltaT
time step of the the waveform in the ntuple
virtual StatusCode initialize()
Initialization done after creation or read back - derived classes may augment the functionality.
unsigned int m_prefixPoints
make a PhysWave with the first m_prefixPoints as zeros
std::string m_groupingType
Grouping type. Default is Feedthrough.
unsigned int m_skipPoints
the first m_skipPoints points of the waveform in the ntuple are skipped
StatusCode initialize()
implements IAlgorithm::initialize()
LArPhysWaveFromTuple(const std::string &name, ISvcLocator *pSvcLocator)