@@ -140,6 +140,7 @@ namespace mu2e {
140140 fhicl::Atom<art::InputTag> rctag{Name (" RecoCountTag" ), Comment (" RecoCount" ), art::InputTag ()};
141141 fhicl::Atom<art::InputTag> PBITag{Name (" PBITag" ), Comment (" Tag for ProtonBunchIntensity object" ) ,art::InputTag ()};
142142 fhicl::Atom<art::InputTag> PBTTag{Name (" PBTTag" ), Comment (" Tag for ProtonBunchTime object" ) ,art::InputTag ()};
143+ fhicl::Atom<art::InputTag> EWMTag{Name (" EWMTag" ), Comment (" Tag for EventWindowMarker object" ) ,art::InputTag ()};
143144 fhicl::Atom<bool > filltrig{Name (" FillTriggerInfo" ),false };
144145 fhicl::Atom<std::string> trigProcessName{Name (" TriggerProcessName" ), Comment (" Process name for Trigger" )};
145146 fhicl::Atom<std::string> trigpathsuffix{Name (" TriggerPathSuffix" ), " _trigger" }; // all trigger paths have this in the name
@@ -213,7 +214,8 @@ namespace mu2e {
213214 // general event info branch
214215 EventInfo _einfo;
215216 EventInfoMC _einfomc;
216- art::InputTag _recoCountTag, _PBITag, _PBTTag, _PBTMCTag;
217+ art::InputTag _recoCountTag, _PBITag, _PBTTag, _EWMTag, _PBTMCTag;
218+ art::Handle<mu2e::EventWindowMarker> _ewmh;
217219 // track control
218220 bool _hastrks;
219221 bool _hascrv;
@@ -347,6 +349,7 @@ namespace mu2e {
347349 _recoCountTag (conf().rctag()),
348350 _PBITag (conf().PBITag()),
349351 _PBTTag (conf().PBTTag()),
352+ _EWMTag (conf().EWMTag()),
350353 _PBTMCTag (conf().PBTMCTag()),
351354 _hastrks (conf().hastrks()),
352355 _hascrv (conf().hascrv()),
@@ -863,8 +866,8 @@ namespace mu2e {
863866 _crvRecoPulses, _crvSteps, _mcTrajectories,_crvcoincs, _crvcoincsmc,
864867 _crvsummary, _crvsummarymc, _crvcoincsmcplane, _crvPlaneY, _pph);
865868 if (_fillcrvpulses){
866- _crvHelper.FillCrvPulseInfoCollections (_crvRecoPulses, _crvDigiMCs,
867- _crvpulses, _crvpulsesmc);
869+ _crvHelper.FillCrvPulseInfoCollections (_crvRecoPulses, _crvDigiMCs, _ewmh,
870+ _crvpulses, _crvpulsesmc);
868871 }
869872 if (_fillcrvdigis){
870873 _crvHelper.FillCrvDigiInfoCollections (_crvRecoPulses, _crvDigis,
@@ -906,6 +909,10 @@ namespace mu2e {
906909 _einfo.pbterr = PBT .pbterr_ ;
907910 }
908911
912+ if (_EWMTag != " " ) {
913+ event.getByLabel (_EWMTag, _ewmh);
914+ }
915+
909916 if (_fillmc) {
910917 auto PBTMChandle = event.getValidHandle <mu2e::ProtonBunchTimeMC>(_PBTMCTag);
911918 auto PBTMC = *PBTMChandle;
0 commit comments