14 ts_to_ns_( iConfig.getParameter<double>(
"timeSliceNs" ) ),
15 t_shift_( iConfig.getParameter<
int>(
"timeShift" ) )
24 if ( detid.channel() > 20 )
continue;
28 x_width = 2.0 * det->
params().at( 0 ),
30 y_width = 2.0 * det->
params().at( 1 );
35 if ( digi->getLeadingEdge()==0 and digi->getTrailingEdge()==0 ) {
continue; }
37 const int t = digi->getLeadingEdge();
39 const int time_slice = ( t-
t_shift_ ) / 1024;
42 if ( t!=0 && digi->getTrailingEdge()!=0 ) tot = ( (
int) digi->getTrailingEdge() ) - t;
48 digi->getHPTDCErrorFlags(),
49 digi->getMultipleHit() ) );
const DetGeomDesc * GetDetector(unsigned int) const
returns geometry of a detector performs necessary checks, returns NULL if fails input is raw ID ...
void push_back(const T &t)
Reconstructed hit in diamond detectors.
void build(const TotemRPGeometry *, const edm::DetSetVector< CTPPSDiamondDigi > &, edm::DetSetVector< CTPPSDiamondRecHit > &)
static std::string const input
reference find_or_insert(det_id_type id)
double ts_to_ns_
Conversion constant between HPTDC time slice and absolute time (in ns)
Geometrical description of a detector.
DDTranslation translation() const
iterator end()
Return the off-the-end iterator.
The manager class for TOTEM RP geometry.
std::vector< double > params() const
CTPPSDiamondRecHitProducerAlgorithm(const edm::ParameterSet &conf)
Detector ID class for CTPPS Timing Diamond detectors. Bits [19:31] : Assigend in CTPPSDetId Calss Bit...
iterator begin()
Return an iterator to the first DetSet.
collection_type::const_iterator const_iterator
collection_type::const_iterator const_iterator