LArSoft  v06_74_01
Liquid Argon Software toolkit - http://larsoft.org/
anab::CosmicTag Class Reference

#include "CosmicTag.h"

Public Member Functions

 CosmicTag ()
 
 CosmicTag (std::vector< float > ePt1, std::vector< float > ePt2, float cScore, CosmicTagID_t cTypes)
 
 CosmicTag (float cScore)
 
float & CosmicScore ()
 
CosmicTagID_tCosmicType ()
 
float getXInteraction (float oldX, float xDrift, int tSample, float realTime, int tick) const
 
const std::vector< float > & EndPoint1 () const
 
const std::vector< float > & EndPoint2 () const
 
const float & CosmicScore () const
 
const CosmicTagID_tCosmicType () const
 

Private Attributes

std::vector< float > endPt1
 
std::vector< float > endPt2
 
float fCosmicScore
 
CosmicTagID_t fCosmicType
 

Friends

std::ostream & operator<< (std::ostream &o, CosmicTag const &a)
 

Detailed Description

Definition at line 40 of file CosmicTag.h.

Constructor & Destructor Documentation

anab::CosmicTag::CosmicTag ( )

Definition at line 14 of file CosmicTag.cxx.

15  : endPt1(0)
16  , endPt2(0)
17  , fCosmicScore(0)
19  {
20  }
Unknown view.
Definition: geo_types.h:83
std::vector< float > endPt1
Definition: CosmicTag.h:47
std::vector< float > endPt2
Definition: CosmicTag.h:48
float fCosmicScore
Definition: CosmicTag.h:49
CosmicTagID_t fCosmicType
Definition: CosmicTag.h:52
anab::CosmicTag::CosmicTag ( std::vector< float >  ePt1,
std::vector< float >  ePt2,
float  cScore,
CosmicTagID_t  cTypes 
)

Definition at line 33 of file CosmicTag.cxx.

37  :
38  endPt1(ePt1),
39  endPt2(ePt2),
40  fCosmicScore(cScore),
41  fCosmicType(cType)
42  {
43  }
std::vector< float > endPt1
Definition: CosmicTag.h:47
std::vector< float > endPt2
Definition: CosmicTag.h:48
float fCosmicScore
Definition: CosmicTag.h:49
CosmicTagID_t fCosmicType
Definition: CosmicTag.h:52
anab::CosmicTag::CosmicTag ( float  cScore)

Definition at line 23 of file CosmicTag.cxx.

23  :
24  endPt1(0),
25  endPt2(0),
26  fCosmicScore(f),
28  {
29 
30  }
Unknown view.
Definition: geo_types.h:83
TFile f
Definition: plotHisto.C:6
std::vector< float > endPt1
Definition: CosmicTag.h:47
std::vector< float > endPt2
Definition: CosmicTag.h:48
float fCosmicScore
Definition: CosmicTag.h:49
CosmicTagID_t fCosmicType
Definition: CosmicTag.h:52

Member Function Documentation

const float & anab::CosmicTag::CosmicScore ( ) const
inline

Definition at line 84 of file CosmicTag.h.

References fCosmicScore.

84 {return fCosmicScore; }
float fCosmicScore
Definition: CosmicTag.h:49
CosmicTagID_t& anab::CosmicTag::CosmicType ( )
inline
const anab::CosmicTagID_t & anab::CosmicTag::CosmicType ( ) const
inline

Definition at line 85 of file CosmicTag.h.

References fCosmicType.

85 {return fCosmicType; }
CosmicTagID_t fCosmicType
Definition: CosmicTag.h:52
const std::vector< float > & anab::CosmicTag::EndPoint1 ( ) const
inline

Definition at line 82 of file CosmicTag.h.

References endPt1.

Referenced by CosmicType().

82 {return endPt1;}
std::vector< float > endPt1
Definition: CosmicTag.h:47
const std::vector< float > & anab::CosmicTag::EndPoint2 ( ) const
inline

Definition at line 83 of file CosmicTag.h.

References endPt2.

Referenced by CosmicType().

83 {return endPt2;}
std::vector< float > endPt2
Definition: CosmicTag.h:48
float anab::CosmicTag::getXInteraction ( float  oldX,
float  xDrift,
int  tSample,
float  realTime,
int  tick 
) const

Definition at line 68 of file CosmicTag.cxx.

Referenced by CosmicType().

69  {
70  // fix this
71  int t =3*tSample;
72  if( (tick > 0*tSample) && (tick < 1*tSample) ) t = 0*tSample;
73  if( (tick > 1*tSample) && (tick < 2*tSample) ) t = 1*tSample;
74  if( (tick > 2*tSample) && (tick < 3*tSample) ) t = 2*tSample;
75 
76  float newX = oldX + (xDrift/tSample)*(t - realTime);
77  return newX;
78  }
Int_t oldX

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  o,
CosmicTag const &  a 
)
friend

Definition at line 50 of file CosmicTag.cxx.

Referenced by CosmicType().

51  {
52  o //<< "Flash Time : " << a.flashTime // should go
53  << "\n Cosmic Score : " << a.fCosmicScore
54  << "\n Cosmic Type : " << a.fCosmicType
55  << "\n End Point 1: " <<std::endl;
56  for(size_t i=0;i<a.endPt1.size(); i++)
57  o << a.endPt1[i] << ", ";
58  o << std::endl;
59  o << "\n End Point 2: " <<std::endl;
60  for(size_t i=0;i<a.endPt2.size(); i++)
61  o << a.endPt2[i] << ", ";
62  o << std::endl;
63 
64 
65  return o;
66  }

Member Data Documentation

std::vector<float> anab::CosmicTag::endPt1
private

Definition at line 47 of file CosmicTag.h.

Referenced by EndPoint1(), and anab::operator<<().

std::vector<float> anab::CosmicTag::endPt2
private

Definition at line 48 of file CosmicTag.h.

Referenced by EndPoint2(), and anab::operator<<().

float anab::CosmicTag::fCosmicScore
private

Definition at line 49 of file CosmicTag.h.

Referenced by CosmicScore(), and anab::operator<<().

CosmicTagID_t anab::CosmicTag::fCosmicType
private

Definition at line 52 of file CosmicTag.h.

Referenced by CosmicType(), and anab::operator<<().


The documentation for this class was generated from the following files: