4 #ifndef FlashPurityCheckAna_H 5 #define FlashPurityCheckAna_H 1 10 #include "TLorentzVector.h" 97 #endif // FlashPurityCheckAna_H 119 fPerEventTree = tfs->make<TTree>(
"PerEventTree",
"PerEventTree");
162 std::vector<art::Ptr<recob::Track> > Tracks;
163 for(
unsigned int i=0; i < trackh->size(); ++i)
166 Tracks.push_back(track);
168 std::vector<trkf::BezierTrack*> BTracks;
170 for(
size_t i=0; i!=Tracks.size(); i++)
172 std::cout<<
"N Tracks : " << BTracks.size()<<std::endl;
179 std::vector<art::Ptr<simb::MCTruth> > mclist;
184 std::cout<<
"confused! MC list is zero length!"<<std::endl;
193 std::cout<<
"No of FMH entries : " << MatchFMH.size()<<std::endl;
194 std::vector<bool> Rejected(Tracks.size(),
false);
196 for(
size_t i=0; i!=Tracks.size(); ++i)
198 std::cout<<
"FMH at " << i <<
" is " << MatchFMH.at(i).size()<<std::endl;
199 for(
size_t j=0; j!=MatchFMH.at(i).size(); ++j)
201 if(!MatchFMH.at(i).at(j)->InBeam())
230 for(
size_t i=0; i!=BTracks.size(); ++i)
232 BTracks.at(i)->GetClosestApproach(Vertex, s,
d);
237 if(BTracks.at(i)->GetTrajectory().Length()>20)
247 if(BTracks.at(i)->GetTrajectory().Length()>20)
const simb::MCNeutrino & GetNeutrino() const
Int_t fNNonVtxTracksRejected
const simb::MCParticle & Nu() const
std::string fGenieGenModuleLabel
Int_t fNVtxTracksRejected
virtual ~FlashPurityCheckAna()
std::string fTrackModuleLabel
Int_t fNNonVtxTracksRejected20cm
#define DEFINE_ART_MODULE(klass)
std::string fOpFlashModuleLabel
T get(std::string const &key) const
std::string fMatchModuleLabel
EDAnalyzer(Table< Config > const &config)
double Vx(const int i=0) const
Utility object to perform functions of association.
bool getByLabel(std::string const &label, std::string const &productInstanceName, Handle< PROD > &result) const
double Vz(const int i=0) const
EventNumber_t event() const
FlashPurityCheckAna(const fhicl::ParameterSet &)
void fill_ptr_vector(std::vector< Ptr< T >> &ptrs, H const &h)
void analyze(const art::Event &)
double Vy(const int i=0) const
art framework interface to geometry description
Int_t fNVtxTracksRejected20cm