3   gROOT->Macro(
"$VMCWORKDIR/gconfig/rootlogon.C");
 
    4         gSystem->Load(
"libriemann.C");
 
    7         TH1D* 
h1 = 
new TH1D(
"h1",
"PixError",100,-0.01,0.01);
 
   14         TFile* fMC = 
new TFile(MCFile.Data());
 
   15         TFile* fDigi = 
new TFile(DigiFile.Data());
 
   16         TFile* fReco = 
new TFile(RecoFile.Data());
 
   19         TTree* 
t = (TTree*)(fMC->Get(
"pndsim"));
 
   21         t->AddFriend(
"pndsim", fDigi);
 
   22         t->AddFriend(
"pndsim", fReco);
 
   27         TClonesArray* MCHits = 
new TClonesArray(
"PndSdsMCPoint");
 
   28         TClonesArray* PixDigis = 
new TClonesArray(
"PndSdsDigiPixel");
 
   29         TClonesArray* StripDigis = 
new TClonesArray(
"PndSdsDigiStrip");
 
   30         TClonesArray* PixReco = 
new TClonesArray(
"PndSdsHit");
 
   31         TClonesArray* StripReco = 
new TClonesArray(
"PndSdsHit");
 
   32         TClonesArray* PixCluster = 
new TClonesArray(
"PndSdsClusterPixel");
 
   33         TClonesArray* StripCluster = 
new TClonesArray(
"PndSdsClusterStrip");
 
   36         t->SetBranchAddress(
"MVDPoint", &MCHits);
 
   37         t->SetBranchAddress(
"MVDPixelDigis", &PixDigis);
 
   38         t->SetBranchAddress(
"MVDStripDigis", &StripDigis);
 
   39         t->SetBranchAddress(
"MVDHitsPixel", &PixReco);
 
   40         t->SetBranchAddress(
"MVDHitsStrip", &StripReco);
 
   41         t->SetBranchAddress(
"MVDPixelClusterCand", &PixCluster);
 
   42         t->SetBranchAddress(
"MVDStripClusterCand", &StripCluster);
 
   46         for (
int i = 0; 
i < MCHits->GetEntriesFast(); 
i++){                                                                                     
 
   48                 std::cout << 
"<<<<<<<<<<< MCPoint >>>>>>>>>> " << std::endl;
 
   51                 for (
int j = 0; j < PixDigis->GetEntriesFast(); j++){                                                                   
 
   54                         for (
int ind = 0; ind < myPixDigi->
GetNIndices(); ind++)                                                        
 
   55                                 if (myPixDigi->
GetIndex(ind) == 
i) dig = 
true;
 
   57                                 std::cout << 
"PixDigi: ";                                                                                                               
 
   59                                 for (
int k = 0; k < PixCluster->GetEntriesFast(); k++){                                                 
 
   62                                                 std::cout << 
"Digi " << j << 
" belongs to cluster: " << k << std::endl; 
 
   63                                                 for (
int l = 0; l < PixReco->GetEntriesFast(); l++){                                    
 
   65                                                         if (myPixHit->GetRefIndex() == k){                                                                      
 
   66                                                                 std::cout << 
"PixHit: " << l << std::endl;                                              
 
   75                 for (
int j = 0; j < StripDigis->GetEntriesFast(); j++){
 
   78                         for (
int ind = 0; ind < myStripDigi->
GetNIndices(); ind++)
 
   79                                                         if (myStripDigi->
GetIndex(ind) == 
i) dig = 
true;
 
   81                                 std::cout << 
"StripDigi: "; 
 
   83                                 for (
int k = 0; k < StripCluster->GetEntriesFast(); k++){
 
   86                                                 std::cout << 
"Digi " << j << 
" belongs to cluster: " << k << std::endl;
 
   87                                                 for (
int l = 0; l < StripReco->GetEntriesFast(); l++){
 
   89                                                         if (myStripHit->GetRefIndex() == k){
 
   90                                                                 std::cout << 
"StripHit: " << l << std::endl;
 
std::ostream & Print(std::ostream &out=std::cout) const 
virtual void Print(const Option_t *opt=0) const 
Int_t GetIndex(int i=0) const 
Class for digitised strip hits. 
A simple class which adds the corresponding file extensions to a given base class. 
PndMvdCreateDefaultApvMap * creator
Data class to store the digi output of a pixel module. 
bool DigiBelongsToCluster(Int_t digiIndex)
Int_t GetNIndices() const 
virtual void Print(const Option_t *opt=0) const