cms-gem-daq-project / gem-plotting-tools

Repository for GEM commissioning plotting tools
GNU General Public License v3.0
1 stars 26 forks source link

Feature Request: 2D Map of Detector Scurve Width #120

Closed bdorney closed 6 years ago

bdorney commented 6 years ago

Brief summary of issue

To better correlate channel loss with physical location on the detector a new distribution is needed. It should be a TH2F which has on the y-axis ieta and on the x-axis strip. Here strip should go as 0 to 383. The z-axis should be the scurve width.

However additional distributions may be of interest in the future so we should add a function to anautilities.py. This function should take as input either a dictionary or a multidimensional numpy array. In either case something of the form of:

def makeDetectorMap(inputContainer):
"""
inputContainer  - container where inputContainer[vfat][ROBstr] is the observable of interest for (vfat, ROBstr) ordered pair
"""
    #initialize some TH2F object called hDetectorMap

    #Loop over inputContainer[vfat][ROBstr]
         #Get ieta position corresponding to (vfat, ROBstr) using chamber_vfatPos2iEta
         #Determine binX and binY of hDetectorMap that corresponds to (vfat, ROBstr)
         #Use the TH2F::SetBinContent() method to set inputContainer[vfat][ROBstr] to (binX,binY)

    return hDetectorMap

Where is imported from chamber_vfatPos2iEta comes from chamberInfo Line 72

Then add making a detector map of scurve width in anaUltraScurve.py

Types of issue

Expected Behavior

We should make a physical map of scurve width as a single 2D plot across the detector in anaUltraScurve.py

Current Behavior

See above pseudocode.

Context (for feature requests)

Will help us understand the nature of the channel loss.

bdorney commented 6 years ago

Addressed by #122