60 produces<std::vector<geo::OfflineChan> >();
93 fTreeIn = (TTree*)fin->Get(
"makelib/tree");
102 std::unique_ptr<std::vector<geo::OfflineChan> > chancol(
new std::vector<geo::OfflineChan>);
111 assert(slices->size() == 2);
116 if(vtxs->size() == 1){
128 evt.
put(std::move(chancol));
131 const int trIdx = evt.
event()-1;
137 const int plane0 = geom->
NPlanes()/2-128;
146 const int recoVtxPlane = plane-plane0;
147 const int recoVtxCell = cell-cell0;
148 const int recoVtxCellOtherView = cellOther-cell0;
153 const int planeDelta = h.
Plane()-recoVtxPlane;
154 const int cellDelta = ((
abs(planeDelta)%2) ?
155 h.
Cell()-recoVtxCellOtherView :
156 h.
Cell()-recoVtxCell);
164 const int cellDelta = ((
abs(planeDelta)%2) ?
167 const int cellDeltaOther = ((
abs(planeDelta)%2) ?
Simple representation of event for LEM use.
static double fgChargePower
virtual void reconfigure(const fhicl::ParameterSet &pset)
void VertexToPlaneAndCell(const TVector3 vtx, const rb::Cluster &slice, int &plane, int &cell, int &cellOtherView, bool reverse)
virtual void respondToOpenInputFile(const art::FileBlock &fb)
unsigned int Ncells() const
Number of cells in this plane.
std::string const & fileName() const
A collection of associated CellHits.
const PlaneGeo * Plane(unsigned int i) const
DEFINE_ART_MODULE(TestTMapFile)
static void InitFromTree(TTree *tr)
ProductID put(std::unique_ptr< PROD > &&product)
void DefaultVertex(const rb::Cluster &slice, int &plane, int &cell, int &cellOtherView, bool reverse)
static void InitToTree(TTree *tr)
T get(std::string const &key) const
static EventSummary FromTree(TTree *tr, int evtIdx, bool enrich)
EventNumber_t event() const
void ToTree(TTree *tr) const
Vertex location in position and time.
T * make(ARGS...args) const
bool getByLabel(std::string const &label, std::string const &productInstanceName, Handle< PROD > &result) const
static double fgDecayRate
assert(nhit_max >=nhit_nbins)
AlignLibToVtx(const fhicl::ParameterSet &pset)
Rewrite a library file with events aligned according to vertex.
virtual void produce(art::Event &evt)
unsigned int NPlanes() const
Simple representation of event for LEM use.
Compressed hit info, basic component of LEM events.
Simple object representing a (plane, cell) pair.
Encapsulate the geometry of one entire detector (near, far, ndos)