Namespaces | Classes | Typedefs | Functions | Variables
novaddt Namespace Reference

Namespaces

 calib
 
 smt
 
 utils
 

Classes

class  ActiveDCMFilter
 
class  ActivityTrigger
 
class  ActivityTriggerAna
 
struct  ADC
 
struct  Boundary
 
class  Calibration
 
struct  Cell
 
class  ChannelMapMaker
 
class  ChannelMapService
 
class  Cluster
 
class  ClusterAna
 
class  ClusterConvert
 
class  Clusterer
 
struct  CompareDAQHit
 
struct  CompareDAQHit< ADC >
 
struct  CompareDAQHit< Cell >
 
struct  CompareDAQHit< DCM >
 
struct  CompareDAQHit< Plane >
 
struct  CompareDAQHit< TDC >
 
struct  CompareDAQHit< View >
 
struct  CompareHit
 
class  ContainedSlice
 
class  DAQHeaderAna
 
class  DAQHit
 
class  DBSlicer
 
struct  DCM
 
class  DCMSlice
 
class  DDTDemo
 
class  DDTEvd
 
class  DDTRC
 
class  DDTRCService
 
class  DDTStreamer
 
class  DDTTrackMerge
 
class  DropoutDCMFilter
 
class  Evaluation
 
class  EventHeader
 
class  EventPrescale
 
class  EvTimeAna
 
class  FastMMTrigger
 
class  FEBFlashFilter
 
class  FEBOverflowTrigger
 
class  GHLTest
 
class  GroupedHitList
 
class  HighADCFilter
 
class  HighETrigger
 
class  HighSortByTDC
 
struct  Hit
 
struct  hitcomp
 
class  HitsAna
 
class  HitSet
 
class  HitSubtract
 
class  HorizontalMuonAna
 
class  HorizontalMuonTrigger
 
class  HotMapMaker
 
class  HoughPeak
 
class  HoughPoint
 
class  HoughTracker
 
class  HoughTrackMaker
 
class  Lockable
 
class  MapSource
 
class  Merge2DTracks
 
class  MessageBuffer
 
class  MichelEfinder
 
class  MichelETrigger
 
class  MilliBlockChecking
 
class  MoonShadow
 
class  Multiplet
 
class  NNFastMMTrigger
 
class  NoiseHitFinder
 
class  NoiseMapAna
 
class  NovaDDTRawInputDriver
 
class  NovaDDTTrigger
 
class  NuESelect
 
class  NuMuTrigger
 
class  OnlineUnpack
 
struct  OrderedHitList
 
struct  Plane
 
class  RateMonitor
 
class  RemoveNoise
 
class  RemoveOneDSlices
 
class  RemoveSpatialNoise
 
class  Responder
 
class  RestrictHitsByPlane
 
class  RunInfoInterface
 
class  RunInfoStatic
 
class  RunWatcher
 
class  SendTriggerSignal
 
class  SingletonRejection
 
class  SingletonRejectionAna
 
class  SlicePrescale
 
class  Slicer3D
 
class  SliceSelector
 
class  SlowMMTrigger
 
class  SlowMonopoleTrigger
 
class  sm_cleaner
 
class  SNAna
 
class  SNMessageDump
 
class  SNMessageInterface
 
class  SNMessageService
 
class  SortByDCM
 
class  SortByPlane
 
class  SortByTDC
 
class  SortByView
 
class  SpaceSlice
 
class  StaticMapService
 
class  SupernovaTrigger
 
struct  TDC
 
class  TDSlice
 
class  TimeDCMSlice
 
class  TimeSlice
 
class  Track
 
class  Track3D
 
class  TrackFit
 
class  TriCellTrigger
 
class  TriCellTriggerAna
 
class  TriggerDecision
 
struct  TriggerMask
 
struct  UnpackedEvent
 
class  UpMuAna
 
class  UpMuTestTrigger
 
class  UpMuTrigger
 
struct  View
 
class  WaveformProcessor
 

Typedefs

typedef std::vector< BoundaryBoundaryList
 
typedef std::vector< DAQHitHitList
 
typedef art::Source< NovaDDTRawInputDriverNovaDDTRawInputSource
 
typedef tbb::blocked_range< art::PtrVector< HitList >::const_iterator > br_t
 

Functions

bool operator== (TDC lhs, TDC rhs)
 
bool operator< (TDC lhs, TDC rhs)
 
