a
    zn„f¯¹  ã                   @  sš  d Z ddlmZ ddlZddlZddlZddlZddlZe d¡Z	dZ
dZdZG dd	„ d	ejjjejjƒZe d
¡ZG dd„ dejjjejjƒZe d¡ZG dd„ dejjjejjƒZe d¡Ze d¡Ze d¡ZG dd„ dejjjejjƒZe d¡Ze d¡Ze d¡ZG dd„ dejjjejjƒZG dd„ dejjƒZ e d¡Z!G dd„ dejj"ƒZ#e ej$d< e#ej$d< e d¡Z%G dd„ dejj"ƒZ&d d!„ Z'dS )"zŠ
This module defines versioned models for ``TTree``.

See :doc:`uproot.behaviors.TBranch` for definitions of ``TTree``-reading
functions.
é    )ÚannotationsNz>qqqqdiiiqqqqq)Nsr  @ mÿÿÿÿTStreamerInfo @ W 	@          
TBranchRef #`³ý   @ -ÿÿÿÿTObjArray @                   @  uÿÿÿÿTStreamerBase @  _ @  U @  &         TBranchBranch descriptor                    —Š¬            BASE   @  ‰ÿÿÿÿTStreamerObjectPointer @  j @  d @  /         	fRefTablepointer to the TRefTable   @                               
TRefTable* Z
TBranchRefé   )NsU  @ PÿÿÿÿTStreamerInfo @ : 	@          	TRefTable Œ‰[…   @ ÿÿÿÿTObjArray @ ÿ                  @  uÿÿÿÿTStreamerBase @  _ @  U @  &         TObjectBasic ROOT object   B                �À-            BASE   @  ‚ÿÿÿÿTStreamerBasicType @  g @  a @  3         fSize dummy for backward compatibility                                  int@  ¹ÿÿÿÿTStreamerObjectPointer @  š @  ” @  _         fParentsIarray of Parent objects  (eg TTree branch) holding the referenced objects   @                               
TObjArray*@  ˆÿÿÿÿTStreamerObjectPointer @  i @  c @  0         fOwnerObject owning this TRefTable   @                               TObject*@  žÿÿÿÿTStreamerSTL @  ‰ @  { @  B         fProcessGUIDs'UUIDs of TProcessIDs used in fParentIDs  ô                               vector<string>      = Z	TRefTableé   )Nsv  @ qÿÿÿÿTStreamerInfo @ [ 	@          TTree rdà   @ 6ÿÿÿÿTObjArray @ $              !    @  �ÿÿÿÿTStreamerBase @  w @  m @  >         TNamed*The basis for a named object (name, title)   C                ß·J<            BASE   @  tÿÿÿÿTStreamerBase @  ^ @  T @  %         TAttLineLine attributes                    ”EI            BASE   @  yÿÿÿÿTStreamerBase @  c @  Y @  *         TAttFillFill area attributes                    ÿÙ*’            BASE   @  xÿÿÿÿTStreamerBase @  b @  X @  )         
TAttMarkerMarker attributes                    )‹ì            BASE   @  {ÿÿÿÿTStreamerBasicType @  ` @  Z @  '         fEntriesNumber of entries                                  Long64_t@  £ÿÿÿÿTStreamerBasicType @  ˆ @  ‚ @  O         	fTotBytes8Total number of bytes in all branches before compression                                  Long64_t@  ¢ÿÿÿÿTStreamerBasicType @  ‡ @  � @  N         	fZipBytes7Total number of bytes in all branches after compression                                  Long64_t@  †ÿÿÿÿTStreamerBasicType @  k @  e @  2         fSavedBytesNumber of autosaved bytes                                  Long64_t@  ‹ÿÿÿÿTStreamerBasicType @  p @  j @  7         fFlushedBytesNumber of auto-flushed bytes                                  Long64_t@  ‰ÿÿÿÿTStreamerBasicType @  n @  h @  7         fWeight"Tree weight (see TTree::SetWeight)                                  double@  ‰ÿÿÿÿTStreamerBasicType @  n @  h @  :         fTimerIntervalTimer interval in milliseconds                                  int@  ŽÿÿÿÿTStreamerBasicType @  s @  m @  ?         
fScanField'Number of runs before prompting in Scan                                  int@  ‚ÿÿÿÿTStreamerBasicType @  g @  a @  3         fUpdateUpdate frequency for EntryLoop                                  int@  ­ÿÿÿÿTStreamerBasicType @  ’ @  Œ @  ^         fDefaultEntryOffsetLen:Initial Length of fEntryOffset table in the basket buffers                                  int@  °ÿÿÿÿTStreamerBasicType @  • @  � @  a         fNClusterRangeENumber of Cluster range in addition to the one defined by 'AutoFlush'                                  int@  ¢ÿÿÿÿTStreamerBasicType @  ‡ @  � @  N         fMaxEntries5Maximum number of entries in case of circular buffers                                  Long64_t@  “ÿÿÿÿTStreamerBasicType @  x @  r @  ?         fMaxEntryLoop$Maximum number of entries to process                                  Long64_t@  �ÿÿÿÿTStreamerBasicType @  ‚ @  | @  I         fMaxVirtualSize,Maximum total size of buffers kept in memory                                  Long64_t@  ÁÿÿÿÿTStreamerBasicType @  ¦ @    @  m         	fAutoSaveVAutosave tree when fAutoSave entries written or -fAutoSave (compressed) bytes produced                                  Long64_t@  ÆÿÿÿÿTStreamerBasicType @  « @  ¥ @  r         
fAutoFlushZAuto-flush tree when fAutoFlush entries written or -fAutoFlush (compressed) bytes produced                                  Long64_t@  ™ÿÿÿÿTStreamerBasicType @  ~ @  x @  E         	fEstimate.Number of entries to estimate histogram limits                                  Long64_t@  ¾ÿÿÿÿTStreamerBasicPointer @    @  � @  M         fClusterRangeEnd/[fNClusterRange] Last entry of a cluster range.   8                               	Long64_t*   fNClusterRangeTTree@  ÐÿÿÿÿTStreamerBasicPointer @  ² @  “ @  _         fClusterSizeE[fNClusterRange] Number of entries in each cluster for a given range.   8                               	Long64_t*   fNClusterRangeTTree@  ³ÿÿÿÿTStreamerObjectAny @  ˜ @  ’ @  V         fIOFeatures=IO features to define for newly-written baskets and branches.   >                               ROOT::TIOFeatures@  yÿÿÿÿTStreamerObject @  a @  [ @  '         	fBranchesList of Branches   =   @                            	TObjArray@  ’ÿÿÿÿTStreamerObject @  z @  t @  @         fLeaves+Direct pointers to individual branch leaves   =   @                            	TObjArray@  §ÿÿÿÿTStreamerObjectPointer @  ˆ @  ‚ @  Q         fAliases;List of aliases for expressions based on the tree branches.   @                               TList*@  €ÿÿÿÿTStreamerObjectAny @  e @  _ @  -         fIndexValuesSorted index values   >                               TArrayD@  }ÿÿÿÿTStreamerObjectAny @  b @  \ @  *         fIndexIndex of sorted values   >                               TArrayI@  ˜ÿÿÿÿTStreamerObjectPointer @  y @  s @  :         
fTreeIndex"Pointer to the tree Index (if any)   @                               TVirtualIndex*@  ŽÿÿÿÿTStreamerObjectPointer @  o @  i @  8         fFriends"pointer to list of friend elements   @                               TList*@  ¦ÿÿÿÿTStreamerObjectPointer @  ‡ @  � @  P         	fUserInfo9pointer to a list of user objects associated to this Tree   @                               TList*@  ›ÿÿÿÿTStreamerObjectPointer @  | @  v @  @         
fBranchRef(Branch supporting the TRefTable (if any)   @                               TBranchRef* ÚTTreeé   c                   @  sD   e Zd ZdZejjjfZdd„ Zedd„ ƒZ	g d¢Z
ddiZd	Zd	S )
ÚModel_TTree_v16zH
    A :doc:`uproot.model.VersionedModel` for ``TTree`` version 16.
    c                 C  sº  t j |¡d urt jj ¡ ‚| jr@tdt| ƒj	› d| j
j› �ƒ‚| j | dd¡j||||| j| j| jd�¡ | j | dd¡j||||| j| j| jd�¡ | j | dd¡j||||| j| j| jd�¡ | j | dd	¡j||||| j| j| jd�¡ | |t|¡\| jd
< | jd< | jd< | jd< | jd< | jd< | jd< | jd< | jd< | jd< | jd< | jd< | jd< | d¡ ||||| j| j¡| jd< | d¡ ||||| j| j¡| jd< t j ||||| j| j¡| jd< |jd �rî| | ¡ nÈ| d¡ ||||| j| j¡| jd< | d¡ ||||| j| j¡| jd< t j ||||| j| j¡| jd < t j ||||| j| j¡| jd!< t j ||||| j| j¡| jd"< t j ||||| j| j¡| jd#< d S )$Númemberwise serialization of ú	
in file ÚTNamedr   ©ÚconcreteÚTAttLineÚTAttFillÚ
TAttMarkeré   ÚfEntriesÚ	fTotBytesÚ	fZipBytesÚfSavedBytesÚfWeightÚfTimerIntervalÚ
fScanFieldÚfUpdateÚfMaxEntriesÚfMaxEntryLoopÚfMaxVirtualSizeÚ	fAutoSaveÚ	fEstimateÚ	TObjArrayÚ	fBranchesÚfLeavesÚfAliasesÚminimal_ttree_metadataÚTArrayDÚfIndexValuesÚTArrayIÚfIndexÚ
fTreeIndexÚfFriendsÚ	fUserInfoÚ
fBranchRef)ÚuprootÚ_awkwardforthÚget_forth_objÚinterpretationÚobjectsÚCannotBeForthÚis_memberwiseÚNotImplementedErrorÚtypeÚ__name__ÚfileÚ	file_pathÚ_basesÚappendÚclass_namedÚreadÚ_fileÚ_parentr   ÚfieldsÚ_ttree16_format1Ú_membersÚdeserializationÚread_object_anyÚoptionsÚ
skip_after©ÚselfÚchunkÚcursorÚcontextr5   © rI   úV/home/yuhw/wc/wire-cell-python/wcpy/lib/python3.9/site-packages/uproot/models/TTree.pyÚread_members0   sÀ    ÿÿùÿùÿùÿùÿò
ÿ

ÿ
ÿ

ÿ

ÿ
ÿ
ÿ
ÿ
ÿzModel_TTree_v16.read_membersc                 C  s,   g d¢}g d¢}| j jd r |S || S d S )N)r   r   r   r   r   r   r   r   r   r   r   r   r   r   r    r!   ©r$   r&   r'   r(   r)   r*   r"   ©r;   rB   ©rE   ZminimalÚextrarI   rI   rJ   Úmember_names“   s
    zModel_TTree_v16.member_names©©r
   r   )r   r   )r   r   ©r   r   Úhas_read_object_anyTN©r4   Ú
__module__Ú__qualname__Ú__doc__r+   Ú	behaviorsr   rK   ÚpropertyrP   Úbase_names_versionsÚclass_flagsÚ
class_coderI   rI   rI   rJ   r   )   s   c
 r   z>qqqqdiiiiqqqqqc                   @  sD   e Zd ZdZejjjfZdd„ Zedd„ ƒZ	g d¢Z
ddiZd	Zd	S )
ÚModel_TTree_v17zH
    A :doc:`uproot.model.VersionedModel` for ``TTree`` version 17.
    c                 C  sÂ  t j |¡d urt jj ¡ ‚| jr@tdt| ƒj	› d| j
j› �ƒ‚| j | dd¡j||||| j| j| jd�¡ | j | dd¡j||||| j| j| jd�¡ | j | dd¡j||||| j| j| jd�¡ | j | dd	¡j||||| j| j| jd�¡ | |t|¡\| jd
< | jd< | jd< | jd< | jd< | jd< | jd< | jd< | jd< | jd< | jd< | jd< | jd< | jd< | d¡ ||||| j| j¡| jd< | d¡ ||||| j| j¡| jd< t j ||||| j| j¡| jd< |jd �rö| | ¡ nÈ| d¡ ||||| j| j¡| jd< | d¡ ||||| j| j¡| jd < t j ||||| j| j¡| jd!< t j ||||| j| j¡| jd"< t j ||||| j| j¡| jd#< t j ||||| j| j¡| jd$< d S )%Nr   r	   r
   r   r   r   r   r   r   r   r   r   r   r   r   r   r   ÚfDefaultEntryOffsetLenr   r   r   r   r   r   r   r    r!   r"   r#   r$   r%   r&   r'   r(   r)   r*   )r+   r,   r-   r.   r/   r0   r1   r2   r3   r4   r5   r6   r7   r8   r9   r:   r;   r<   r   r=   Ú_ttree17_format1r?   r@   rA   rB   rC   rD   rI   rI   rJ   rK   È   sÂ    ÿÿùÿùÿùÿùÿñ
ÿ

ÿ
ÿ

ÿ

ÿ
ÿ
ÿ
ÿ
ÿzModel_TTree_v17.read_membersc                 C  s,   g d¢}g d¢}| j jd r |S || S d S )N)r   r   r   r   r   r   r   r   r_   r   r   r   r   r   r   r    r!   rL   r"   rM   rN   rI   rI   rJ   rP   +  s
    zModel_TTree_v17.member_namesrQ   rT   TNrU   rI   rI   rI   rJ   r^   Á   s   c
!r^   z>qqqqqdiiiiqqqqqqc                   @  sD   e Zd ZdZejjjfZdd„ Zedd„ ƒZ	g d¢Z
ddiZd	Zd	S )
ÚModel_TTree_v18zH
    A :doc:`uproot.model.VersionedModel` for ``TTree`` version 18.
    c                 C  sÒ  t j |¡d urt jj ¡ ‚| jr@tdt| ƒj	› d| j
j› �ƒ‚| j | dd¡j||||| j| j| jd�¡ | j | dd¡j||||| j| j| jd�¡ | j | dd¡j||||| j| j| jd�¡ | j | dd	¡j||||| j| j| jd�¡ | |t|¡\| jd
< | jd< | jd< | jd< | jd< | jd< | jd< | jd< | jd< | jd< | jd< | jd< | jd< | jd< | jd< | jd< | d¡ ||||| j| j¡| jd< | d¡ ||||| j| j¡| jd< t j ||||| j| j¡| jd< |jd �r| | ¡ nÈ| d¡ ||||| j| j¡| jd < | d!¡ ||||| j| j¡| jd"< t j ||||| j| j¡| jd#< t j ||||| j| j¡| jd$< t j ||||| j| j¡| jd%< t j ||||| j| j¡| jd&< d S )'Nr   r	   r
   r   r   r   r   r   r   r   r   r   r   ÚfFlushedBytesr   r   r   r   r_   r   r   r   r   Ú
fAutoFlushr   r   r   r    r!   r"   r#   r$   r%   r&   r'   r(   r)   r*   )r+   r,   r-   r.   r/   r0   r1   r2   r3   r4   r5   r6   r7   r8   r9   r:   r;   r<   r   r=   Ú_ttree18_format1r?   r@   rA   rB   rC   rD   rI   rI   rJ   rK   a  sÆ    ÿÿùÿùÿùÿùÿï
ÿ

ÿ
ÿ

ÿ

ÿ
ÿ
ÿ
ÿ
ÿzModel_TTree_v18.read_membersc                 C  s,   g d¢}g d¢}| j jd r |S || S d S )N)r   r   r   r   rb   r   r   r   r   r_   r   r   r   r   rc   r   r   r    r!   rL   r"   rM   rN   rI   rI   rJ   Úmember_valuesÆ  s
    zModel_TTree_v18.member_valuesrQ   rT   TN)r4   rV   rW   rX   r+   rY   r   rK   rZ   re   r[   r\   r]   rI   rI   rI   rJ   ra   Z  s   e
#ra   z>qqqqqdiiiiIqqqqqqz>i8c                   @  sD   e Zd ZdZejjjfZdd„ Zedd„ ƒZ	g d¢Z
ddiZd	Zd	S )
ÚModel_TTree_v19zH
    A :doc:`uproot.model.VersionedModel` for ``TTree`` version 19.
    c                 C  sJ  t j |¡d urt jj ¡ ‚| jr@tdt| ƒj	› d| j
j› �ƒ‚| j | dd¡j||||| j| j| jd�¡ | j | dd¡j||||| j| j| jd�¡ | j | dd¡j||||| j| j| jd�¡ | j | dd	¡j||||| j| j| jd�¡ | |t|¡\| jd
< | jd< | jd< | jd< | jd< | jd< | jd< | jd< | jd< | jd< | jd< | jd< | jd< | jd< | jd< | jd< | jd< t}| dd¡�rª| d¡ | ||  d¡||¡| jd< t}| dd¡�râ| d¡ | ||  d¡||¡| jd< | d¡ ||||| j| j¡| jd < | d¡ ||||| j| j¡| jd!< t j ||||| j| j¡| jd"< |jd# �r~| | ¡ nÈ| d$¡ ||||| j| j¡| jd%< | d&¡ ||||| j| j¡| jd'< t j ||||| j| j¡| jd(< t j ||||| j| j¡| jd)< t j ||||| j| j¡| jd*< t j ||||| j| j¡| jd+< d S ),Nr   r	   r
   r   r   r   r   r   r   r   r   r   r   rb   r   r   r   r   r_   ÚfNClusterRanger   r   r   r   rc   r   Ú	speedbumpTÚfClusterRangeEndÚfClusterSizer   r   r    r!   r"   r#   r$   r%   r&   r'   r(   r)   r*   ) r+   r,   r-   r.   r/   r0   r1   r2   r3   r4   r5   r6   r7   r8   r9   r:   r;   r<   r   r=   Ú_ttree19_format1r?   Ú_ttree19_dtype1ÚgetÚskipÚarrayÚmemberÚ_ttree19_dtype2r@   rA   rB   rC   ©rE   rF   rG   rH   r5   ÚtmprI   rI   rJ   rK      sà    ÿÿùÿùÿùÿùÿî
ÿ

ÿ

ÿ

ÿ
ÿ

ÿ

ÿ
ÿ
ÿ
ÿ
ÿzModel_TTree_v19.read_membersc                 C  s,   g d¢}g d¢}| j jd r |S || S d S )N)r   r   r   r   rb   r   r   r   r   r_   rg   r   r   r   r   rc   r   ri   rj   r   r    r!   rL   r"   rM   rN   rI   rI   rJ   rP   r  s
    zModel_TTree_v19.member_namesrQ   rT   TNrU   rI   rI   rI   rJ   rf   ù  s   r
&rf   c                   @  s®   e Zd ZdZejjjfZdd„ Zedd„ ƒZ	g d¢Z
ddiZd	ZeejjjeejjjejjjejjjejjjejjjejjjejjjejjjejjjejjjejjjefZ d	S )
ÚModel_TTree_v20zH
    A :doc:`uproot.model.VersionedModel` for ``TTree`` version 20.
    c                 C  sn  t j |¡d urt jj ¡ ‚| jr@tdt| ƒj	› d| j
j› �ƒ‚| j | dd¡j||||| j| j| jd�¡ | j | dd¡j||||| j| j| jd�¡ | j | dd¡j||||| j| j| jd�¡ | j | d	d¡j||||| j| j| jd�¡ | |t|¡\| jd
< | jd< | jd< | jd< | jd< | jd< | jd< | jd< | jd< | jd< | jd< | jd< | jd< | jd< | jd< | jd< | jd< t}| dd¡�rª| d¡ | ||  d¡||¡| jd< t}| dd¡�râ| d¡ | ||  d¡||¡| jd< | d¡ ||||| j| j¡| jd < | d!¡ ||||| j| j¡| jd"< | d!¡ ||||| j| j¡| jd#< t j ||||| j| j¡| jd$< |jd% �r¢| | ¡ nÈ| d&¡ ||||| j| j¡| jd'< | d(¡ ||||| j| j¡| jd)< t j ||||| j| j¡| jd*< t j ||||| j| j¡| jd+< t j ||||| j| j¡| jd,< t j ||||| j| j¡| jd-< d S ).Nr   r	   r
   r   r   r   r   r   r   r   r   r   r   rb   r   r   r   r   r_   rg   r   r   r   r   rc   r   rh   Tri   rj   úROOT::TIOFeaturesÚfIOFeaturesr   r   r    r!   r"   r#   r$   r%   r&   r'   r(   r)   r*   ) r+   r,   r-   r.   r/   r0   r1   r2   r3   r4   r5   r6   r7   r8   r9   r:   r;   r<   r   r=   Ú_ttree20_format1r?   Ú_ttree20_dtype1rm   rn   ro   rp   Ú_ttree20_dtype2r@   rA   rB   rC   rr   rI   rI   rJ   rK   ¯  sæ    ÿÿùÿùÿùÿùÿî
ÿ

ÿ

ÿ

ÿ

ÿ
ÿ

ÿ

ÿ
ÿ
ÿ
ÿ
ÿzModel_TTree_v20.read_membersc                 C  s,   g d¢}g d¢}| j jd r |S || S d S )N)r   r   r   r   rb   r   r   r   r   r_   rg   r   r   r   r   rc   r   ri   rj   rv   r   r    r!   rL   r"   rM   rN   rI   rI   rJ   rP   $  s
    zModel_TTree_v20.member_names)rR   )r   r   )r   r   rS   rT   TN)!r4   rV   rW   rX   r+   rY   r   rK   rZ   rP   r[   r\   r]   Ú_rawstreamer_TRefTable_v3ÚmodelsZTBranchZ_rawstreamer_TBranch_v13Ú_rawstreamer_TBranchRef_v1ZTHZ_rawstreamer_TList_v5Z_rawstreamer_TCollection_v3Z_rawstreamer_TSeqCollection_v0r   Z_rawstreamer_TObjArray_v3Z%_rawstreamer_ROOT_3a3a_TIOFeatures_v1Z_rawstreamer_TAttMarker_v2Z_rawstreamer_TAttFill_v2Z_rawstreamer_TAttLine_v2Z_rawstreamer_TString_v2Z_rawstreamer_TObject_v1Z_rawstreamer_TNamed_v1Ú_rawstreamer_TTree_v20Zclass_rawstreamersrI   rI   rI   rJ   rt   ¨  s0   u
'ñrt   c                   @  s    e Zd ZdZeeeeedœZ	dS )ÚModel_TTreez@
    A :doc:`uproot.model.DispatchByVersion` for ``TTree``.
    )é   é   é   é   r   N)
r4   rV   rW   rX   r   r^   ra   rf   rt   Zknown_versionsrI   rI   rI   rJ   r~   h  s   ûr~   z>Bc                   @  s   e Zd ZdZdd„ ZdS )ÚModel_ROOT_3a3a_TIOFeatureszL
    A versionless :doc:`uproot.model.Model` for ``ROOT::TIOFeatures``.
    c                 C  sb   t j |¡d urt jj ¡ ‚| jr@tdt| ƒj	› d| j
j› �ƒ‚| d¡ | |t|¡| jd< d S )Nr   r	   é   ZfIOBits)r+   r,   r-   r.   r/   r0   r1   r2   r3   r4   r5   r6   rn   ÚfieldÚ_tiofeatures_format1r?   rD   rI   rI   rJ   rK   ~  s    ÿÿ
z(Model_ROOT_3a3a_TIOFeatures.read_membersN)r4   rV   rW   rX   rK   rI   rI   rI   rJ   rƒ   y  s   rƒ   r   ru   z>qc                   @  s,   e Zd ZdZdd„ Zedd„ ƒZg d¢ZdS )ÚModel_TTree_NumEntrieszK
    A helper :doc:`uproot.model.Model` for :doc:`uproot.num_entries`.
    c                 C  s’   t j |¡d urt jj ¡ ‚| jr@tdt| ƒj	› d| j
j› �ƒ‚| ||¡ | ||¡ | ||¡ | ||¡ | |t|¡| jd< | | ¡ d S )Nr   r	   r   )r+   r,   r-   r.   r/   r0   r1   r2   r3   r4   r5   r6   Z	skip_overr=   ÚfEntriesStructr?   rC   rD   rI   rI   rJ   rK   •  s    ÿÿz#Model_TTree_NumEntries.read_membersc                 C  s   dgS )Nr   rI   )rE   rI   rI   rJ   rP   ¤  s    z#Model_TTree_NumEntries.member_namesrQ   N)r4   rV   rW   rX   rK   rZ   rP   r[   rI   rI   rI   rJ   r‡   �  s
   
r‡   c              	   c  sÆ   t jj| dd�}t| tƒr(t|  ¡ ƒ} n(t| tƒsBdd„ | D ƒ} nt j | ¡g} t	|ƒD ]h\}\}}t j
||idtid��6}| | d | | d |jd	 d fV  W d
  ƒ qX1 s¶0    Y  qXd
S )aJ  
    Args:
        paths (str): The filesystem path or remote URL of
            the TTree to find the number of entries in. It must have a file path
            as well as an object path which points to the location of the TTree
            inside the file. If the file names have colons in them, you can also
            pass in a dictionary in the format of { file_path : object_path }.
            Other examples: ``"rel/file.root:ttree"``, ``"C:\abs\file.root:ttree"``,
            ``"http://where/what.root:ttree"``,
            ``"https://username:password@where/secure.root:ttree"``,
            ``"rel/file.root:tdirectory/ttree"``, iterables of the previous examples.

    Returns an iterator over the number of entries over each TTree in the input.
    This is a shortcut method and reads lesser data than normal file opening.
    F)Zsteps_allowedc                 S  s   g | ]}t j |¡‘qS rI   )r+   Ú_utilÚfile_object_path_split)Ú.0ÚpathrI   rI   rJ   Ú
<listcomp>Å  ó    znum_entries.<locals>.<listcomp>r   )Zcustom_classesr   r   r   N)r+   r‰   Zregularize_filesÚ
isinstanceÚdictÚlistÚitemsÚstrrŠ   Ú	enumerateÚopenr‡   Zall_members)ÚpathsZpaths2Úir6   Zobject_pathÚfrI   rI   rJ   Únum_entries°  s    

ÿr™   )(rX   Ú
__future__r   ÚstructÚnumpyr+   Zuproot.behaviors.TTreeZuproot.models.TBranchÚStructr>   r|   rz   r}   rY   r   ÚmodelZVersionedModelr   r`   r^   rd   ra   rk   Zdtyperl   rq   rf   rw   rx   ry   rt   ZDispatchByVersionr~   r†   ZModelrƒ   Úclassesrˆ   r‡   r™   rI   rI   rI   rJ   Ú<module>   sH   
 
 
 


 +


 A



 