14 #include "NovaDAQConventions/DAQConventions.h" 19 #include "Utilities/AssociationUtil.h" 63 produces< rb::FilterList<rb::Cluster> >();
64 produces< std::vector<PreselObj> >();
65 produces< art::Assns<PreselObj, rb::Cluster> >();
87 std::unique_ptr< std::vector<presel::PreselObj> > preselcol(
new std::vector<presel::PreselObj>);
99 for(
uint sliceIdx = 0; sliceIdx < slices->size(); ++sliceIdx){
110 if(
isND && fmpVertex.isValid()){
111 std::vector< art::Ptr<rb::Vertex> > vertexes = fmpVertex.at(sliceIdx);
114 if(vertexes.size()) {
115 double vertX = vertexes[0]->GetX();
116 double vertY = vertexes[0]->GetY();
117 double vertZ = vertexes[0]->GetZ();
119 sel = vertX < 179 && vertY < 179 && vertX > -179 && vertY > -179 && vertZ > 21;
124 std::cout <<
"\n*******************************************************" 125 <<
"\n Not ND but sel is false, this shouldn't happen!!! " 126 <<
"\n*******************************************************" 131 filtcol->Add(slices, sliceIdx);
134 preselcol->push_back(preselobj);
140 evt.
put(std::move(filtcol));
141 evt.
put(std::move(preselcol));
142 evt.
put(std::move(preselinfo));
A simple list of products that have been marked "filtered out".
back track the reconstruction to the simulation
static bool CreateAssn(art::EDProducer const &prod, art::Event &evt, std::vector< T > &a, art::Ptr< U > b, art::Assns< T, U > &assn, size_t indx=UINT_MAX, std::string const &instance=std::string())
Create a 1 to 1 association between a new product and one already in the event.
virtual void produce(art::Event &evt)
A collection of associated CellHits.
DEFINE_ART_MODULE(TestTMapFile)
ProductID put(std::unique_ptr< PROD > &&product)
void SetPassPresel(bool pass)
holds pass/fail output of presel
novadaq::cnv::DetId DetId() const
Prefer ds::DetectorService::DetId() instead.
Near Detector in the NuMI cavern.
Vertex location in position and time.
void beginRun(art::Run &run)
bool getByLabel(std::string const &label, std::string const &productInstanceName, Handle< PROD > &result) const
bool IsNoise() const
Is the noise flag set?
Object collecting Preselection variables.
Encapsulate the geometry of one entire detector (near, far, ndos)
RockPresel(fhicl::ParameterSet const &pset)