bool operator> (TDC lhs, TDC rhs)
 
TDC::value_type operator- (TDC lhs, TDC rhs)
 
TDC::value_type operator+ (TDC lhs, TDC rhs)
 
TDC::value_type operator* (TDC lhs, TDC rhs)
 
TDC::value_type operator+= (TDC lhs, TDC rhs)
 
bool operator== (ADC lhs, ADC rhs)
 
bool operator< (ADC lhs, ADC rhs)
 
bool operator> (ADC lhs, ADC rhs)
 
ADC::value_type operator- (ADC lhs, ADC rhs)
 
ADC::value_type operator+ (ADC lhs, ADC rhs)
 
bool operator== (Plane lhs, Plane rhs)
 
bool operator< (Plane lhs, Plane rhs)
 
bool operator> (Plane lhs, Plane rhs)
 
Plane::value_type operator- (Plane lhs, Plane rhs)
 
Plane::value_type operator+ (Plane lhs, Plane rhs)
 
Plane::value_type operator* (Plane lhs, Plane rhs)
 
Plane::value_type operator+= (Plane lhs, Plane rhs)
 
bool operator== (Cell lhs, Cell rhs)
 
bool operator< (Cell lhs, Cell rhs)
 
bool operator> (Cell lhs, Cell rhs)
 
Cell::value_type operator- (Cell lhs, Cell rhs)
 
Cell::value_type operator+ (Cell lhs, Cell rhs)
 
Cell::value_type operator* (Cell lhs, Cell rhs)
 
Cell::value_type operator+= (Cell lhs, Cell rhs)
 
bool operator== (View lhs, View rhs)
 
bool operator< (View lhs, View rhs)
 
bool operator> (View lhs, View rhs)
 
bool operator!= (View lhs, View rhs)
 
bool operator== (DCM lhs, DCM rhs)
 
bool operator< (DCM lhs, DCM rhs)
 
bool operator> (DCM lhs, DCM rhs)
 
 HoughPeak ()
 
 HoughPeak (const float rho, const float theta, const float sigmarho, const float sigmatheta, const int significance)
 
 HoughPeak (const HoughPeak &hp)
 
const float Rho () const
 
const float Theta () const
 
const float SigmaRho () const
 
const float SigmaTheta () const
 
const int Significance () const
 
void SetRho (const float &r)
 
void SetTheta (const float &t)
 
void SetSigmaRho (const float &sr)
 
void SetSigmaTheta (const float &st)
 
void SetSignificance (const int &sig)
 
uint8_t ADCShapeFit (int16_t adc1, int16_t adc2, int16_t adc3, double riseTime, double fallTime, bool &goodTime)
 
TDC OffsetToTDC (uint32_t const &t0, uint64_t const &high_time, uint8_t const &offset)
 
double GetExpectations (double t0, double riseTime, double fallTime, const int16_t *obs, double *exps)
 Helper function for ADCShapeFit inner loop. More...
 
unsigned int bitMask (unsigned int n)
 
unsigned int nbitMask (unsigned int n)
 
int highestBit (unsigned int input)
 
unsigned int NBitInt2Float (float _input, int inputBits, int outputBitsMantisa, int outputBitsExpo)
 
bool operator== (TriggerDecision const &lhs, TriggerDecision const &rhs)
 
bool is_subset_of (TriggerDecision const &subset, TriggerDecision const &set)
 
template<class response_t >
boost::shared_ptr< response_t > Response (int code=0, std::string message="Success")
 
 DEFINE_ART_SERVICE_INTERFACE_IMPL (DDTRCService, RunInfoInterface)
 
 DEFINE_ART_SERVICE_INTERFACE_IMPL (RunInfoStatic, RunInfoInterface)
 
bool same_track (const Track *lhs, const Track *rhs)
 
 DEFINE_ART_SERVICE_INTERFACE_IMPL (SNMessageService, SNMessageInterface)
 

Variables

unsigned int nTableLoads = 0
 
static const int kADC3Max = 512
 
static const int kADC3Min = 256
 
static const int kADC1Min = 180
 
static const int kADC1RelMax = 50
 
static const int kADC2Min = 180
 
static const int kADC2Max = 512
 
static const unsigned int kNumTableEntries = 21545472
 
const unsigned int kNumFineTimingADCPoints = 4
 
const double kZeroOffsetSamples = -1
 
