NtpMREvent Class Reference

#include <NtpMREvent.h>

List of all members.

Public Member Functions

 NtpMREvent ()
 NtpMREvent (Int_t ninit)
virtual ~NtpMREvent ()
virtual std::ostream & Print (std::ostream &os) const
virtual void Print (Option_t *option="") const
void AddStripAt (Int_t stripindex, Int_t mrinfo, Int_t ind)
void Clear (Option_t *="")
Bool_t StpIsTrueMu (Int_t stripindex)
Bool_t StpIsTrueShw (Int_t stripindex)
Bool_t StpIsScaled (Int_t stripindex)
Bool_t StpIsInRecoTrk (Int_t stripindex)
Float_t StpScaleFactor (Int_t stripindex)
Bool_t StpIsRetained (Int_t stripindex)
Bool_t StpIsMCElec (Int_t stripindex)

Public Attributes

UShort_t index
Int_t ndigit
Int_t nstrip
Int_t * stp
Int_t * mrstp
Int_t orig_event
Int_t best_event
Float_t best_purity
Float_t best_complete
Float_t best_purity_phw
Float_t best_complete_phw
Float_t elec_complete
Float_t elec_complete_phw
Float_t best_elec_complete_phw
Float_t best_elec_complete
Float_t best_elec_event
Float_t comb_complete
Float_t comb_complete_phw
Float_t best_comb_complete
Float_t best_comb_complete_phw
Float_t best_comb_event
Float_t shwvtxx
Float_t shwvtxy
Float_t shwvtxz
Float_t shwendx
Float_t shwendy
Float_t shwendz
Int_t shwvtxplane
Int_t shwendplane
Int_t shwnplane
Float_t shwcharge
Float_t vtxx
Float_t vtxy
Float_t vtxz
Float_t vtxdistance
Float_t endx
Float_t endy
Float_t endz
Float_t enddistance
Int_t vtxp
Int_t endp
Int_t npln
Float_t prng
Float_t pcrv
Float_t pvdx
Float_t pvdy
Float_t pvdz
Float_t zenith
Float_t azimuth
Int_t fitp
Int_t endc
Int_t pass
Float_t pmux
Float_t pmuy
Float_t pmuz
Int_t mxpl
Double_t qp
Float_t mrmpmux
Float_t mrmpmuy
Float_t mrmpmuz
Float_t mrmQ2
Float_t mrmEshw

Detailed Description

Definition at line 18 of file NtpMREvent.h.


Constructor & Destructor Documentation

NtpMREvent::NtpMREvent (  ) 

Definition at line 80 of file NtpMREvent.cxx.

00080                       : 
00081   index(0),ndigit(0),nstrip(0),stp(0),mrstp(0),
00082   orig_event(-1),best_event(-1),best_purity(0),best_complete(0),
00083   best_purity_phw(0),best_complete_phw(0),
00084   elec_complete(0),elec_complete_phw(0),
00085   best_elec_complete_phw(0), best_elec_complete(0), 
00086   best_elec_event(0), comb_complete(0), comb_complete_phw(0),
00087   best_comb_complete(0), best_comb_complete_phw(0),
00088   best_comb_event(0),
00089   shwvtxx(0),shwvtxy(0),shwvtxz(0),shwendx(0),shwendy(0),shwendz(0),
00090   shwvtxplane(0),shwendplane(0),shwnplane(0),shwcharge(0),
00091   vtxx(0),vtxy(0),vtxz(0),vtxdistance(),endx(0),endy(0),endz(0),enddistance(0),
00092   vtxp(0),endp(0),npln(0),prng(0),pcrv(0),pvdx(0),pvdy(0),pvdz(0),zenith(0),azimuth(0),
00093   fitp(0),endc(0),pass(0),pmux(0),pmuy(0),
00094   pmuz(0),mxpl(0),qp(0),mrmpmux(0),mrmpmuy(0),
00095   mrmpmuz(0),mrmQ2(0),mrmEshw(0)
00096 {
00097 }

NtpMREvent::NtpMREvent ( Int_t  ninit  ) 

Definition at line 99 of file NtpMREvent.cxx.

References mrstp, nstrip, and stp.

