CMS 3D CMS Logo

Public Member Functions | Private Member Functions | Private Attributes

L1MuDTTFMasks Class Reference

#include <L1MuDTTFMasks.h>

List of all members.

Public Member Functions

bool get_etsoc_chdis_st1 (int wh, int sc) const
bool get_etsoc_chdis_st2 (int wh, int sc) const
bool get_etsoc_chdis_st3 (int wh, int sc) const
bool get_inrec_chdis_csc (int wh, int sc) const
bool get_inrec_chdis_st1 (int wh, int sc) const
bool get_inrec_chdis_st2 (int wh, int sc) const
bool get_inrec_chdis_st3 (int wh, int sc) const
bool get_inrec_chdis_st4 (int wh, int sc) const
 L1MuDTTFMasks ()
 constructor
void print () const
void reset ()
 reset parameters to zero
void set_etsoc_chdis_st1 (int wh, int sc, const bool val)
void set_etsoc_chdis_st2 (int wh, int sc, const bool val)
void set_etsoc_chdis_st3 (int wh, int sc, const bool val)
void set_inrec_chdis_csc (int wh, int sc, const bool val)
void set_inrec_chdis_st1 (int wh, int sc, const bool val)
void set_inrec_chdis_st2 (int wh, int sc, const bool val)
void set_inrec_chdis_st3 (int wh, int sc, const bool val)
void set_inrec_chdis_st4 (int wh, int sc, const bool val)
virtual ~L1MuDTTFMasks ()
 destructor

Private Member Functions

int check (int wh, int sc) const

Private Attributes

bool etsoc_chdis_st1 [6][12]
bool etsoc_chdis_st2 [6][12]
bool etsoc_chdis_st3 [6][12]
bool inrec_chdis_csc [6][12]
bool inrec_chdis_st1 [6][12]
bool inrec_chdis_st2 [6][12]
bool inrec_chdis_st3 [6][12]
bool inrec_chdis_st4 [6][12]

Detailed Description

DTTF Masks from OMDS

Date:
2009/05/12 09:16:28
Revision:
1.1

J. Troconiz UAM Madrid

Definition at line 38 of file L1MuDTTFMasks.h.


Constructor & Destructor Documentation

L1MuDTTFMasks::L1MuDTTFMasks ( ) [inline]

constructor

Definition at line 43 of file L1MuDTTFMasks.h.

{}
virtual L1MuDTTFMasks::~L1MuDTTFMasks ( ) [inline, virtual]

destructor

Definition at line 46 of file L1MuDTTFMasks.h.

{}

Member Function Documentation

int L1MuDTTFMasks::check ( int  wh,
int  sc 
) const [private]

Definition at line 161 of file L1MuDTTFMasks.cc.

                                             {

  if ( sc<0 || sc>11 || wh==0 || wh>3 || wh<-3 ) return -99; 

  if ( wh < 0 ) return wh+3;
  else return wh+2;
}
bool L1MuDTTFMasks::get_etsoc_chdis_st1 ( int  wh,
int  sc 
) const

Definition at line 131 of file L1MuDTTFMasks.cc.

References CastorDataFrameFilter_impl::check().

                                                           {

  if ( check(wh,sc) == -99 ) return false;
  return etsoc_chdis_st1[check(wh,sc)][sc];
}
bool L1MuDTTFMasks::get_etsoc_chdis_st2 ( int  wh,
int  sc 
) const

Definition at line 143 of file L1MuDTTFMasks.cc.

References CastorDataFrameFilter_impl::check().

                                                           {

  if ( check(wh,sc) == -99 ) return false;
  return etsoc_chdis_st2[check(wh,sc)][sc];
}
bool L1MuDTTFMasks::get_etsoc_chdis_st3 ( int  wh,
int  sc 
) const

Definition at line 155 of file L1MuDTTFMasks.cc.

References CastorDataFrameFilter_impl::check().

                                                           {

  if ( check(wh,sc) == -99 ) return false;
  return etsoc_chdis_st3[check(wh,sc)][sc];
}
bool L1MuDTTFMasks::get_inrec_chdis_csc ( int  wh,
int  sc 
) const

Definition at line 119 of file L1MuDTTFMasks.cc.

References CastorDataFrameFilter_impl::check().

                                                           {

  if ( check(wh,sc) == -99 ) return false;
  return inrec_chdis_csc[check(wh,sc)][sc];
}
bool L1MuDTTFMasks::get_inrec_chdis_st1 ( int  wh,
int  sc 
) const

Definition at line 71 of file L1MuDTTFMasks.cc.