const double kSamplesPerOffset = 1./64
 
const unsigned int kNumTDCPerSample = 32
 
const float DELTA = 1e-5
 
const float DELTA_TDC = 1e9
 

Typedef Documentation

typedef std::vector<Boundary> novaddt::BoundaryList

Definition at line 15 of file BoundaryList.h.

typedef tbb::blocked_range<art::PtrVector<HitList>::const_iterator> novaddt::br_t

Definition at line 19 of file HoughTrackMaker.h.

typedef std::vector<DAQHit> novaddt::HitList

Definition at line 15 of file HitList.h.

Definition at line 7 of file NovaDDTRawInputSource_source.cc.

Function Documentation

uint8_t novaddt::ADCShapeFit ( int16_t  adc1,
int16_t  adc2,
int16_t  adc3,
double  riseTime,
double  fallTime,
bool &  goodTime 
)

Definition at line 221 of file WaveformProcessor_service.cc.

References ana::assert(), GetExpectations(), MECModelEnuComparisons::i, kNumFineTimingADCPoints, kSamplesPerOffset, kZeroOffsetSamples, norm, PandAna.reco_validation.add_data::offset, sqr(), and getGoodRuns4SAM::t0.

Referenced by novaddt::WaveformProcessor::process().

224  {
225  // The observations, in chronological order
226  const int16_t obs[kNumFineTimingADCPoints] = {0, adc1, adc2, adc3};
227  double bestchisq = 1e10; // infinity
228 
229  // Sane default
230  uint8_t bestoffset = -kZeroOffsetSamples/kSamplesPerOffset;
231  goodTime = false;
232 
233  // Scan through possible offsets of the peak, looking for the best match
234  uint8_t offset = 0;
235  do{
236  // In TDC
237  const double t0 = (double(offset)*kSamplesPerOffset+kZeroOffsetSamples);
238  // Expectations
239  double exps[kNumFineTimingADCPoints];
240  const double norm = GetExpectations(t0, riseTime, fallTime, obs, exps);
241 
242  if(norm < 0) continue;
243  // Assuming equal, uncorrelated, errors on all points. (Including
244  // correlations was not found to improve resolution).
245 
246  double chisq = 0;
247  for(unsigned int i = 0; i < kNumFineTimingADCPoints; ++i)
248  chisq += sqr(obs[i]-exps[i]);
249  assert(chisq >= 0);
250 
251  if(chisq < bestchisq){
252  bestchisq = chisq;
253  bestoffset = offset;
254  goodTime = true;
255  }
256  } while(++offset != 0);
257 
258  if(bestoffset == 0 || bestoffset == 255){
259  /*
260  std::cerr << "Best time offset is at edge of range. "
261  << "If this happens repeatedly there's a "
262  << "timing problem. Details: "
263  << adc0 << " " << adc1 << " " << adc2 << std::endl;
264  */
266  goodTime = false;
267  }
268 
269  return bestoffset;
270  }
const double kSamplesPerOffset
const unsigned int kNumFineTimingADCPoints
const double kZeroOffsetSamples
Float_t norm
assert(nhit_max >=nhit_nbins)
double GetExpectations(double t0, double riseTime, double fallTime, double preAmp, const int16_t *obs, double *exps, double &base, int mode)
Helper function for ADCShapeFit inner loop.
Definition: ADCShapeFit.cxx:64
unsigned int novaddt::bitMask ( unsigned int  n)
inline

Definition at line 113 of file WaveformProcessor_service.cc.

References getGoodRuns4SAM::n.

Referenced by highestBit().

113  {
114  return (n < 32 ) ? (0x1 << n) : 0x0 ;
115 }
novaddt::DEFINE_ART_SERVICE_INTERFACE_IMPL ( DDTRCService  ,
RunInfoInterface   
)
novaddt::DEFINE_ART_SERVICE_INTERFACE_IMPL ( RunInfoStatic  ,
RunInfoInterface   
)
novaddt::DEFINE_ART_SERVICE_INTERFACE_IMPL ( SNMessageService  ,
SNMessageInterface   
)
double novaddt::GetExpectations ( double  t0,
double  riseTime,
double  fallTime,
const int16_t *  obs,
double *  exps 
)
inline

Helper function for ADCShapeFit inner loop.

Also used independently to calculate the best fit adc peak height (the return value).

