Message: where to ge the collection name? EXN07Run.cc Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question where to ge the collection name? EXN07Run.cc 

Forum: Run Management
Date: 04 Nov, 2012
From: Yen-Yung Chang <Yen-Yung Chang>

Hi all! I've been reading EXN07Run.cc for two days and still don't understand this:

  G4SDManager* SDMan = G4SDManager::GetSDMpointer();
  G4String fullName;
  size_t i,j;
  for(i=0;i<6;i++)
  {
    for(j=0;j<6;j++)
    {
      fullName = detName[i]+"/"+primNameSum[j];
      colIDSum[i][j] = SDMan->GetCollectionID(fullName);
    }
    for(j=0;j<3;j++)
    {
      fullName = detName[i]+"/"+primNameMin[j];
      colIDMin[i][j] = SDMan->GetCollectionID(fullName);
    }
  }
  for(i=0;i<3;i++)
  {
    for(j=0;j<6;j++)
    {
      fullName = paraName[i]+"/"+primNameSum[j];
      colIDPara[i][j] = SDMan->GetCollectionID(fullName);
    }
  }

Where can I look up for the exact names of the collections? Is it initiated somewhere manually? or automatically according to some naming rule?

In EXN07DtectorConstruction.cc there'r "G4MultiFunctionalDetector"s initiated as detName[i] with many "G4VPrimitiveScorer"s named primNameXxx[j] regiested. Is this why the collections are (automatically?) called detName[i]/primNameXxx[j]? I know there's methods to change the collection names but, at least I have to have the 1st name so that I may call them and change. My question must be novice, thank you very much for your kind answers!!

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 None: Re: where to ge the collection name? EXN07Run.cc   (Yen-Yung Chang - 04 Nov, 2012)
 Add Message Add Message
to: "where to ge the collection name? EXN07Run.cc"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]