References CastorDataFrameFilter_impl::check().

                                                           {

  if ( check(wh,sc) == -99 ) return false;
  return inrec_chdis_st1[check(wh,sc)][sc];
}
bool L1MuDTTFMasks::get_inrec_chdis_st2 ( int  wh,
int  sc 
) const

Definition at line 83 of file L1MuDTTFMasks.cc.

References CastorDataFrameFilter_impl::check().

                                                           {

  if ( check(wh,sc) == -99 ) return false;
  return inrec_chdis_st2[check(wh,sc)][sc];
}
bool L1MuDTTFMasks::get_inrec_chdis_st3 ( int  wh,
int  sc 
) const

Definition at line 95 of file L1MuDTTFMasks.cc.

References CastorDataFrameFilter_impl::check().

                                                           {

  if ( check(wh,sc) == -99 ) return false;
  return inrec_chdis_st3[check(wh,sc)][sc];
}
bool L1MuDTTFMasks::get_inrec_chdis_st4 ( int  wh,
int  sc 
) const

Definition at line 107 of file L1MuDTTFMasks.cc.

References CastorDataFrameFilter_impl::check().

                                                           {

  if ( check(wh,sc) == -99 ) return false;
  return inrec_chdis_st4[check(wh,sc)][sc];
}
void L1MuDTTFMasks::print ( void  ) const

Definition at line 169 of file L1MuDTTFMasks.cc.

References gather_cfg::cout, i, and j.

                                {

  cout << endl;
  cout << "L1 barrel Track Finder Masks :" << endl;
  cout << "==============================" << endl;
  cout << endl;

  cout << endl;
  cout << "Disable PHTF St.1 :" << endl;
  cout << "===================" << endl;
  cout << endl;
  for( int i=-3; i<4; i++ ) {
    if ( i == 0 ) continue;
    for( int j=0; j<12; j++ ) { cout << " " << setw(1) << get_inrec_chdis_st1(i,j); }
    cout << endl; }

  cout << endl;
  cout << "Disable PHTF St.2 :" << endl;
  cout << "===================" << endl;
  cout << endl;
  for( int i=-3; i<4; i++ ) {
    if ( i == 0 ) continue;
    for( int j=0; j<12; j++ ) { cout << " " << setw(1) << get_inrec_chdis_st2(i,j); }
    cout << endl; }

  cout << endl;
  cout << "Disable PHTF St.3 :" << endl;
  cout << "===================" << endl;
  cout << endl;
  for( int i=-3; i<4; i++ ) {
    if ( i == 0 ) continue;
    for( int j=0; j<12; j++ ) { cout << " " << setw(1) << get_inrec_chdis_st3(i,j); }
    cout << endl; }

  cout << endl;
  cout << "Disable PHTF St.4 :" << endl;
  cout << "===================" << endl;
  cout << endl;
  for( int i=-3; i<4; i++ ) {
    if ( i == 0 ) continue;
    for( int j=0; j<12; j++ ) { cout << " " << setw(1) << get_inrec_chdis_st4(i,j); }
    cout << endl; }

  cout << endl;
  cout << "Disable CSC :" << endl;
  cout << "=============" << endl;
  cout << endl;
  for( int i=-3; i<4; i++ ) {
    if ( i == 0 ) continue;
    for( int j=0; j<12; j++ ) { cout << " " << setw(1) << get_inrec_chdis_csc(i,j); }
    cout << endl; }

  cout << endl;
  cout << "Disable ETTF St.1 :" << endl;
  cout << "===================" << endl;
  cout << endl;
  for( int i=-3; i<4; i++ ) {
    if ( i == 0 ) continue;
    for( int j=0; j<12; j++ ) { cout << " " << setw(1) << get_etsoc_chdis_st1(i,j); }
    cout << endl; }

  cout << endl;
  cout << "Disable ETTF St.2 :" << endl;
  cout << "===================" << endl;
  cout << endl;
  for( int i=-3; i<4; i++ ) {
    if ( i == 0 ) continue;
    for( int j=0; j<12; j++ ) { cout << " " << setw(1) << get_etsoc_chdis_st2(i,j); }
    cout << endl; }

  cout << endl;
  cout << "Disable ETTF St.3 :" << endl;
  cout << "===================" << endl;
  cout << endl;
  for( int i=-3; i<4; i++ ) {
    if ( i == 0 ) continue;
    for( int j=0; j<12; j++ ) { cout << " " << setw(1) << get_etsoc_chdis_st3(i,j); }
    cout << endl; }

}
void L1MuDTTFMasks::reset ( void  )

reset parameters to zero

Definition at line 48 of file L1MuDTTFMasks.cc.

