CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
TrackingNtuple::DetIdPhase2OTOnly Class Reference

Public Member Functions

void book (const std::string &prefix, TTree *tree)
 
void clear ()
 
 DetIdPhase2OTOnly ()
 
void push_back (const TrackerTopology &tTopo, const DetId &id)
 

Private Attributes

std::vector< unsigned short > isLower
 
std::vector< unsigned short > isStack
 
std::vector< unsigned short > isUpper
 

Detailed Description

Definition at line 788 of file TrackingNtuple.cc.

Constructor & Destructor Documentation

TrackingNtuple::DetIdPhase2OTOnly::DetIdPhase2OTOnly ( )
inline

Definition at line 790 of file TrackingNtuple.cc.

790 {}

Member Function Documentation

void TrackingNtuple::DetIdPhase2OTOnly::book ( const std::string &  prefix,
TTree *  tree 
)
inline

Definition at line 792 of file TrackingNtuple.cc.

References BOOK.

792  {
793  BOOK(isLower);
794  BOOK(isUpper);
795  BOOK(isStack);
796  }
#define BOOK(name)
std::vector< unsigned short > isUpper
std::vector< unsigned short > isStack
std::vector< unsigned short > isLower
void TrackingNtuple::DetIdPhase2OTOnly::clear ( void  )
inline

Definition at line 804 of file TrackingNtuple.cc.

804  {
805  isLower.clear();
806  isUpper.clear();
807  isStack.clear();
808  }
std::vector< unsigned short > isUpper
std::vector< unsigned short > isStack
std::vector< unsigned short > isLower
void TrackingNtuple::DetIdPhase2OTOnly::push_back ( const TrackerTopology tTopo,
const DetId id 
)
inline

Definition at line 798 of file TrackingNtuple.cc.

References TrackerTopology::isLower(), TrackerTopology::isUpper(), and TrackerTopology::stack().

798  {
799  isLower.push_back(tTopo.isLower(id));
800  isUpper.push_back(tTopo.isUpper(id));
801  isStack.push_back(tTopo.stack(id) == 0); // equivalent to *IsDoubleSide() but without the hardcoded layer+ring requirements
802  }
bool isLower(const DetId &id) const
std::vector< unsigned short > isUpper
bool isUpper(const DetId &id) const
std::vector< unsigned short > isStack
uint32_t stack(const DetId &id) const
std::vector< unsigned short > isLower

Member Data Documentation

std::vector<unsigned short> TrackingNtuple::DetIdPhase2OTOnly::isLower
private

Definition at line 811 of file TrackingNtuple.cc.

std::vector<unsigned short> TrackingNtuple::DetIdPhase2OTOnly::isStack
private

Definition at line 813 of file TrackingNtuple.cc.

std::vector<unsigned short> TrackingNtuple::DetIdPhase2OTOnly::isUpper
private

Definition at line 812 of file TrackingNtuple.cc.