GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » EMC » Access to clusters properties (bis)
Access to clusters properties (bis) [message #12626] Tue, 06 September 2011 12:27 Go to previous message
Ronald Kunne is currently offline  Ronald Kunne
Messages: 32
Registered: October 2009
continuous participant
From: *in2p3.fr
How do I get access to Zernicke moments different from Z20, Z53 and LatMom ?

The "obvious" way to do it, using code copied from PndEmcMakeCluster.cxx, seemed to be to add to my macro:

lhe->AddFriend("cbmsim", "digi_emc.root");
TClonesArray* digi_array=new TClonesArray("PndEmcDigi");
lhe->SetBranchAddress("EmcDigi",&digi_array);

...

for (Int_t i=0; i<cluster_array->GetEntriesFast(); i++)
  {
    PndEmcCluster *cl=(PndEmcCluster*)cluster_array->At(i);
    PndEmcXClMoments *xClMoments = new PndEmcXClMoments(*cl, digi_array);
    Double_t Z42=xClMoments->AbsZernikeMoment(4, 2, 15);
    ...
  }


This works perfectly well for accessing for instance
PndEmcClusterEnergySums esum(*cl, digi_array);

But the call to PndEmcXClMoments leads to the error:
gGeoManager does not exist

Thanks in advance for your help.

Ronald Kunne
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: New FwEndCap geometry implemented
Next Topic: update EMC geometry
Goto Forum:
  


Current Time: Mon Oct 21 02:31:24 CEST 2019

Total time taken to generate the page: 0.02934 seconds