22 , m_inputRawChKey(
"TileRawChannelCnt")
23 , m_inputMuRcvRawChKey(
"TileRawChannelCnt")
24 , m_inputMuRcvKey(
"TileMuRcvCnt")
25 , m_inputMBTS_TTL1Key(
"TileTTL1MBTS")
26 , m_inputTileTTL1Key(
"TileTTL1Cnt")
27 , m_inputL2Key(
"TileL2Cnt")
28 , m_inputDigitsFltKey(
"TileDigitsFlt")
29 , m_inputDigitsMuRcvKey(
"MuRcvDigitsCnt")
56 , m_ttl1MBTS_digits(0)
91 , m_h_ttl1MBTS_digits(0)
107 , m_ntupleFileName(
"/ntuples/file1")
108 , m_ntupleDirName(
"/TileRDOAnalysis/")
109 , m_ntupleTreeName(
"TileRDOAna")
110 ,
m_path(
"/TileRDOAnalysis/")
111 , m_thistSvc(
"THistSvc",
name)
203 m_h_rawAmp =
new TH1F(
"h_rawAmp",
"Raw amplitude", 100, -1200, 1200);
223 m_h_rawAmp_mu =
new TH1F(
"h_rawAmp_mu",
"MuRcv raw amplitude", 100, -1000, 11000);
239 m_h_muRcvID =
new TH1F(
"h_muRcvID",
"Muon receiver object ID", 100, 0, 500);
243 m_h_muRcv_dec =
new TH1F(
"h_muRcv_dec",
"Muon receiver object decision", 100, 0, 2);
279 m_h_L2val =
new TH1F(
"h_L2val",
"L2 data values", 100, 0, 100);
307 m_h_L2sumE =
new TH1F(
"h_L2sumE",
"L2 energy sum", 100, 0, 2.25e5);
315 m_h_muDigits =
new TH1F(
"h_muDigits",
"Tile muon receiver object digits", 100, 0, 150);
321 return StatusCode::SUCCESS;
381 for ( ; rawCont_itr != rawCont_end; ++rawCont_itr ) {
385 for ( ; raw_itr != raw_end; ++raw_itr ) {
388 const Identifier cellID((*raw_itr)->cell_ID());
391 const int fragID((*raw_itr)->frag_ID());
393 const unsigned long long adcID_int = adcID.
get_compact();
394 const unsigned long long pmtID_int = pmtID.
get_compact();
395 const unsigned long long cellID_int = cellID.
get_compact();
396 const unsigned long long ttID_int = ttID.
get_compact();
397 const unsigned long long mtID_int = mtID.
get_compact();
402 m_ttID->push_back(ttID_int);
403 m_mtID->push_back(mtID_int);
408 for (
int ix = 0; ix != (*raw_itr)->size(); ++ix) {
409 m_rawAmp->push_back((*raw_itr)->amplitude(ix));
411 m_rawQual->push_back((*raw_itr)->quality(ix));
414 for (
int jx = 0; jx != (*raw_itr)->sizeTime(); ++jx) {
415 m_rawTime->push_back((*raw_itr)->time(jx));
423 m_rawPed->push_back((*raw_itr)->pedestal());
435 for ( ; muRawCont_itr != muRawCont_end; ++muRawCont_itr ) {
439 for ( ; muRaw_itr != muRaw_end; ++muRaw_itr ) {
440 const Identifier adcID_mu((*muRaw_itr)->adc_ID());
441 const Identifier pmtID_mu((*muRaw_itr)->pmt_ID());
442 const Identifier cellID_mu((*muRaw_itr)->cell_ID());
443 const Identifier ttID_mu((*muRaw_itr)->tt_ID());
444 const Identifier mtID_mu((*muRaw_itr)->mt_ID());
445 const int fragID_mu((*muRaw_itr)->frag_ID());
447 const unsigned long long adcID_mu_int = adcID_mu.
get_compact();
448 const unsigned long long pmtID_mu_int = pmtID_mu.
get_compact();
449 const unsigned long long cellID_mu_int = cellID_mu.
get_compact();
450 const unsigned long long ttID_mu_int = ttID_mu.
get_compact();
451 const unsigned long long mtID_mu_int = mtID_mu.
get_compact();
462 for (
int lx = 0; lx != (*muRaw_itr)->size(); ++lx){
463 m_rawAmp_mu->push_back((*muRaw_itr)->amplitude(lx));
468 for (
int mx = 0;
mx != (*muRaw_itr)->sizeTime(); ++
mx) {
490 for ( ; muRcv_itr != muRcv_end; ++muRcv_itr ) {
491 const int muRcvID((*muRcv_itr)->GetID());
492 const std::vector<bool>& dec_vec = (*muRcv_itr)->GetDecision();
493 const std::vector<float>& thresh_vec = (*muRcv_itr)->GetThresholds();
494 const std::vector<float>& ene_vec = (*muRcv_itr)->GetEne();
495 const std::vector<float>& time_vec = (*muRcv_itr)->GetTime();
499 for (std::vector<bool>::size_type
i = 0;
i != dec_vec.size(); ++
i) {
503 for (std::vector<float>::size_type j = 0; j != thresh_vec.size(); ++j) {
507 for (std::vector<float>::size_type
k = 0;
k != ene_vec.size(); ++
k) {
511 for (std::vector<float>::size_type
l = 0;
l != time_vec.size(); ++
l) {
524 if (p_ttl1MBTS_cont.
isValid()) {
528 for ( ; ttl1MBTS_itr != ttl1MBTS_end; ++ttl1MBTS_itr ) {
529 const Identifier ttl1MBTS_ID((*ttl1MBTS_itr)->identify());
530 const std::vector<double> ttl1MBTS_digits((*ttl1MBTS_itr)->samples());
532 const unsigned long long ttl1MBTS_ID_int = ttl1MBTS_ID.
get_compact();
536 for (std::vector<double>::size_type iy = 0; iy != ttl1MBTS_digits.size(); ++iy) {
549 for ( ; ttl1_itr != ttl1_end; ++ttl1_itr ) {
550 const Identifier ttl1ID((*ttl1_itr)->identify());
551 const std::vector<double> ttl1_digits((*ttl1_itr)->samples());
553 const unsigned long long ttl1ID_int = ttl1ID.
get_compact();
557 for (std::vector<double>::size_type jy = 0; jy != ttl1_digits.size(); ++jy) {
568 std::vector<unsigned int> val_vec;
569 std::vector<float> eta_vec;
570 std::vector<float> enemu0_vec;
571 std::vector<float> enemu1_vec;
572 std::vector<float> enemu2_vec;
573 std::vector<unsigned int> qual_vec;
574 std::vector<float> sumE_vec;
581 for ( ; L2_itr != L2_end; ++L2_itr ) {
583 const int L2ID((*L2_itr)->identify());
585 for (
unsigned int ii = 0; ii != (*L2_itr)->Ndata(); ii++) {
586 val_vec.push_back((*L2_itr)->val(ii));
590 for (
unsigned int jj = 0; jj != (*L2_itr)->NMuons(); jj++) {
591 eta_vec.push_back((*L2_itr)->eta(jj));
592 enemu0_vec.push_back((*L2_itr)->enemu0(jj));
593 enemu1_vec.push_back((*L2_itr)->enemu1(jj));
594 enemu2_vec.push_back((*L2_itr)->enemu2(jj));
595 qual_vec.push_back((*L2_itr)->qual(jj));
604 const float l2phi((*L2_itr)->phi(0));
606 for (
unsigned int kk = 0;
kk != (*L2_itr)->NsumE();
kk++) {
607 sumE_vec.push_back((*L2_itr)->sumE(
kk));
641 for ( ; digiCont_itr != digiCont_end; ++digiCont_itr ) {
642 uint32_t fragSize((*digiCont_itr)->getFragSize());
643 uint32_t fragBCID((*digiCont_itr)->getFragBCID());
651 for ( ; digi_itr != digi_end; ++digi_itr ) {
652 const std::vector<double> digits((*digi_itr)->get_digits());
655 for (std::vector<double>::size_type iz = 0; iz != digits.size(); ++iz) {
668 for ( ; muDigiCont_itr != muDigiCont_end; ++muDigiCont_itr ) {
669 const uint32_t muFragSize((*muDigiCont_itr)->getFragSize());
670 const uint32_t muFragBCID((*muDigiCont_itr)->getFragBCID());
678 for ( ; muDigi_itr != muDigi_end; ++muDigi_itr ) {
679 const std::vector<double> muDigits((*muDigi_itr)->get_digits());
682 for (std::vector<double>::size_type jz = 0; jz != muDigits.size(); ++jz) {
693 return StatusCode::SUCCESS;
697 return StatusCode::SUCCESS;