4 #ifndef TrackTimeAssocAna_H 5 #define TrackTimeAssocAna_H 1 10 #include "TLorentzVector.h" 111 #endif // TrackTimeAssocAna_H 127 fMatchTree = tfs->make<TTree>(
"MatchTree",
"MatchTree");
184 for(
unsigned int i = 0; i < MatchHandle->size(); ++i){
195 for(
size_t iMatch = 0; iMatch!=MatchVec.
size(); ++iMatch)
201 fChi2 = MatchVec.
at(iMatch)->Chi2();
203 std::vector<art::Ptr<recob::Track> > Tracks = TracksFMH.at(iMatch);
204 std::vector<art::Ptr<recob::OpFlash> > Flashes = FlashesFMH.at(iMatch);
208 mf::LogError(
"TrackTimeAssocAna")<<
"ERROR! Match to " << Tracks.size()<<
" tracks - should be one!";
212 if(Flashes.size()!=1)
214 mf::LogError(
"TrackTimeAssocAna")<<
"ERROR! Match to " << Flashes.size()<<
" flashes - should be one!";
229 fFUCenter = Flashes.at(0)->WireCenters()[0];
230 fFUWidth = Flashes.at(0)->WireWidths()[0];
231 fFVCenter = Flashes.at(0)->WireCenters()[1];
232 fFVWidth = Flashes.at(0)->WireWidths()[1];
233 fFWCenter = Flashes.at(0)->WireCenters()[2];
234 fFWWidth = Flashes.at(0)->WireWidths()[2];
239 fTEnd1X = Tracks.at(0)->Vertex()[0];
240 fTEnd1Y = Tracks.at(0)->Vertex()[1];
241 fTEnd1Z = Tracks.at(0)->Vertex()[2];
242 fTEnd2X = Tracks.at(0)->End()[0];
243 fTEnd2Y = Tracks.at(0)->End()[1];
244 fTEnd2Z = Tracks.at(0)->End()[2];
TrackTimeAssocAna(const fhicl::ParameterSet &)
MaybeLogger_< ELseverityLevel::ELsev_error, false > LogError
std::string fMatchModuleLabel
#define DEFINE_ART_MODULE(klass)
void push_back(Ptr< U > const &p)
T get(std::string const &key) const
virtual ~TrackTimeAssocAna()
reference at(size_type n)
EDAnalyzer(Table< Config > const &config)
Provides recob::Track data product.
Utility object to perform functions of association.
void analyze(const art::Event &)
bool getByLabel(std::string const &label, std::string const &productInstanceName, Handle< PROD > &result) const
EventNumber_t event() const