Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

...

No Format
add(new ClusterAnalysisDriver(clusterlists,hitlists,\[FSParticlelist\],\[plot folder\]));

and a multitude of plots analyzing the clusters will be generated.

...

For the default analysis plots, a particle is considered visible if it contibutes to any hit in the CalorimeterHit collections. A particle is considered "found" if it is the MAX particle for its MAX cluster. (Exception: overlapping photons from the same pi0 are both considered "found") 

ClusterAnalysisDriver

Constructor parameters

Wiki Markup
String\[\] Clusterlist names in event - default none

...

ClusterAnalysis Driver constructor

type

name

description

default

String[]

Clusterlist

names in event

none

String[]

Hit

collection names in event

EcalBarrHits,EcalEndcapHits,HcalBarrHits,HcalEndcapHits

...

String

fsList

...

Final state particle list in event

...

SimFinalStateParticles

Wiki Markup
                                  String Folder name for plots - default Clusterlist\[0\]

   process(Event): procedure

...

String

folder

Folder name for plots

Clusterlist[0]

processEvent

  1. On first event, look for final state particle list. If it is in event, assume it will be in every event. If not, make

...

  1. the list and assume it needs to be created for each event.

...

  1. Create the ClusterAnalysis lists.

...

  1. Analyse the event.

    ...

      • setAnalyzer(ClusterAnalysis class): replace the default analysis package

    CreateClusterAnalysisLists

       Constuctor parameters: no defaults

    Wiki Markup
          String\[\] Clusterlist names in event

          String[] Clusterlist names in event

          String[] Hit collection names in Wiki Markup      String\[\] Hit collection names in event

          String Final state particle list in event

    ...

    void AddCluster(Cluster c)
       Add a cluster this particle contributes to
    void AddUnclusteredHit(SimCalorimeterHit h)
       Add an unclustered hit this particle contributes tounmigrated-wiki-markup

    List<Cluster> getClusters() &nbsp;&nbsp; Return a list of clusters to which this particle contributes double\[\] getEcorrectedContribution() &nbsp;&nbsp; Return an array of corrected energy contributions of this particle to the list of clusters double\[\] getErawContribution() &nbsp;&nbsp; Return an array of raw energy contributions of this particle to the list of
       Return a list of clusters to which this particle contributes
    double[] getEcorrectedContribution()
       Return an array of corrected energy contributions of this particle to the list of clusters
    double[] getErawContribution()
       Return an array of raw energy contributions of this particle to the list of clusters

    Cluster getMaxCluster()
       Return the cluster with the maximum energy contributed by this particle

    ...

    double getMaxEcorrected()
       Return the corrected energy contributed by this particle to the cluster with the maximum energy contributed by this particle
    double getMaxEraw()
       Return the raw energy contributed by this particle to the cluster with the maximum energy contributed by this particle
    int getMaxNHits()
       Return the number of hits contributed by this particle to the cluster with the maximum energy contributed by this particleunmigrated-wiki-markup

    MCParticle getMCParticle() &nbsp;&nbsp; Return the MCParticle for which the cluster information is stored int getNClusters() &nbsp;&nbsp; Return the number of clusters to which this MCParticle contributes int\[\] getNhitContribution() &nbsp;&nbsp; Return an array of number of hits contributed by this particle to the list of clusters double getTotalEcorrected() &nbsp;&nbsp; Return the total corrected energy in the CalorimeterHit collections contributed by this particle double getTotalEraw() &nbsp;&nbsp; Return the total raw energy in the CalorimeterHit collections contributed by this particle int getTotalHits() &nbsp;&nbsp; Return the total number of hits in the CalorimeterHit collections contributed by this
       Return the MCParticle for which the cluster information is stored
    int getNClusters()
       Return the number of clusters to which this MCParticle contributes
    int[] getNhitContribution()
       Return an array of number of hits contributed by this particle to the list of clusters
    double getTotalEcorrected()
       Return the total corrected energy in the CalorimeterHit collections contributed by this particle
    double getTotalEraw()
       Return the total raw energy in the CalorimeterHit collections contributed by this particle
    int getTotalHits()
       Return the total number of hits in the CalorimeterHit collections contributed by this particle

    List<SimCalorimeterHit> getUnclusteredHits()
       Return a list of unclustered hits contributed to by this particle
    boolean isFinalState()
       Return true if the MCParticle for which the cluster information is stored is a final state particle
    void setMaxCMCP(ClusterMCPInfo ci)

    ClusterMCPInfo::
    void FillInfo(Map<MCParticle,MCPClusterInfo> m)
       Fill in the necessary information after the MCPClusterInfo objects are filled.

    Cluster getCluster()

    Wiki MarkupMCParticle\[\] getContributers()
       Return an array of MCParticles contributing to this cluster

    MCParticle[] getFragments()
       Return an array of MCParticles contributing to this cluster having a different maximum &nbsp;&nbsp; Return an array of MCParticles contributing to this cluster Wiki MarkupMCParticle\[\] getFragments() &nbsp;&nbsp; Return an array of MCParticles contributing to this cluster having a different maximum cluster

    MCParticle getMaxContributer()
       Return the MCParticle with the maximum contribution to this cluster
    double getMaxCorrectedEnergy()
       Return the corrected energy from the MCParticle with the maximum contribution to this cluster

    MCPClusterInfo getMaxMCPC()
       Return the MCPClusterInfo block for the maximum contributer
    int getMaxNHits()
       Return the number of hits from the MCParticle with the maximum contribution to this cluster
    double getMaxRawEnergy()
       Return the raw energy from the MCParticle with the maximum contribution to this cluster
    int getNContributers()
       Return the number of MCParticles contributing to this cluster
    int getNFragment()
       Return the number of MCParticles contributing to this cluster having a different maximum cluster
    int getNPrimary()
       Return the number of MCParticles having this cluster as their maximum cluster

    Wiki MarkupMCParticle\[\] getPrimaries() &nbsp;&nbsp; Return an array of MCParticles having this cluster as their maximum
       Return an array of MCParticles having this cluster as their maximum cluster