Definition at line 45 of file WaveformProcessor_service.cc.

References stan::math::exp(), MECModelEnuComparisons::i, kNumFineTimingADCPoints, getGoodRuns4SAM::n, norm, confusionMatrixTree::t, getGoodRuns4SAM::t0, W, X, and Z.

Referenced by ADCShapeFit().

49  {
50  for(unsigned int t = 0; t < kNumFineTimingADCPoints; ++t){
51  // This is the ideal ASIC formula from SimpleReadout
52  exps[t] = (t > t0) ? exp(-(t-t0)/fallTime)*(1-exp(-(t-t0)/riseTime)) : 0;
53  }
54  // We can calculate the best fit baseline and normalization at this offset
55  // analytically (just write the chisq expression, and take derivatives with
56  // norm or base), like so:
57  double U, V, W, X, Z;
58  U = V = W = X = Z = 0;
59  for(unsigned int i = 0; i < kNumFineTimingADCPoints; ++i){
60  U += exps[i];
61  V += 1;
62  W += obs[i];
63  X += exps[i]*exps[i];
64  Z += obs[i]*exps[i];
65  }
66  const double norm = (W*U-V*Z)/(U*U-X*V);
67  const double base = (W*X-Z*U)/(X*V-U*U);
68 
69  // Correct all the expectations for the best guess baseline and norm
70  for(unsigned int n = 0; n < kNumFineTimingADCPoints; ++n){
71  exps[n] = norm*exps[n]+base;
72  }
73  return norm;
74  }
const unsigned int kNumFineTimingADCPoints
const XML_Char int const XML_Char int const XML_Char * base
Definition: expat.h:331
Float_t Z
Definition: plot.C:38
fvar< T > exp(const fvar< T > &x)
Definition: exp.hpp:10
Float_t norm
Float_t X
Definition: plot.C:38
#define W(x)
int novaddt::highestBit ( unsigned int  input)

Definition at line 128 of file WaveformProcessor_service.cc.

References bitMask().

Referenced by NBitInt2Float().

128  {
129  // Now determine the position of the highest non-zero bit
130  int highBit_idx=31;
131  while(highBit_idx > 0){
132  if( bitMask(highBit_idx) & input ){
133  // We have found a non-zero bit
134  // so we break out
135  return highBit_idx;
136  }
137  --highBit_idx;
138  }
139  return -1;
140 }
unsigned int bitMask(unsigned int n)
novaddt::HoughPeak ( )
inline

Definition at line 52 of file HoughPeak.h.

52  :
53  _rho(0.0f),
54  _theta(0.0f),
55  _sigmarho(0.0f),
56  _sigmatheta(0.0f),
57  _significance(0)
58  {
59  }
novaddt::HoughPeak ( const float  rho,
const float  theta,
const float  sigmarho,
const float  sigmatheta,
const int  significance 
)
inline

Definition at line 64 of file HoughPeak.h.

68  :
69  _rho (rho),
70  _theta (theta),
71  _sigmarho (sigmarho),
72  _sigmatheta (sigmatheta),
73  _significance (significance)
74  {
75  }
novaddt::HoughPeak ( const HoughPeak hp)
inline

Definition at line 78 of file HoughPeak.h.

78  :
79  _rho (hp._rho),
80  _theta (hp._theta),
81  _sigmarho (hp._sigmarho),
82  _sigmatheta (hp._sigmatheta),
83  _significance (hp._significance)
84  {
85  }
bool novaddt::is_subset_of ( novaddt::TriggerDecision const &  subset,
novaddt::TriggerDecision const &  set 
)

Definition at line 38 of file DDTExtensions.cxx.

References om::cout, novaddt::TriggerDecision::duration(), allTimeWatchdog::endl, and novaddt::TriggerDecision::start().

Referenced by operator==().

39 {
40  if (subset.start() < set.start())
41  {
42  std::cout << "MF: The trigger decision is not a subset!"
43  << "\nMF: subset start = " << subset.start()
44  << "\nMF: set start = " << set.start()
45  << std::endl;
46 
47  return false;
48  }
49 
50  auto subset_end = subset.start() + subset.duration();
51  auto set_end = set.start() + set.duration();
52 
53  if (subset_end > set_end)
54  {
55  std::cout << "MF: The trigger decision is not a subset!"
56  << "\nMF: subset end = " << subset_end
57  << "\nMF: set end = " << set_end
58  << std::endl;
59 
60  return false;
61  }
62 
63  return true;
64 }
OStream cout
Definition: OStream.cxx:6
unsigned int novaddt::NBitInt2Float ( float  _input,
int  inputBits,
int  outputBitsMantisa,
int  outputBitsExpo 
)

