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 902 of file TrackingNtuple.cc.

Constructor & Destructor Documentation

◆ DetIdPhase2OTOnly()

TrackingNtuple::DetIdPhase2OTOnly::DetIdPhase2OTOnly ( )
inline

Definition at line 904 of file TrackingNtuple.cc.

904 {}

Member Function Documentation

◆ book()

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

Definition at line 906 of file TrackingNtuple.cc.

906  {
907  BOOK(isLower);
908  BOOK(isUpper);
909  BOOK(isStack);
910  }

References BOOK, isLower, isStack, and isUpper.

◆ clear()

void TrackingNtuple::DetIdPhase2OTOnly::clear ( void  )
inline

Definition at line 919 of file TrackingNtuple.cc.

919  {
920  isLower.clear();
921  isUpper.clear();
922  isStack.clear();
923  }

References isLower, isStack, and isUpper.

◆ push_back()

void TrackingNtuple::DetIdPhase2OTOnly::push_back ( const TrackerTopology tTopo,
const DetId id 
)
inline

Definition at line 912 of file TrackingNtuple.cc.

912  {
913  isLower.push_back(tTopo.isLower(id));
914  isUpper.push_back(tTopo.isUpper(id));
915  isStack.push_back(tTopo.stack(id) ==
916  0); // equivalent to *IsDoubleSide() but without the hardcoded layer+ring requirements
917  }

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

Member Data Documentation

◆ isLower

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

Definition at line 926 of file TrackingNtuple.cc.

Referenced by book(), clear(), and push_back().

◆ isStack

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

Definition at line 928 of file TrackingNtuple.cc.

Referenced by book(), clear(), and push_back().

◆ isUpper

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

Definition at line 927 of file TrackingNtuple.cc.

Referenced by book(), clear(), and push_back().

TrackerTopology::isLower
bool isLower(const DetId &id) const
Definition: TrackerTopology.cc:195
TrackerTopology::stack
uint32_t stack(const DetId &id) const
Definition: TrackerTopology.cc:104
BOOK
#define BOOK(name)
Definition: TrackingNtuple.cc:666
TrackingNtuple::DetIdPhase2OTOnly::isUpper
std::vector< unsigned short > isUpper
Definition: TrackingNtuple.cc:927
TrackerTopology::isUpper
bool isUpper(const DetId &id) const
Definition: TrackerTopology.cc:214
TrackingNtuple::DetIdPhase2OTOnly::isStack
std::vector< unsigned short > isStack
Definition: TrackingNtuple.cc:928
TrackingNtuple::DetIdPhase2OTOnly::isLower
std::vector< unsigned short > isLower
Definition: TrackingNtuple.cc:926