@@ -48,7 +48,7 @@ struct skimmerOTS {
4848
4949 // CCDB options
5050 Configurable<std::string> ccdburl{" ccdb-url" , " http://alice-ccdb.cern.ch" , " url of the ccdb repository" };
51- Configurable<std::string> cfg_swt_names{" cfg_swt_names" , " fLMeeIMR,fLMeeHMR" , " comma-separated software trigger names" }; // !trigger names have to be pre-registered in dileptonTable.h for bit operation!
51+ Configurable<std::string> cfg_swt_names{" cfg_swt_names" , " fLMeeIMR,fLMeeHMR" , " comma-separated software trigger names" };
5252 o2::framework::Configurable<std::string> ccdbPathSoftwareTrigger{" ccdbPathSoftwareTrigger" , " EventFiltering/Zorro/" , " ccdb path for ZORRO objects" };
5353 Configurable<uint64_t > bcMarginForSoftwareTrigger{" bcMarginForSoftwareTrigger" , 100 , " Number of BCs of margin for software triggers" };
5454
@@ -58,10 +58,10 @@ struct skimmerOTS {
5858 Zorro zorro;
5959 std::vector<int > mTOIidx ;
6060 uint64_t mNinspectedTVX {0 };
61- std::vector<uint64_t > mScalers ;
62- std::vector<uint64_t > mSelections ;
63- std::vector<int > mTOICounters ;
64- std::vector<int > mATCounters ;
61+ // std::vector<uint64_t> mScalers;
62+ // std::vector<uint64_t> mSelections;
63+ // std::vector<int> mTOICounters;
64+ // std::vector<int> mATCounters;
6565
6666 HistogramRegistry registry{" registry" };
6767
@@ -87,28 +87,28 @@ struct skimmerOTS {
8787 hCollisionCounter->GetXaxis ()->SetBinLabel (idx + 2 , swt_names[idx].data ());
8888 }
8989
90- const int ntrg = static_cast <int >(o2::aod::pwgem::dilepton::swt::swtAliases::kNaliases );
90+ // const int ntrg = static_cast<int>(o2::aod::pwgem::dilepton::swt::swtAliases::kNaliases);
9191 mNinspectedTVX = 0 ;
92- mScalers .resize (ntrg);
93- mSelections .resize (ntrg);
94- mTOICounters .resize (ntrg);
95- mATCounters .resize (ntrg);
96- for (int idx = 0 ; idx < ntrg; idx++) {
97- mTOICounters [idx] = 0 ;
98- mATCounters [idx] = 0 ;
99- mScalers [idx] = 0 ;
100- mSelections [idx] = 0 ;
101- }
92+ // mScalers.resize(ntrg);
93+ // mSelections.resize(ntrg);
94+ // mTOICounters.resize(ntrg);
95+ // mATCounters.resize(ntrg);
96+ // for (int idx = 0; idx < ntrg; idx++) {
97+ // // mTOICounters[idx] = 0;
98+ // // mATCounters[idx] = 0;
99+ // // mScalers[idx] = 0;
100+ // // mSelections[idx] = 0;
101+ // }
102102 }
103103
104104 ~skimmerOTS ()
105105 {
106106 swt_names.clear ();
107107 swt_names.shrink_to_fit ();
108- mTOICounters .clear ();
109- mTOICounters .shrink_to_fit ();
110- mATCounters .clear ();
111- mATCounters .shrink_to_fit ();
108+ // mTOICounters.clear();
109+ // mTOICounters.shrink_to_fit();
110+ // mATCounters.clear();
111+ // mATCounters.shrink_to_fit();
112112 }
113113
114114 template <typename TBC>
@@ -128,10 +128,10 @@ struct skimmerOTS {
128128
129129 for (size_t idx = 0 ; idx < mTOIidx .size (); idx++) {
130130 auto swtname = swt_names[idx];
131- int emswtId = o2::aod::pwgem::dilepton::swt::aliasLabels.at (swtname);
132- mScalers [emswtId] = zorro.getScalers ()->GetBinContent (mTOIidx [idx] + 2 );
133- mSelections [emswtId] = zorro.getSelections ()->GetBinContent (mTOIidx [idx] + 2 );
134- LOGF (info, " Trigger of Interest : index = %d in Zorro, %d in EM, scaler = %llu, selection = %llu" , mTOIidx [idx], emswtId, mScalers [emswtId], mSelections [emswtId] );
131+ // int emswtId = o2::aod::pwgem::dilepton::swt::aliasLabels.at(swtname);
132+ uint64_t nScalers = zorro.getScalers ()->GetBinContent (mTOIidx [idx] + 2 );
133+ uint64_t nSelections = zorro.getSelections ()->GetBinContent (mTOIidx [idx] + 2 );
134+ LOGF (info, " Trigger of Interest : index = %d in Zorro, scaler = %llu, selection = %llu" , mTOIidx [idx], nScalers, nSelections );
135135 }
136136 mRunNumber = bc.runNumber ();
137137 }
0 commit comments