Definition at line 143 of file WaveformProcessor_service.cc.

References highestBit(), makeTrainCVSamples::int, nbitMask(), and x1.

Referenced by novaddt::WaveformProcessor::process().

143  {
144  // First construct the bit mask for the input
145  unsigned int InputMask = 0;
146  unsigned int nBitIn = 0;
147  int highBit = 0;
148  int mantisaShift = 0;
149  unsigned int expo = 0;
150  unsigned int fp_rep=0;
151 
152  int input = (int)_input;
153  bool neg = false;
154  if(input < 0){
155  input = -1*input;
156  neg = true;
157  }
158 
159  if(input > 4095)
160  input = 4095;
161 
162  // If the intput value is smaller than the smallest exponent, just return the
163  // value without further encoding
164  if(input < (0x1 << (outputBitsMantisa+1) )){return (neg) ? 256-input: 256+input;}
165 
166  // Create an input mask to mask down the input (i.e. ensure that any random
167  // high bits above the specified length are masked down
168  InputMask = nbitMask(inputBits);
169  // p(InputMask);
170 
171  // Now mask off to the correct bits
172  nBitIn = input & InputMask;
173  // p(nBitIn);
174 
175  // Find the highest non-zero bit in the input word
176  highBit = highestBit(nBitIn);
177  if(highBit < 0){return 0;} // Check for the error code
178 
179  //printf("High Bit: %d\n",highBit);
180 
181  // Comput the shift that is required
182  mantisaShift = highBit - outputBitsMantisa;
183 
184  // printf("M Shift: %d\n",mantisaShift);
185 
186  // Shift the input word down
187  if(mantisaShift > 0){
188  nBitIn = nBitIn >> mantisaShift;
189  }
190  // p(nBitIn);
191 
192  // Now mask off the top bit
193  nBitIn &= nbitMask(outputBitsMantisa);
194 
195  // p(nBitIn);
196 
197  // Construct the exponent
198 
199  if(mantisaShift > 0){
200  expo = mantisaShift + 1;
201  expo &= nbitMask(outputBitsExpo);
202  }
203  //p(expo);
204 
205  // Shift the exponent into the correct postion
206  expo = expo << outputBitsMantisa;
207 
208  //p(expo);
209 
210  // Finally combine the mantisa and exponent
211  fp_rep = expo | nBitIn;
212 
213  //p(fp_rep);
214 
215  return (neg) ? 256 - fp_rep: 256 + fp_rep;
216 }
Float_t x1[n_points_granero]
Definition: compare.C:5
int highestBit(unsigned int input)
unsigned int nbitMask(unsigned int n)
unsigned int novaddt::nbitMask ( unsigned int  n)
inline

Definition at line 119 of file WaveformProcessor_service.cc.

References lem_server::mask, and getGoodRuns4SAM::n.

Referenced by NBitInt2Float().

119  {
120  unsigned int mask = 0xffffffff;
121  mask = mask << (32 - n);
122  mask = mask >> (32 - n);
123  return mask;
124 }
TDC novaddt::OffsetToTDC ( uint32_t const &  t0,
uint64_t const &  high_time,
uint8_t const &  offset 
)
bool novaddt::operator!= ( View  lhs,
View  rhs 
)
inline

Definition at line 155 of file BaseProducts.h.

References novaddt::View::val.

155 { return lhs.val != rhs.val; }
TDC::value_type novaddt::operator* ( TDC  lhs,
TDC  rhs 
)
inline

Definition at line 51 of file BaseProducts.h.

References novaddt::TDC::val.

52  { return lhs.val * rhs.val; }
Plane::value_type novaddt::operator* ( Plane  lhs,
Plane  rhs 
)
inline

Definition at line 94 of file BaseProducts.h.

References novaddt::Plane::val.

95  { return lhs.val * rhs.val; }
Cell::value_type novaddt::operator* ( Cell  lhs,
Cell  rhs 
)
inline

Definition at line 119 of file BaseProducts.h.

References novaddt::Cell::val.

