19 , m_inputRawChannelKey(
"LArRawChannels")
20 , m_inputTTL1HADKey(
"LArTTL1HAD")
21 , m_inputTTL1EMKey(
"LArTTL1EM")
22 , m_inputDigitKey(
"LArDigitContainer_MC_Thinned")
56 , m_ntupleFileName(
"/ntuples/file1")
57 , m_ntupleDirName(
"/LArRDOAnalysis/")
58 , m_ntupleTreeName(
"LArRDOAna")
59 ,
m_path(
"/LArRDOAnalysis/")
60 , m_thistSvc(
"THistSvc",
name)
117 m_h_time =
new TH1F(
"h_time",
"LAr time", 100, -1e7, 1e7);
121 m_h_qual =
new TH1F(
"h_qual",
"LAr quality", 100, 0, 70000);
125 m_h_prov =
new TH1F(
"h_prov",
"LAr provenance", 100, 0, 9000);
133 m_h_hadOnID =
new TH1F(
"h_hadOnID",
"Had LAr TTL1 online ID", 100, 0, 3e19);
137 m_h_hadOffID =
new TH1F(
"h_hadOffID",
"Had LAr TTL1 offline ID", 100, 0, 3e19);
141 m_h_hadSamples =
new TH1F(
"h_hadSamples",
"Had LAr TTL1 sample values", 100, -15000, 35000);
145 m_h_emOnID =
new TH1F(
"h_emOnID",
"EM LAr TTL1 online ID", 100, 0, 3e19);
149 m_h_emOffID =
new TH1F(
"h_emOffID",
"EM LAr TTL1 offline ID", 100, 0, 3e19);
153 m_h_emSamples =
new TH1F(
"h_emSamples",
"EM LAr TTL1 sample values", 100, -1e5, 3.5e5);
169 return StatusCode::SUCCESS;
197 LArRawChannelContainer::const_iterator lar_itr(p_larRawCont->begin());
198 const LArRawChannelContainer::const_iterator lar_end(p_larRawCont->end());
199 for ( ; lar_itr != lar_end; ++lar_itr ) {
201 const int rawEnergy(lar_itr->energy());
202 const int rawTime(lar_itr->time());
203 const uint16_t rawQual(lar_itr->quality());
204 const uint16_t rawProv(lar_itr->provenance());
207 const unsigned long long larID_int = larID.
get_compact();
208 const int larGain_int = (
int)larGain;
211 m_time->push_back(rawTime);
212 m_qual->push_back(rawQual);
213 m_prov->push_back(rawProv);
214 m_gain->push_back(larGain_int);
228 if (p_larTTL1Cont_had.
isValid()) {
231 for ( ; ttl1Had_itr != ttl1Had_end; ++ttl1Had_itr ) {
232 const HWIdentifier& hadOnID((*ttl1Had_itr)->ttOnlineID());
233 const Identifier& hadOffID((*ttl1Had_itr)->ttOfflineID());
234 const std::vector<float>& hadSamples = (*ttl1Had_itr)->samples();
236 const unsigned long long hadOnID_int = hadOnID.
get_compact();
237 const unsigned long long hadOffID_int = hadOffID.
get_compact();
240 for (std::vector<float>::size_type
i = 0;
i != hadSamples.size(); ++
i) {
252 if (p_larTTL1Cont_em.
isValid()) {
255 for ( ; ttl1EM_itr != ttl1EM_end; ++ttl1EM_itr ) {
256 const HWIdentifier& emOnID((*ttl1EM_itr)->ttOnlineID());
257 const Identifier& emOffID((*ttl1EM_itr)->ttOfflineID());
258 const std::vector<float>& emSamples((*ttl1EM_itr)->samples());
260 const unsigned long long emOnID_int = emOnID.
get_compact();
261 const unsigned long long emOffID_int = emOffID.
get_compact();
264 for (std::vector<float>::size_type j = 0; j != emSamples.size(); ++j) {
280 for ( ; digi_itr != digi_end; ++digi_itr ) {
283 const std::vector<short>& digiSamples = (*digi_itr)->samples();
285 const unsigned long long digiID_int = digiID.
get_compact();
286 const int digiGain_int = (
int)digiGain;
289 for (std::vector<short>::size_type
k = 0;
k != digiSamples.size(); ++
k) {
303 return StatusCode::SUCCESS;
307 return StatusCode::SUCCESS;