CMS 3D CMS Logo

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

Classes

struct  Parsed
 

Public Member Functions

void book (const std::string &prefix, TTree *tree)
 
void clear ()
 
 DetIdStripOnly ()
 
void push_back (const TrackerTopology &tTopo, const DetId &id)
 
void resize (size_t size)
 
void set (size_t index, const TrackerTopology &tTopo, const DetId &id)
 

Private Member Functions

Parsed parse (const TrackerTopology &tTopo, const DetId &id) const
 

Private Attributes

std::vector< unsigned short > isGlued
 
std::vector< unsigned short > isRPhi
 
std::vector< unsigned short > isStereo
 
std::vector< unsigned short > petalNumber
 
std::vector< unsigned short > string
 

Detailed Description

Definition at line 830 of file TrackingNtuple.cc.

Constructor & Destructor Documentation

◆ DetIdStripOnly()

TrackingNtuple::DetIdStripOnly::DetIdStripOnly ( )
inline

Definition at line 832 of file TrackingNtuple.cc.

832 {}

Member Function Documentation

◆ book()

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

Definition at line 834 of file TrackingNtuple.cc.

834  {
835  BOOK(string);
836  BOOK(petalNumber);
837  BOOK(isStereo);
838  BOOK(isRPhi);
839  BOOK(isGlued);
840  }

References BOOK, isGlued, isRPhi, isStereo, and petalNumber.

◆ clear()

void TrackingNtuple::DetIdStripOnly::clear ( void  )
inline

Definition at line 868 of file TrackingNtuple.cc.

868  {
869  string.clear();
870  isStereo.clear();
871  isRPhi.clear();
872  isGlued.clear();
873  petalNumber.clear();
874  }

References isGlued, isRPhi, isStereo, and petalNumber.

◆ parse()

Parsed TrackingNtuple::DetIdStripOnly::parse ( const TrackerTopology tTopo,
const DetId id 
) const
inlineprivate

Definition at line 884 of file TrackingNtuple.cc.

884  {
885  switch (id.subdetId()) {
887  return Parsed{tTopo.tibString(id), 0, tTopo.tibIsDoubleSide(id)};
889  return Parsed{0, 0, tTopo.tidIsDoubleSide(id)};
891  return Parsed{0, 0, tTopo.tobIsDoubleSide(id)};
893  return Parsed{0, tTopo.tecPetalNumber(id), tTopo.tecIsDoubleSide(id)};
894  default:
895  return Parsed{};
896  }
897  }

References StripSubdetector::TEC, TrackerTopology::tecIsDoubleSide(), TrackerTopology::tecPetalNumber(), StripSubdetector::TIB, TrackerTopology::tibIsDoubleSide(), TrackerTopology::tibString(), StripSubdetector::TID, TrackerTopology::tidIsDoubleSide(), StripSubdetector::TOB, and TrackerTopology::tobIsDoubleSide().

Referenced by push_back(), and set().

◆ push_back()

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

Definition at line 842 of file TrackingNtuple.cc.

842  {
843  const auto parsed = parse(tTopo, id);
844  string.push_back(parsed.string);
845  petalNumber.push_back(parsed.petalNumber);
846  isStereo.push_back(tTopo.isStereo(id));
847  isRPhi.push_back(tTopo.isRPhi(id));
848  isGlued.push_back(parsed.glued);
849  }

References isGlued, TrackerTopology::isRPhi(), isRPhi, TrackerTopology::isStereo(), isStereo, parse(), and petalNumber.

◆ resize()

void TrackingNtuple::DetIdStripOnly::resize ( size_t  size)
inline

Definition at line 851 of file TrackingNtuple.cc.

851  {
852  string.resize(size);
853  petalNumber.resize(size);
854  isStereo.resize(size);
855  isRPhi.resize(size);
856  isGlued.resize(size);
857  }

References isGlued, isRPhi, isStereo, petalNumber, and findQualityFiles::size.

◆ set()