120  { return lhs.val * rhs.val; }
TDC::value_type novaddt::operator+ ( TDC  lhs,
TDC  rhs 
)
inline
ADC::value_type novaddt::operator+ ( ADC  lhs,
ADC  rhs 
)
inline

Definition at line 73 of file BaseProducts.h.

References novaddt::ADC::val.

74  { return lhs.val + rhs.val; }
Plane::value_type novaddt::operator+ ( Plane  lhs,
Plane  rhs 
)
inline

Definition at line 92 of file BaseProducts.h.

References novaddt::Plane::val.

93  { return lhs.val + rhs.val; }
Cell::value_type novaddt::operator+ ( Cell  lhs,
Cell  rhs 
)
inline

Definition at line 117 of file BaseProducts.h.

References novaddt::Cell::val.

118  { return lhs.val + rhs.val; }
TDC::value_type novaddt::operator+= ( TDC  lhs,
TDC  rhs 
)
inline
Plane::value_type novaddt::operator+= ( Plane  lhs,
Plane  rhs 
)
inline

Definition at line 96 of file BaseProducts.h.

References novaddt::Plane::val.

97  { return lhs.val += rhs.val; }
Cell::value_type novaddt::operator+= ( Cell  lhs,
Cell  rhs 
)
inline

Definition at line 121 of file BaseProducts.h.

References novaddt::Cell::val.

122  { return lhs.val += rhs.val; }
TDC::value_type novaddt::operator- ( TDC  lhs,
TDC  rhs 
)
inline

Definition at line 47 of file BaseProducts.h.

References novaddt::TDC::val.

Referenced by art::const_AssnsIter< L, R, D, Dir >::const_AssnsIter(), and ana::OscillatableSpectrum::TrueEnergy().

48  { return lhs.val - rhs.val; }
ADC::value_type novaddt::operator- ( ADC  lhs,
ADC  rhs 
)
inline

Definition at line 71 of file BaseProducts.h.

References novaddt::ADC::val.

72  { return lhs.val - rhs.val; }
Plane::value_type novaddt::operator- ( Plane  lhs,
Plane  rhs 
)
inline

Definition at line 90 of file BaseProducts.h.

References novaddt::Plane::val.

91  { return lhs.val - rhs.val; }
Cell::value_type novaddt::operator- ( Cell  lhs,
Cell  rhs 
)
inline

Definition at line 115 of file BaseProducts.h.

References novaddt::Cell::val.

116  { return lhs.val - rhs.val; }
bool novaddt::operator< ( TDC  lhs,
TDC  rhs 
)
inline

Definition at line 45 of file BaseProducts.h.

References novaddt::TDC::val.

45 { return lhs.val < rhs.val; }
bool novaddt::operator< ( ADC  lhs,
ADC  rhs 
)
inline

Definition at line 69 of file BaseProducts.h.

References novaddt::ADC::val.

69 { return lhs.val < rhs.val; }
bool novaddt::operator< ( Plane  lhs,
Plane  rhs 
)
inline

Definition at line 88 of file BaseProducts.h.

References novaddt::Plane::val.

88 { return lhs.val < rhs.val; }
bool novaddt::operator< ( Cell  lhs,
Cell  rhs 
)
inline

Definition at line 113 of file BaseProducts.h.

References novaddt::Cell::val.

113 { return lhs.val < rhs.val; }
bool novaddt::operator< ( View  lhs,
View  rhs 
)
inline

Definition at line 153 of file BaseProducts.h.

References novaddt::View::val.

153 { return lhs.val < rhs.val; }
bool novaddt::operator< ( DCM  lhs,
DCM  rhs 
)
inline

Definition at line 170 of file BaseProducts.h.

References novaddt::DCM::val.

170 { return lhs.val < rhs.val; }
bool novaddt::operator== ( novaddt::TriggerDecision const &  lhs,
novaddt::TriggerDecision const &  rhs 
)

Definition at line 8 of file DDTExtensions.cxx.

References om::cout, novaddt::TriggerDecision::duration(), allTimeWatchdog::endl, is_subset_of(), and novaddt::TriggerDecision::start().