References i, and j.

                          {

  for( int i=0; i<6; i++ ) {
    for( int j=0; j<12; j++ ) {

      inrec_chdis_st1[i][j]  = false;
      inrec_chdis_st2[i][j]  = false;
      inrec_chdis_st3[i][j]  = false;
      inrec_chdis_st4[i][j]  = false;
      inrec_chdis_csc[i][j]  = false;
      etsoc_chdis_st1[i][j]  = false;
      etsoc_chdis_st2[i][j]  = false;
      etsoc_chdis_st3[i][j]  = false;
    }
  }
}
void L1MuDTTFMasks::set_etsoc_chdis_st1 ( int  wh,
int  sc,
const bool  val 
)

Definition at line 125 of file L1MuDTTFMasks.cc.

References CastorDataFrameFilter_impl::check().

                                                                      {

  if ( check(wh,sc) == -99 ) return;
  etsoc_chdis_st1[check(wh,sc)][sc] = val;
}
void L1MuDTTFMasks::set_etsoc_chdis_st2 ( int  wh,
int  sc,
const bool  val 
)

Definition at line 137 of file L1MuDTTFMasks.cc.

References CastorDataFrameFilter_impl::check().

                                                                      {

  if ( check(wh,sc) == -99 ) return;
  etsoc_chdis_st2[check(wh,sc)][sc] = val;
}
void L1MuDTTFMasks::set_etsoc_chdis_st3 ( int  wh,
int  sc,
const bool  val 
)

Definition at line 149 of file L1MuDTTFMasks.cc.

References CastorDataFrameFilter_impl::check().

                                                                      {

  if ( check(wh,sc) == -99 ) return;
  etsoc_chdis_st3[check(wh,sc)][sc] = val;
}
void L1MuDTTFMasks::set_inrec_chdis_csc ( int  wh,
int  sc,
const bool  val 
)

Definition at line 113 of file L1MuDTTFMasks.cc.

References CastorDataFrameFilter_impl::check().

                                                                      {

  if ( check(wh,sc) == -99 ) return;
  inrec_chdis_csc[check(wh,sc)][sc] = val;
}
void L1MuDTTFMasks::set_inrec_chdis_st1 ( int  wh,
int  sc,
const bool  val 
)

Definition at line 65 of file L1MuDTTFMasks.cc.

References CastorDataFrameFilter_impl::check().

                                                                      {

  if ( check(wh,sc) == -99 ) return;
  inrec_chdis_st1[check(wh,sc)][sc] = val;
}
void L1MuDTTFMasks::set_inrec_chdis_st2 ( int  wh,
int  sc,
const bool  val 
)

Definition at line 77 of file L1MuDTTFMasks.cc.

References CastorDataFrameFilter_impl::check().

                                                                      {

  if ( check(wh,sc) == -99 ) return;
  inrec_chdis_st2[check(wh,sc)][sc] = val;
}
void L1MuDTTFMasks::set_inrec_chdis_st3 ( int  wh,
int  sc,
const bool  val 
)

Definition at line 89 of file L1MuDTTFMasks.cc.

References CastorDataFrameFilter_impl::check().

                                                                      {

  if ( check(wh,sc) == -99 ) return;
  inrec_chdis_st3[check(wh,sc)][sc] = val;
}
void L1MuDTTFMasks::set_inrec_chdis_st4 ( int  wh,
int  sc,
const bool  val 
)

Definition at line 101 of file L1MuDTTFMasks.cc.

References CastorDataFrameFilter_impl::check().

                                                                      {

  if ( check(wh,sc) == -99 ) return;
  inrec_chdis_st4[check(wh,sc)][sc] = val;
}

Member Data Documentation

bool L1MuDTTFMasks::etsoc_chdis_st1[6][12] [private]

Definition at line 81 of file L1MuDTTFMasks.h.

bool L1MuDTTFMasks::etsoc_chdis_st2[6][12] [private]

Definition at line 82 of file L1MuDTTFMasks.h.

bool L1MuDTTFMasks::etsoc_chdis_st3[6][12] [private]

Definition at line 83 of file L1MuDTTFMasks.h.

bool L1MuDTTFMasks::inrec_chdis_csc[6][12] [private]

Definition at line 80 of file L1MuDTTFMasks.h.

bool L1MuDTTFMasks::inrec_chdis_st1[6][12] [private]

Definition at line 76 of file L1MuDTTFMasks.h.

bool L1MuDTTFMasks::inrec_chdis_st2[6][12] [private]

Definition at line 77 of file L1MuDTTFMasks.h.

bool L1MuDTTFMasks::inrec_chdis_st3[6][12] [private]

Definition at line 78 of file L1MuDTTFMasks.h.

bool L1MuDTTFMasks::inrec_chdis_st4[6][12] [private]

Definition at line 79 of file L1MuDTTFMasks.h.