40 {
41
42 SG::WriteHandle<CSCSimHitCollection> csc("CSC_Hits");
43 SG::WriteHandle<MDTSimHitCollection> mdt("MDT_Hits");
44 SG::WriteHandle<TGCSimHitCollection> tgc("TGC_Hits");
45 SG::WriteHandle<RPCSimHitCollection> rpc("RPC_Hits");
47 SG::WriteHandle<MMSimHitCollection> mmhits("MM_Hits");
48 SG::WriteHandle<sTGCSimHitCollection> stgc("sTGC_Hits");
49
50 if (!csc.isValid() )
ATH_MSG_WARNING(
" HitWrapper could not access csc hit collection" );
51 else {
52
53
55
56 (*hit).setGlobalTime( fmod( (*hit).globalTime() ,
m_config.time ) );
57 }
58 }
59
60 if ( ! mdt.isValid() )
ATH_MSG_WARNING(
" HitWrapper could not access mdt hit collection" );
61 else {
62
63
65
66 (*hit).setGlobalTime( fmod( (*hit).globalTime() ,
m_config.time ) );
67 }
68 }
69
70 if (! rpc.isValid() )
ATH_MSG_WARNING(
" HitWrapper could not access rpc hit collection" );
71 else {
72
73
75
76 (*hit).setGlobalTime( fmod( (*hit).globalTime() ,
m_config.time ) );
77 }
78 }
79
80
81 if (! tgc.isValid() )
ATH_MSG_WARNING(
" HitWrapper could not access tgc hit collection" );
82 else {
83
84
86
87 (*hit).setGlobalTime( fmod( (*hit).globalTime() ,
m_config.time ) );
88 }
89 }
90
91
93 if (! mmhits.isValid() )
ATH_MSG_WARNING(
" HitWrapper could not access Micromegas hit collection" );
94 else {
95
96
98
99 (*hit).setGlobalTime( fmod( (*hit).globalTime() ,
m_config.time ) );
100 }
101 }
102
103 if (! stgc.isValid() )
ATH_MSG_WARNING(
" HitWrapper could not access sTGC hit collection" );
104 else {
105
106
108
109 (*hit).setGlobalTime( fmod( (*hit).globalTime() ,
m_config.time ) );
110 }
111 }
112
113
114 SG::WriteHandle<TRTUncompressedHitCollection> trt("TRTUncompressedHits");
115 SG::WriteHandle<SiHitCollection> pix("PixelHits");
116 SG::WriteHandle<SiHitCollection> sct("SCT_Hits");
117
118 if (! trt.isValid() )
ATH_MSG_WARNING(
" HitWrapper could not access trt hit collection" );
119 else {
120
122
123 (*hit).SetGlobalTime( std::fmod( (*hit).GetGlobalTime() ,
m_config.time ) );
124 }
125 }
126
127 if (! pix.isValid())
ATH_MSG_WARNING(
" HitWrapper could not access pix hit collection" );
128 else {
129
131
132 (*hit).setMeanTime( fmod( (*hit).meanTime() ,
m_config.time ) );
133 }
134 }
135
136 if (! sct.isValid() )
ATH_MSG_WARNING(
" HitWrapper could not access sct hit collection" );
137 else {
138
140
141 (*hit).setMeanTime( fmod( (*hit).meanTime() ,
m_config.time ) );
142 }
143 }
144
145 }
#define ATH_MSG_WARNING(x)