void TrackingNtuple::DetIdStripOnly::set ( size_t  index,
const TrackerTopology tTopo,
const DetId id 
)
inline

Definition at line 859 of file TrackingNtuple.cc.

859  {
860  const auto parsed = parse(tTopo, id);
861  string[index] = parsed.string;
862  petalNumber[index] = parsed.petalNumber;
863  isStereo[index] = tTopo.isStereo(id);
864  isRPhi[index] = tTopo.isRPhi(id);
865  isGlued[index] = parsed.glued;
866  }

References isGlued, TrackerTopology::isRPhi(), isRPhi, TrackerTopology::isStereo(), isStereo, parse(), and petalNumber.

Member Data Documentation

◆ isGlued

std::vector<unsigned short> TrackingNtuple::DetIdStripOnly::isGlued
private

Definition at line 903 of file TrackingNtuple.cc.

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

◆ isRPhi

std::vector<unsigned short> TrackingNtuple::DetIdStripOnly::isRPhi
private

Definition at line 902 of file TrackingNtuple.cc.

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

◆ isStereo

std::vector<unsigned short> TrackingNtuple::DetIdStripOnly::isStereo
private

Definition at line 901 of file TrackingNtuple.cc.

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

◆ petalNumber

std::vector<unsigned short> TrackingNtuple::DetIdStripOnly::petalNumber
private

Definition at line 900 of file TrackingNtuple.cc.

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

◆ string

std::vector<unsigned short> TrackingNtuple::DetIdStripOnly::string
private

Definition at line 899 of file TrackingNtuple.cc.

TrackerTopology::tobIsDoubleSide
bool tobIsDoubleSide(const DetId &id) const
Definition: TrackerTopology.h:245
TrackingNtuple::DetIdStripOnly::parse
Parsed parse(const TrackerTopology &tTopo, const DetId &id) const
Definition: TrackingNtuple.cc:884
TrackerTopology::tecIsDoubleSide
bool tecIsDoubleSide(const DetId &id) const
Definition: TrackerTopology.h:246
TrackerTopology::tidIsDoubleSide
bool tidIsDoubleSide(const DetId &id) const
Definition: TrackerTopology.h:250
TrackerTopology::isStereo
bool isStereo(const DetId &id) const
Definition: TrackerTopology.cc:158
StripSubdetector::TIB
static constexpr auto TIB
Definition: StripSubdetector.h:16
TrackingNtuple::DetIdStripOnly::petalNumber
std::vector< unsigned short > petalNumber
Definition: TrackingNtuple.cc:900
TrackingNtuple::DetIdStripOnly::isRPhi
std::vector< unsigned short > isRPhi
Definition: TrackingNtuple.cc:902
TrackerTopology::tibString
unsigned int tibString(const DetId &id) const
Definition: TrackerTopology.h:419
BOOK
#define BOOK(name)
Definition: TrackingNtuple.cc:670
TrackerTopology::tecPetalNumber
unsigned int tecPetalNumber(const DetId &id) const
Definition: TrackerTopology.h:221
TrackerTopology::isRPhi
bool isRPhi(const DetId &id) const
Definition: TrackerTopology.cc:177
StripSubdetector::TEC
static constexpr auto TEC
Definition: StripSubdetector.h:19
TrackingNtuple::DetIdStripOnly::isStereo
std::vector< unsigned short > isStereo
Definition: TrackingNtuple.cc:901
TrackerTopology::tibIsDoubleSide
bool tibIsDoubleSide(const DetId &id) const
Definition: TrackerTopology.h:249
TrackingNtuple::DetIdStripOnly::isGlued
std::vector< unsigned short > isGlued
Definition: TrackingNtuple.cc:903
StripSubdetector::TOB
static constexpr auto TOB
Definition: StripSubdetector.h:18
AlignmentPI::index
index
Definition: AlignmentPayloadInspectorHelper.h:46
StripSubdetector::TID
static constexpr auto TID
Definition: StripSubdetector.h:17
findQualityFiles.size
size
Write out results.
Definition: findQualityFiles.py:443