99 |
void CaloLevel2::Set(){//ELENA |
void CaloLevel2::Set(){//ELENA |
100 |
if(!CaloTrk)CaloTrk = new TClonesArray("CaloTrkVar",1); //ELENA |
if(!CaloTrk)CaloTrk = new TClonesArray("CaloTrkVar",1); //ELENA |
101 |
}//ELENA |
}//ELENA |
102 |
|
//-------------------------------------- |
103 |
|
// |
104 |
|
// |
105 |
|
//-------------------------------------- |
106 |
|
void CaloLevel2::SetTrackArray(TClonesArray *track){//ELENA |
107 |
|
// if(track && strcmp(track->GetClass()->GetName(),"CaloTrkVar")==0){ |
108 |
|
if(track ){ |
109 |
|
if(CaloTrk)CaloTrk->Clear("C"); |
110 |
|
CaloTrk = track; |
111 |
|
} |
112 |
|
} |
113 |
|
|
114 |
/** |
/** |
115 |
* Clear the CaloLevel2 object |
* Clear the CaloLevel2 object |