14 #include "TBenchmark.h" 38 namespace geo {
class Geometry; }
39 namespace rb {
class CellHit;
class Cluster; }
104 for (
unsigned i = 0;
i!= hitcol->size(); ++
i) {
114 bool timeshifted =
false;
116 for (
int j = 3;
j!=0; --
j) {
117 if (hit_ptr->
ADC(
j) < hit_ptr->
ADC(
j-1)) {
122 if (hit_ptr->
ADC(
j-1) - hit_ptr->
ADC(
j) >ADC_sigma)
123 ADC_sigma = hit_ptr->
ADC(
j-1) - hit_ptr->
ADC(
j);
128 if (
ph_MCS > 5*ADC_sigma ) {
129 if (ph_MCS<hit_ptr->ADC(3) - hit_ptr->
ADC(1))
131 if (ph_MCS<hit_ptr->ADC(2) - hit_ptr->
ADC(0))
135 else if (timeshifted)
void analyze(const art::Event &evt)
back track the reconstruction to the simulation
int32_t TDC() const
The time of the last baseline sample.
DEFINE_ART_MODULE(TestTMapFile)
bool IsNoise(const art::Ptr< rb::CellHit > &hit) const
Is this hit not associated with any particles?
T get(std::string const &key) const
Perform a "2 point" Hough transform on a collection of hits.
std::string fCellHitInput
T * make(ARGS...args) const
void reconfigure(const fhicl::ParameterSet &p)
int16_t ADC(uint32_t i) const
bool getByLabel(std::string const &label, std::string const &productInstanceName, Handle< PROD > &result) const
Encapsulate the geometry of one entire detector (near, far, ndos)