00099                                   : 
00100   index(0),ndigit(0),nstrip(ninit),stp(0),mrstp(0),
00101   orig_event(-1),best_event(-1),best_purity(0),best_complete(0),
00102   best_purity_phw(0),best_complete_phw(0),
00103   elec_complete(0),elec_complete_phw(0),
00104   best_elec_complete_phw(0), best_elec_complete(0),
00105   best_elec_event(0), comb_complete(0), comb_complete_phw(0),
00106   best_comb_complete(0), best_comb_complete_phw(0),
00107   best_comb_event(0),
00108   shwvtxx(0),shwvtxy(0),shwvtxz(0),shwendx(0),shwendy(0),shwendz(0),
00109   shwvtxplane(0),shwendplane(0),shwnplane(0),shwcharge(0),
00110   vtxx(0),vtxy(0),vtxz(0),vtxdistance(),endx(0),endy(0),endz(0),enddistance(0),
00111   vtxp(0),endp(0),npln(0),prng(0),pcrv(0),pvdx(0),pvdy(0),pvdz(0),zenith(0),azimuth(0),
00112   fitp(0),endc(0),pass(0),pmux(0),pmuy(0),
00113   pmuz(0),mxpl(0),qp(0),mrmpmux(0),mrmpmuy(0),
00114   mrmpmuz(0),mrmQ2(0),mrmEshw(0)
00115 {
00116   if ( nstrip ) {
00117     stp = new Int_t[nstrip];
00118     mrstp = new Int_t[nstrip];
00119     for ( Int_t i = 0; i < nstrip; i++ ) {
00120       stp[i] = -1;
00121       mrstp[i] = -1;
00122     }
00123   }
00124 }

virtual NtpMREvent::~NtpMREvent (  )  [inline, virtual]

Definition at line 23 of file NtpMREvent.h.

References Clear().

00023 { this -> Clear(); }


Member Function Documentation

void NtpMREvent::AddStripAt ( Int_t  stripindex,
Int_t  mrinfo,
Int_t  ind 
)

Definition at line 22 of file NtpMREvent.cxx.

References Msg::kWarning, mrstp, MSG, nstrip, and stp.

Referenced by NtpMRModule::FillNtpEvent().

00022                                                                      {
00023 
00024   if ( ind < 0 || ind >= nstrip ) {
00025     MSG("NtpEM",Msg::kWarning) 
00026       << "Attempt to add strip at index " << ind
00027       << " outside of array size " << nstrip << " ignored." << endl;
00028     return;
00029   }
00030     
00031   stp[ind] = stripindex;
00032   mrstp[ind] = mrinfo;
00033   return;
00034     
00035 }

void NtpMREvent::Clear ( Option_t *  = ""  )  [inline]

Definition at line 31 of file NtpMREvent.h.

References mrstp, and stp.

Referenced by ~NtpMREvent().

00031                              { 
00032     if(stp) delete [] stp; stp=0; 
00033     if(mrstp) delete [] mrstp; mrstp=0;
00034   }

void NtpMREvent::Print ( Option_t *  option = ""  )  const [virtual]

Definition at line 133 of file NtpMREvent.cxx.

References Print().

00133                                                    {
00134   
00135   Print(std::cout);
00136   return;
00137 
00138 }

std::ostream & NtpMREvent::Print ( std::ostream &  os  )  const [virtual]

Definition at line 126 of file NtpMREvent.cxx.

Referenced by Print().

00126                                                   {
00127   
00128   os << "NtpMREvent::Print" << endl;
00129   return os;
00130   
00131 }

Bool_t NtpMREvent::StpIsInRecoTrk ( Int_t  stripindex  ) 

Definition at line 55 of file NtpMREvent.cxx.

References RmMuMask::kRMMU_INRECOTRK_MASK, mrstp, and nstrip.

Referenced by NueDisplayModule::FillMREventGraph().

00056 {
00057   if(stripindex>=nstrip) return false;
00058   return (mrstp[stripindex] & RmMuMask::kRMMU_INRECOTRK_MASK);
00059 }

Bool_t NtpMREvent::StpIsMCElec ( Int_t  stripindex  ) 

Definition at line 74 of file NtpMREvent.cxx.

References RmMuMask::kRMMU_ISMCELEC_MASK, mrstp, and nstrip.

