File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
DataFormats/simulation/src Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -151,6 +151,19 @@ bool DigitizationContext::initSimKinematicsChains(std::vector<TChain*>& simkinem
151151 // add signal files
152152 simkinematicschains.back ()->AddFile (o2::base::NameConf::getMCKinematicsFileName (mSimPrefixes [source].data ()).c_str ());
153153 }
154+
155+ // we add QED, if used in the digitization context
156+ if (mEventRecordsWithQED .size () > 0 ) {
157+ if (mSimPrefixes .size () >= QEDSOURCEID) {
158+ LOG (fatal) << " Too many signal chains; crashes with QED source ID" ;
159+ }
160+
161+ // it might be better to use an unordered_map for the simchains but this requires interface changes
162+ simkinematicschains.resize (QEDSOURCEID + 1 , nullptr );
163+ simkinematicschains[QEDSOURCEID] = new TChain (" o2sim" );
164+ simkinematicschains[QEDSOURCEID]->AddFile (o2::base::DetectorNameConf::getMCKinematicsFileName (mQEDSimPrefix ).c_str ());
165+ }
166+
154167 return true ;
155168}
156169
You can’t perform that action at this time.
0 commit comments