#include <Strip.h>
Public Types | |
| typedef std::map< Short_t, TrackInfo > | TrackInfoMap |
| typedef std::map< Short_t, TrackInfo >::const_iterator | TrackInfoIter |
Public Member Functions | |
| Strip () | |
| ~Strip () | |
| bool | Add (int key, float data) |
| void | Clear () |
| short | Index () const |
| const std::vector< Short_t > & | EvtIndex () const |
| const std::vector< Short_t > & | TrkIndex () const |
| const std::vector< Short_t > & | ShwIndex () const |
| const std::vector< Short_t > & | SlcIndex () const |
| bool | MatchEvt (short key) const |
| bool | MatchShw (short key) const |
| bool | MatchSlc (short key) const |
| bool | MatchTrk (short key) const |
| unsigned short | GetStrip () const |
| unsigned short | GetPlane () const |
| unsigned short | GetDigit () const |
| char | GetPlaneView () const |
| unsigned int | GetEncoded () const |
| float | TPos () const |
| float | ZPos () const |
| float | ADC () const |
| float | PE () const |
| float | SigLin () const |
| float | SigCor () const |
| float | SigCorEast () const |
| float | SigCorWest () const |
| double | Time () const |
| double | EastTime () const |
| double | WestTime () const |
| bool | IsUview () const |
| bool | IsVview () const |
| TrackInfoIter | GetInfo (short track_index) const |
| TrackInfoIter | InfoBegIter () const |
| TrackInfoIter | InfoEndIter () const |
| bool | KeyExists (short key) const |
| float | operator[] (short key) const |
| float | DataAt (short key) const |
| DataIter | DataBeg () const |
| DataIter | DataEnd () const |
| void | Print (std::ostream &os=std::cout) const |
Private Attributes | |
| Short_t | index |
| UShort_t | strip |
| UShort_t | plane |
| UShort_t | ndigit |
| Char_t | planeview |
| Float_t | tpos |
| Float_t | zpos |
| Float_t | adc |
| Float_t | pe |
| Float_t | siglin |
| Float_t | sigcor0 |
| Float_t | sigcor1 |
| Double_t | time0 |
| Double_t | time1 |
| Int_t | pmtindex0 |
| Int_t | pmtindex1 |
| UInt_t | seid |
| std::vector< Short_t > | evt |
| std::vector< Short_t > | trk |
| std::vector< Short_t > | shw |
| std::vector< Short_t > | slc |
| TrackInfoMap | trk_info |
| DataVec | fData |
Friends | |
| class | FillStrip |
|
|
Definition at line 40 of file PhysicsNtuple/Strip.h. Referenced by GetInfo(). |
|
|
Definition at line 39 of file PhysicsNtuple/Strip.h. |
|
|
Definition at line 27 of file PhysicsNtuple/Strip.cxx. References adc, index, ndigit, pe, plane, planeview, pmtindex0, pmtindex1, seid, sigcor0, sigcor1, siglin, strip, time0, time1, tpos, and zpos. 00028 :index (-1), 00029 strip (0), 00030 plane (0), 00031 ndigit (0), 00032 planeview('0'), 00033 tpos (-1.0e6), 00034 zpos (-1.0e6), 00035 adc (-1.0e6), 00036 pe (-1.0e6), 00037 siglin (-1.0e6), 00038 sigcor0 (-1.0e6), 00039 sigcor1 (-1.0e6), 00040 time0 (-1.0e6), 00041 time1 (-1.0e6), 00042 pmtindex0(-1), 00043 pmtindex1(-1), 00044 seid (0) 00045 { 00046 }
|
|
|
Definition at line 49 of file PhysicsNtuple/Strip.cxx. 00050 {
00051 }
|
|
|
Definition at line 180 of file PhysicsNtuple/Strip.h. 00180 { return adc; }
|
|
||||||||||||
|
Definition at line 83 of file PhysicsNtuple/Strip.cxx. References Anp::Data, fData, and KeyExists(). 00084 {
00085 //
00086 // Add data at key, if key does not already exits
00087 //
00088
00089 assert(std::abs(key) < SHRT_MAX && "key is out of range");
00090
00091 if(KeyExists(key))
00092 {
00093 cerr << "Strip::Add(" << key << ") - key already exists" << endl;
00094 return false;
00095 }
00096
00097 fData.push_back(Anp::Data(short(key), data));
00098 return true;
00099 }
|
|
|
Definition at line 54 of file PhysicsNtuple/Strip.cxx. References adc, evt, fData, index, ndigit, pe, plane, planeview, pmtindex0, pmtindex1, seid, shw, sigcor0, sigcor1, siglin, slc, strip, time0, time1, tpos, trk, trk_info, and zpos. 00055 {
00056 index = -1;
00057 strip = 0;
00058 plane = 0;
00059 ndigit = 0;
00060 planeview = '0';
00061 tpos = -1.0e6;
00062 zpos = -1.0e6;
00063 adc = -1.0e6;
00064 pe = -1.0e6;
00065 siglin = -1.0e6;
00066 sigcor0 = -1.0e6;
00067 sigcor1 = -1.0e6;
00068 time0 = -1.0e6;
00069 time1 = -1.0e6;
00070 pmtindex0 = -1;
00071 pmtindex1 = -1;
00072 seid = 0;
00073
00074 evt.clear();
00075 shw.clear();
00076 slc.clear();
00077 trk.clear();
00078 trk_info.clear();
00079 fData.clear();
00080 }
|
|
|
Definition at line 188 of file PhysicsNtuple/Strip.cxx. References Anp::Data, Anp::DataIter, fData, and find(). Referenced by operator[](). 00189 {
00190 DataIter it = std::find(fData.begin(), fData.end(), key);
00191 if(it == fData.end())
00192 {
00193 std::cerr << "Strip::DataAt(" << key << ") - key does not exist" << std::endl;
00194 return -1.0e6;
00195 }
00196
00197 return it -> Data();
00198 }
|
|
|
Definition at line 214 of file PhysicsNtuple/Strip.h. References Anp::DataIter, and fData. 00214 { return fData.begin(); }
|
|
|
Definition at line 215 of file PhysicsNtuple/Strip.h. References Anp::DataIter, and fData. 00215 { return fData.end(); }
|
|
|
Definition at line 191 of file PhysicsNtuple/Strip.h. 00191 { return time0; }
|
|
|
Definition at line 160 of file PhysicsNtuple/Strip.h. 00160 { return evt; }
|
|
|
Definition at line 167 of file PhysicsNtuple/Strip.h. 00167 { return ndigit; }
|
|
|
Definition at line 173 of file PhysicsNtuple/Strip.h. Referenced by Anp::FillMuonId::Get(), Anp::Pmt::IsSamePmt(), Anp::FillShortVar::OtherStripEnergy(), and Anp::PmtHit::Plot(). 00174 {
00175 return seid;
00176 }
|
|
|
Definition at line 102 of file PhysicsNtuple/Strip.cxx. References TrackInfoIter, and trk_info. 00103 {
00104 TrackInfoIter fit = trk_info.find(track_index);
00105 if(fit != trk_info.end())
00106 {
00107 return fit;
00108 }
00109
00110 std::cerr << "Failed to find info for track with index " << track_index << std::endl;
00111 return trk_info.end();
00112 }
|
|
|
Definition at line 166 of file PhysicsNtuple/Strip.h. Referenced by Anp::ByPlaneStrip::operator()(), Anp::CountAboveBelow::operator()(), and Anp::CountPlaneStrip::operator()(). 00166 { return plane; }
|
|
|
Definition at line 169 of file PhysicsNtuple/Strip.h. 00170 {
00171 return planeview;
00172 }
|
|
|
Definition at line 165 of file PhysicsNtuple/Strip.h. Referenced by Anp::PlotPmt::Collect(), Anp::ByPlaneStrip::operator()(), Anp::CountAboveBelow::operator()(), Anp::CountPlaneStrip::operator()(), and Anp::PmtHit::Plot(). 00165 { return strip; }
|
|
|
Definition at line 156 of file PhysicsNtuple/Strip.h. Referenced by Anp::operator==(). 00157 {
00158 return index;
00159 }
|
|
|
Definition at line 211 of file PhysicsNtuple/Strip.h. References trk_info. 00211 { return trk_info.begin(); }
|
|
|
Definition at line 212 of file PhysicsNtuple/Strip.h. References trk_info. 00212 { return trk_info.end(); }
|
|
|
Definition at line 142 of file PhysicsNtuple/Strip.cxx. References planeview. Referenced by Anp::FillMuonId::Get(), and Anp::FillShortVar::OtherStripEnergy(). 00143 {
00144 if(int(planeview) == 2)
00145 {
00146 return true;
00147 }
00148 else if(int(planeview) == 3)
00149 {
00150 return false;
00151 }
00152
00153 std::cerr << "Strip::IsUview - this strip is not initialized" << std::endl;
00154
00155 return false;
00156 }
|
|
|
Definition at line 159 of file PhysicsNtuple/Strip.cxx. References planeview. 00160 {
00161 if(int(planeview) == 3)
00162 {
00163 return true;
00164 }
00165 else if(int(planeview) == 2)
00166 {
00167 return false;
00168 }
00169
00170 std::cerr << "Strip::IsUview - this strip is not initialized" << std::endl;
00171
00172 return false;
00173 }
|
|
|
Definition at line 176 of file PhysicsNtuple/Strip.cxx. Referenced by Add().
|
|
|
Definition at line 194 of file PhysicsNtuple/Strip.h.
|
|
|
Definition at line 198 of file PhysicsNtuple/Strip.h.
|
|
|
Definition at line 202 of file PhysicsNtuple/Strip.h.
|
|
|
Definition at line 206 of file PhysicsNtuple/Strip.h.
|
|
|
Definition at line 182 of file PhysicsNtuple/Strip.cxx. References DataAt(). 00183 {
00184 return DataAt(key);
00185 }
|
|
|
Definition at line 181 of file PhysicsNtuple/Strip.h. Referenced by Anp::PmtHit::Plot(). 00181 { return pe; }
|
|
|
Definition at line 201 of file PhysicsNtuple/Strip.cxx. References adc, index, plane, planeview, strip, Time(), tpos, and zpos. 00202 {
00203 os << "Strip::Print" << endl
00204 << " index=" << index << endl
00205 << " strip=" << strip << endl
00206 << " plane=" << plane << endl
00207 << " planeview=" << short(planeview) << endl
00208 << " tpos=" << tpos << endl
00209 << " zpos=" << zpos << endl
00210 << " adc=" << adc << endl
00211 << " time=" << Time() << endl;
00212 }
|
|
|
Definition at line 162 of file PhysicsNtuple/Strip.h. 00162 { return shw; }
|
|
|
Definition at line 183 of file PhysicsNtuple/Strip.h. References sigcor0. Referenced by Anp::FillMuonId::Get(), Anp::BySigCor::operator()(), Anp::CountAboveBelow::operator()(), and Anp::FillShortVar::OtherStripEnergy(). 00184 {
00185 return sigcor0 + sigcor1;
00186 }
|
|
|
Definition at line 188 of file PhysicsNtuple/Strip.h. Referenced by Anp::FillMuonId::Get(), and Anp::FillShortVar::OtherStripEnergy(). 00188 { return sigcor0; }
|
|
|
Definition at line 189 of file PhysicsNtuple/Strip.h. Referenced by Anp::FillMuonId::Get(), and Anp::FillShortVar::OtherStripEnergy(). 00189 { return sigcor1; }
|
|
|
Definition at line 182 of file PhysicsNtuple/Strip.h. 00182 { return siglin; }
|
|
|
Definition at line 163 of file PhysicsNtuple/Strip.h. 00163 { return slc; }
|
|
|
Definition at line 115 of file PhysicsNtuple/Strip.cxx. References pmtindex0, pmtindex1, sigcor0, sigcor1, and time0. Referenced by Anp::DrawSpan::FindSpan(), Anp::SnarlTimeTab::GetTime(), Anp::PmtHit::Plot(), and Print(). 00116 {
00117 //
00118 // In MINOS reconstruction before 07/14/2007 pmtindex0 and pmtindex1 are
00119 // set by default to 0. After this date, default value is -1. FillStrip
00120 // algorithm sets pmtindex0 and pmtindex1 to non negative value
00121 // for channels with non zero pmtindex or non zero adc.
00122 //
00123
00124 if((pmtindex0 >= 0 && sigcor0 > 0.0) && (pmtindex1 >= 0 && sigcor1 > 0.0))
00125 {
00126 return 0.5*(time0 + time1);
00127 }
00128 else if(pmtindex0 >= 0 && sigcor0 > 0.0)
00129 {
00130 return time0;
00131 }
00132 else if(pmtindex1 >= 0 && sigcor1 > 0.0)
00133 {
00134 return time1;
00135 }
00136
00137 std::cerr << "Strip::Time - failed to find valid strip end" << std::endl;
00138 return -1.0e6;
00139 }
|
|
|
Definition at line 178 of file PhysicsNtuple/Strip.h. Referenced by Anp::DrawSpan::FindSpan(), Anp::FillMuonId::Get(), and Anp::FillShortVar::OtherStripEnergy(). 00178 { return tpos; }
|
|
|
Definition at line 161 of file PhysicsNtuple/Strip.h. 00161 { return trk; }
|
|
|
Definition at line 192 of file PhysicsNtuple/Strip.h. 00192 { return time1; }
|
|
|
Definition at line 179 of file PhysicsNtuple/Strip.h. Referenced by Anp::DrawSpan::FindSpan(), Anp::FillMuonId::Get(), and Anp::FillShortVar::OtherStripEnergy(). 00179 { return zpos; }
|
|
|
Definition at line 104 of file PhysicsNtuple/Strip.h. |
|
|
Definition at line 113 of file PhysicsNtuple/Strip.h. Referenced by Clear(), Print(), Anp::FillStrip::Run(), and Strip(). |
|
|
Definition at line 124 of file PhysicsNtuple/Strip.h. Referenced by Clear(), Anp::FillStrip::GetEvtStrip(), and MatchEvt(). |
|
|
Definition at line 131 of file PhysicsNtuple/Strip.h. Referenced by Add(), Clear(), DataAt(), DataBeg(), DataEnd(), and KeyExists(). |
|
|
Definition at line 106 of file PhysicsNtuple/Strip.h. Referenced by Clear(), Anp::FillStrip::GetEvtStrip(), Anp::FillStrip::GetShwStrip(), Anp::FillStrip::GetSlcStrip(), Anp::FillStrip::GetTrkStrip(), Print(), Anp::FillStrip::Run(), and Strip(). |
|
|
Definition at line 109 of file PhysicsNtuple/Strip.h. Referenced by Clear(), Anp::FillStrip::Run(), and Strip(). |
|
|
Definition at line 114 of file PhysicsNtuple/Strip.h. Referenced by Clear(), Anp::FillStrip::Run(), and Strip(). |
|
|
Definition at line 108 of file PhysicsNtuple/Strip.h. Referenced by Clear(), Anp::FillStrip::GetSEID(), Print(), Anp::FillStrip::Run(), and Strip(). |
|
|
Definition at line 110 of file PhysicsNtuple/Strip.h. Referenced by Clear(), IsUview(), IsVview(), Print(), Anp::FillStrip::Run(), and Strip(). |
|
|
Definition at line 120 of file PhysicsNtuple/Strip.h. Referenced by Clear(), Anp::FillStrip::GetSEID(), Anp::FillStrip::Run(), Strip(), and Time(). |
|
|
Definition at line 121 of file PhysicsNtuple/Strip.h. Referenced by Clear(), Anp::FillStrip::GetSEID(), Anp::FillStrip::Run(), Strip(), and Time(). |
|
|
Definition at line 122 of file PhysicsNtuple/Strip.h. Referenced by Clear(), Anp::FillStrip::Run(), and Strip(). |
|
|
Definition at line 126 of file PhysicsNtuple/Strip.h. Referenced by Clear(), Anp::FillStrip::GetShwStrip(), and MatchShw(). |
|
|
Definition at line 116 of file PhysicsNtuple/Strip.h. Referenced by Clear(), Anp::FillStrip::GetSEID(), Anp::FillStrip::Run(), SigCor(), Strip(), and Time(). |
|
|
Definition at line 117 of file PhysicsNtuple/Strip.h. Referenced by Clear(), Anp::FillStrip::GetSEID(), Anp::FillStrip::Run(), Strip(), and Time(). |
|
|
Definition at line 115 of file PhysicsNtuple/Strip.h. Referenced by Clear(), Anp::FillStrip::Run(), and Strip(). |
|
|
Definition at line 127 of file PhysicsNtuple/Strip.h. Referenced by Clear(), Anp::FillStrip::GetSlcStrip(), and MatchSlc(). |
|
|
Definition at line 107 of file PhysicsNtuple/Strip.h. Referenced by Clear(), Anp::FillStrip::GetSEID(), Print(), Anp::FillStrip::Run(), and Strip(). |
|
|
Definition at line 118 of file PhysicsNtuple/Strip.h. Referenced by Clear(), Anp::FillStrip::Run(), Strip(), and Time(). |
|
|
Definition at line 119 of file PhysicsNtuple/Strip.h. Referenced by Clear(), Anp::FillStrip::Run(), and Strip(). |
|
|
Definition at line 111 of file PhysicsNtuple/Strip.h. Referenced by Clear(), Print(), Anp::FillStrip::Run(), and Strip(). |
|
|
Definition at line 125 of file PhysicsNtuple/Strip.h. Referenced by Clear(), Anp::FillStrip::GetTrkStrip(), and MatchTrk(). |
|
|
Definition at line 129 of file PhysicsNtuple/Strip.h. Referenced by Clear(), GetInfo(), Anp::FillStrip::GetTrkStrip(), InfoBegIter(), and InfoEndIter(). |
|
|
Definition at line 112 of file PhysicsNtuple/Strip.h. Referenced by Clear(), Print(), Anp::FillStrip::Run(), and Strip(). |
1.3.9.1