9 {
10  if (lhs.start() != rhs.start())
11  {
12  std::cout << "MF: The trigger decision start times do not agree!"
13  << "\nMF: lhs = " << lhs.start()
14  << "\nMF: rhs = " << rhs.start()
15  << "\nMF: delta = " << lhs.start() - rhs.start()
16  << std::endl;
17 
18  return false;
19  }
20 
21  if (lhs.duration() != rhs.duration())
22  {
23  std::cout << "MF: The trigger decision duration times do not agree!"
24  << "\nMF: lhs = " << lhs.duration()
25  << "\nMF: rhs = " << rhs.duration()
26  << "\nMF: delta = " << lhs.duration() - rhs.duration()
27  << std::endl;
28 
29  return false;
30  }
31 
32  return true;
33 }
OStream cout
Definition: OStream.cxx:6
bool novaddt::operator== ( TDC  lhs,
TDC  rhs 
)
inline

Definition at line 44 of file BaseProducts.h.

References novaddt::TDC::val.

44 { return lhs.val == rhs.val; }
bool novaddt::operator== ( ADC  lhs,
ADC  rhs 
)
inline

Definition at line 68 of file BaseProducts.h.

References novaddt::ADC::val.

68 { return lhs.val == rhs.val; }
bool novaddt::operator== ( Plane  lhs,
Plane  rhs 
)
inline

Definition at line 87 of file BaseProducts.h.

References novaddt::Plane::val.

87 { return lhs.val == rhs.val; }
bool novaddt::operator== ( Cell  lhs,
Cell  rhs 
)
inline

Definition at line 112 of file BaseProducts.h.

References novaddt::Cell::val.

112 { return lhs.val == rhs.val; }
bool novaddt::operator== ( View  lhs,
View  rhs 
)
inline

Definition at line 152 of file BaseProducts.h.

References novaddt::View::val.

152 { return lhs.val == rhs.val; }
bool novaddt::operator== ( DCM  lhs,
DCM  rhs 
)
inline

Definition at line 169 of file BaseProducts.h.

References novaddt::DCM::val.

169 { return lhs.val == rhs.val; }
bool novaddt::operator> ( TDC  lhs,
TDC  rhs 
)
inline

Definition at line 46 of file BaseProducts.h.

References novaddt::TDC::val.

46 { return lhs.val > rhs.val; }
bool novaddt::operator> ( ADC  lhs,
ADC  rhs 
)
inline

Definition at line 70 of file BaseProducts.h.

References novaddt::ADC::val.

70 { return lhs.val > rhs.val; }
bool novaddt::operator> ( Plane  lhs,
Plane  rhs 
)
inline

Definition at line 89 of file BaseProducts.h.

References novaddt::Plane::val.

89 { return lhs.val > rhs.val; }
bool novaddt::operator> ( Cell  lhs,
Cell  rhs 
)
inline

Definition at line 114 of file BaseProducts.h.

References novaddt::Cell::val.

114 { return lhs.val > rhs.val; }
bool novaddt::operator> ( View  lhs,
View  rhs 
)
inline

Definition at line 154 of file BaseProducts.h.

References novaddt::View::val.

154 { return lhs.val > rhs.val; }
bool novaddt::operator> ( DCM  lhs,
DCM  rhs 
)
inline

Definition at line 171 of file BaseProducts.h.

References novaddt::DCM::val.

171 { return lhs.val > rhs.val; }
template<class response_t >
boost::shared_ptr<response_t> novaddt::Response ( int  code = 0,
std::string  message = "Success" 
)

Definition at line 23 of file DDTRC.h.

References datagram_client::message.

23  {
24  boost::shared_ptr<response_t> response;
25  response.reset(new response_t());
26 
27  rmscore::RequestStatus reqStatus;
28  reqStatus.code = code;
29  reqStatus.message = DDS::string_dup(message.data());
30 
31  response->status = reqStatus;
32  return response;
33 }
Definition: inftrees.h:24
const float novaddt::Rho ( ) const
inline

Definition at line 87 of file HoughPeak.h.

References novaddt::HoughPeak::_rho.

Referenced by ana::OscCalcNoHash::GetParamsHash().

87 { return _rho; }
bool novaddt::same_track ( const Track lhs,
const Track rhs 
)
inline

Definition at line 39 of file Merge2DTracks_module.cc.

Referenced by novaddt::Merge2DTracks::simpleMerge(), and novaddt::Merge2DTracks::twoViewMerge().