Referenced by NueDisplayModule::FillMREventGraph().

00075 {
00076   if(stripindex>=nstrip) return false;
00077   return (mrstp[stripindex] & RmMuMask::kRMMU_ISMCELEC_MASK);
00078 }

Bool_t NtpMREvent::StpIsRetained ( Int_t  stripindex  ) 

Definition at line 68 of file NtpMREvent.cxx.

References RmMuMask::kRMMU_ISRETAIN_MASK, mrstp, and nstrip.

Referenced by NueDisplayModule::FillMREventGraph().

00069 {
00070   if(stripindex>=nstrip) return false;
00071   return (mrstp[stripindex] & RmMuMask::kRMMU_ISRETAIN_MASK);
00072 }

Bool_t NtpMREvent::StpIsScaled ( Int_t  stripindex  ) 

Definition at line 49 of file NtpMREvent.cxx.

References RmMuMask::kRMMU_ISSCALED_MASK, mrstp, and nstrip.

Referenced by NueDisplayModule::FillMREventGraph().

00050 {
00051   if(stripindex>=nstrip) return false;
00052   return (mrstp[stripindex] & RmMuMask::kRMMU_ISSCALED_MASK);
00053 }

Bool_t NtpMREvent::StpIsTrueMu ( Int_t  stripindex  ) 

Definition at line 37 of file NtpMREvent.cxx.

References RmMuMask::kRMMU_ISMU_MASK, mrstp, and nstrip.

Referenced by NueDisplayModule::FillMREventGraph().

00038 {
00039   if(stripindex>=nstrip) return false;
00040   return (mrstp[stripindex] & RmMuMask::kRMMU_ISMU_MASK);
00041 }

Bool_t NtpMREvent::StpIsTrueShw ( Int_t  stripindex  ) 

Definition at line 43 of file NtpMREvent.cxx.

References RmMuMask::kRMMU_ISSHW_MASK, mrstp, and nstrip.

Referenced by NueDisplayModule::FillMREventGraph().

00044 {
00045   if(stripindex>=nstrip) return false;
00046   return (mrstp[stripindex] & RmMuMask::kRMMU_ISSHW_MASK);
00047 }

Float_t NtpMREvent::StpScaleFactor ( Int_t  stripindex  ) 

Definition at line 61 of file NtpMREvent.cxx.

References RmMuMask::kRMMU_NUM_SHIFT, RmMuMask::kRMMU_SCL_FACT_SCALE, mrstp, and nstrip.

00062 {
00063   if(stripindex>=nstrip) return 0.0;
00064   return ( float(mrstp[stripindex]>>RmMuMask::kRMMU_NUM_SHIFT) / 
00065            RmMuMask::kRMMU_SCL_FACT_SCALE );
00066 }


Member Data Documentation

Definition at line 105 of file NtpMREvent.h.

Referenced by MuonRemovalInfoAna::Analyze(), and NtpMRModule::FillNtpEvent().

Definition at line 70 of file NtpMREvent.h.

Referenced by NtpMRModule::FillNtpEvent().

Definition at line 71 of file NtpMREvent.h.

Referenced by NtpMRModule::FillNtpEvent().

Definition at line 72 of file NtpMREvent.h.

Referenced by NtpMRModule::FillNtpEvent().

Definition at line 65 of file NtpMREvent.h.

Referenced by NtpMRModule::FillNtpEvent().

Definition at line 64 of file NtpMREvent.h.

Referenced by NtpMRModule::FillNtpEvent().

Definition at line 66 of file NtpMREvent.h.

Referenced by NtpMRModule::FillNtpEvent().

Definition at line 68 of file NtpMREvent.h.

Referenced by NtpMRModule::FillNtpEvent().

Definition at line 69 of file NtpMREvent.h.

Referenced by NtpMRModule::FillNtpEvent().

Double_t NtpMREvent::qp

Definition at line 113 of file NtpMREvent.h.

Referenced by ANtpInfoObjectFillerMRCC::FillEventInformationHelper().

Definition at line 104 of file NtpMREvent.h.

Referenced by MuonRemovalInfoAna::Analyze(), and NtpMRModule::FillNtpEvent().


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

Generated on 22 Nov 2017 for loon by  doxygen 1.6.1