AltDeMuxPattern Class Reference

#include <AltDeMuxPatternMaster.h>

List of all members.

Public Member Functions

 AltDeMuxPattern (int i1)
 AltDeMuxPattern (int i1, int i2)
 AltDeMuxPattern (int i1, int i2, int i3)
 AltDeMuxPattern (int i1, int i2, int i3, int i4)
 AltDeMuxPattern (int i1, int i2, int i3, int i4, int i5)
PatternPair GetI (int i)
int Size ()

Private Member Functions

 ClassDef (AltDeMuxPattern, 1)

Private Attributes

int isize
std::vector< PatternPairpattern

Detailed Description

Definition at line 13 of file AltDeMuxPatternMaster.h.


Constructor & Destructor Documentation

AltDeMuxPattern::AltDeMuxPattern ( int  i1  ) 

Definition at line 320 of file AltDeMuxPatternMaster.cxx.

References PatternPair::eEntry, isize, pattern, and PatternPair::wEntry.

00321 {
00322 
00323   PatternPair p;
00324   int ie1 = i1/10;
00325   int iw1 = i1-ie1*10;
00326 
00327   isize = 1;
00328 
00329   p.eEntry = ie1;
00330   p.wEntry = iw1;
00331 
00332   pattern.push_back(p);
00333 
00334   return;
00335 
00336 }

AltDeMuxPattern::AltDeMuxPattern ( int  i1,
int  i2 
)

Definition at line 339 of file AltDeMuxPatternMaster.cxx.

References PatternPair::eEntry, isize, pattern, and PatternPair::wEntry.

00340 {
00341   PatternPair p1,p2;
00342 
00343   isize = 2;
00344 
00345   int ie1 = i1/10;
00346   int iw1 = i1-ie1*10;
00347   int ie2 = i2/10;
00348   int iw2 = i2-ie2*10;
00349 
00350   p1.eEntry = ie1;
00351   p1.wEntry = iw1;
00352   p2.eEntry = ie2;
00353   p2.wEntry = iw2;
00354   pattern.push_back(p1);
00355   pattern.push_back(p2);
00356 
00357   return;
00358 
00359 }

AltDeMuxPattern::AltDeMuxPattern ( int  i1,
int  i2,
int  i3 
)

Definition at line 362 of file AltDeMuxPatternMaster.cxx.

References PatternPair::eEntry, isize, pattern, and PatternPair::wEntry.

00363 {
00364 
00365   PatternPair p1,p2,p3;
00366 
00367   isize = 3;
00368 
00369   int ie1 = i1/10;
00370   int iw1 = i1-ie1*10;
00371   int ie2 = i2/10;
00372   int iw2 = i2-ie2*10;
00373   int ie3 = i3/10;
00374   int iw3 = i3-ie3*10;
00375 
00376   p1.eEntry = ie1;
00377   p1.wEntry = iw1;
00378   p2.eEntry = ie2;
00379   p2.wEntry = iw2;
00380   p3.eEntry = ie3;
00381   p3.wEntry = iw3;
00382   pattern.push_back(p1);
00383   pattern.push_back(p2);
00384   pattern.push_back(p3);
00385 
00386   return;
00387 
00388 }

AltDeMuxPattern::AltDeMuxPattern ( int  i1,
int  i2,
int  i3,
int  i4 
)

Definition at line 391 of file AltDeMuxPatternMaster.cxx.

References PatternPair::eEntry, isize, pattern, and PatternPair::wEntry.

00392 {
00393 
00394   PatternPair p1,p2,p3,p4;
00395 
00396   isize = 4;
00397 
00398   int ie1 = i1/10;
00399   int iw1 = i1-ie1*10;
00400   int ie2 = i2/10;
00401   int iw2 = i2-ie2*10;
00402   int ie3 = i3/10;
00403   int iw3 = i3-ie3*10;
00404   int ie4 = i4/10;
00405   int iw4 = i4-ie4*10;
00406 
00407 
00408   p1.eEntry = ie1;
00409   p1.wEntry = iw1;
00410   p2.eEntry = ie2;
00411   p2.wEntry = iw2;
00412   p3.eEntry = ie3;
00413   p3.wEntry = iw3;
00414   p4.eEntry = ie4;
00415   p4.wEntry = iw4;
00416   pattern.push_back(p1);
00417   pattern.push_back(p2);
00418   pattern.push_back(p3);
00419   pattern.push_back(p4);
00420 
00421   return;
00422 
00423 }

AltDeMuxPattern::AltDeMuxPattern ( int  i1,
int  i2,
int  i3,
int  i4,
int  i5 
)

Definition at line 426 of file AltDeMuxPatternMaster.cxx.

References PatternPair::eEntry, isize, pattern, and PatternPair::wEntry.

00427 {
00428 
00429   PatternPair p1,p2,p3,p4,p5;
00430 
00431   isize = 5;
00432 
00433   int ie1 = i1/10;
00434   int iw1 = i1-ie1*10;
00435   int ie2 = i2/10;
00436   int iw2 = i2-ie2*10;
00437   int ie3 = i3/10;
00438   int iw3 = i3-ie3*10;
00439   int ie4 = i4/10;
00440   int iw4 = i4-ie4*10;
00441   int ie5 = i5/10;
00442   int iw5 = i5-ie5*10;
00443 
00444   p1.eEntry = ie1;
00445   p1.wEntry = iw1;
00446   p2.eEntry = ie2;
00447   p2.wEntry = iw2;
00448   p3.eEntry = ie3;
00449   p3.wEntry = iw3;
00450   p4.eEntry = ie4;
00451   p4.wEntry = iw4;
00452   p5.eEntry = ie5;
00453   p5.wEntry = iw5;
00454   pattern.push_back(p1);
00455   pattern.push_back(p2);
00456   pattern.push_back(p3);
00457   pattern.push_back(p4);
00458   pattern.push_back(p5);
00459 
00460   return;
00461 
00462 }


Member Function Documentation

AltDeMuxPattern::ClassDef ( AltDeMuxPattern  ,
 
) [private]
PatternPair AltDeMuxPattern::GetI ( int  i  ) 

Definition at line 465 of file AltDeMuxPatternMaster.cxx.

References pattern.

Referenced by AlgAltDeMuxBase::SelectHits().

00466 {
00467   return pattern[i];
00468 }

int AltDeMuxPattern::Size (  )  [inline]

Definition at line 24 of file AltDeMuxPatternMaster.h.

References isize.

Referenced by AlgAltDeMuxBase::SelectHits().

00024 {return isize;};


Member Data Documentation

int AltDeMuxPattern::isize [private]

Definition at line 24 of file AltDeMuxPatternMaster.h.

Referenced by AltDeMuxPattern(), and Size().

std::vector<PatternPair> AltDeMuxPattern::pattern [private]

Definition at line 29 of file AltDeMuxPatternMaster.h.

Referenced by AltDeMuxPattern(), and GetI().


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

Generated on 22 Jul 2018 for loon by  doxygen 1.6.1