39  {
40  return lhs == rhs;
41  /*(fabs(lhs.StartT()-rhs.StartT())<DELTA_TDC &&
42  fabs(lhs.EndT()-rhs.EndT()) <DELTA_TDC &&
43  fabs(lhs.StartV()-rhs.StartV())<DELTA &&
44  fabs(lhs.StartZ()-rhs.StartZ())<DELTA &&
45  fabs(lhs.EndV()-rhs.EndV()) <DELTA &&
46  fabs(lhs.EndZ()-rhs.EndZ()) <DELTA &&
47  lhs.View() == rhs.View());*/
48  }
void novaddt::SetRho ( const float &  r)
inline

Definition at line 94 of file HoughPeak.h.

References novaddt::HoughPeak::_rho, and r().

Referenced by osc::OscCalculatorCPT::SetdCP(), and osc::OscCalculatorCPT::SetRho().

94 { _rho = r; }
TRandom3 r(0)
void novaddt::SetSigmaRho ( const float &  sr)
inline

Definition at line 96 of file HoughPeak.h.

References novaddt::HoughPeak::_sigmarho, and Munits::sr.

96 { _sigmarho = sr; }
static constexpr Double_t sr
Definition: Munits.h:164
void novaddt::SetSigmaTheta ( const float &  st)
inline

Definition at line 97 of file HoughPeak.h.

References novaddt::HoughPeak::_sigmatheta.

97 { _sigmatheta = st; }
void novaddt::SetSignificance ( const int sig)
inline

Definition at line 98 of file HoughPeak.h.

References novaddt::HoughPeak::_significance.

98 { _significance = sig; }
void novaddt::SetTheta ( const float &  t)
inline

Definition at line 95 of file HoughPeak.h.

References novaddt::HoughPeak::_theta, and confusionMatrixTree::t.

Referenced by jmshower::JMShower::~JMShower().

95 { _theta = t; }
const float novaddt::SigmaRho ( ) const
inline

Definition at line 89 of file HoughPeak.h.

89 { return _sigmaRho; }
const float novaddt::SigmaTheta ( ) const
inline

Definition at line 90 of file HoughPeak.h.

References novaddt::HoughPeak::_sigmatheta.

90 { return _sigmatheta; }
const int novaddt::Significance ( ) const
inline

Definition at line 91 of file HoughPeak.h.

References novaddt::HoughPeak::_significance.

91 { return _significance; }
const float novaddt::Theta ( ) const
inline

Variable Documentation

const float novaddt::DELTA = 1e-5

Definition at line 36 of file Merge2DTracks_module.cc.

Referenced by genie::SmithMonizUtils::DMINFC().

const float novaddt::DELTA_TDC = 1e9

Definition at line 37 of file Merge2DTracks_module.cc.

const int novaddt::kADC1Min = 180
static

Definition at line 40 of file WaveformProcessor.h.

Referenced by novaddt::WaveformProcessor::process().

const int novaddt::kADC1RelMax = 50
static

Definition at line 41 of file WaveformProcessor.h.

Referenced by novaddt::WaveformProcessor::process().

const int novaddt::kADC2Max = 512
static

Definition at line 43 of file WaveformProcessor.h.

Referenced by novaddt::WaveformProcessor::process().

const int novaddt::kADC2Min = 180
static

Definition at line 42 of file WaveformProcessor.h.

Referenced by novaddt::WaveformProcessor::process().

const int novaddt::kADC3Max = 512
static

Definition at line 38 of file WaveformProcessor.h.

Referenced by novaddt::WaveformProcessor::process().

const int novaddt::kADC3Min = 256
static

Definition at line 39 of file WaveformProcessor.h.

Referenced by novaddt::WaveformProcessor::process().

const unsigned int novaddt::kNumFineTimingADCPoints = 4

Definition at line 20 of file WaveformProcessor_service.cc.

Referenced by ADCShapeFit(), and GetExpectations().

const unsigned int novaddt::kNumTableEntries = 21545472
static
const unsigned int novaddt::kNumTDCPerSample = 32

Definition at line 26 of file WaveformProcessor_service.cc.

const double novaddt::kSamplesPerOffset = 1./64

Definition at line 24 of file WaveformProcessor_service.cc.

Referenced by ADCShapeFit().

const double novaddt::kZeroOffsetSamples = -1

Definition at line 22 of file WaveformProcessor_service.cc.

Referenced by ADCShapeFit().

unsigned int novaddt::nTableLoads = 0

Definition at line 31 of file WaveformProcessor.h.

Referenced by novaddt::WaveformProcessor::postBeginRun().