Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add CalorimeterHit::getTime() as 'catim' #3

Merged
merged 1 commit into from
Nov 6, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions include/CalorimeterHitBranches.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ class CalorimeterHitBranches : public CollectionBranches {
float _capoy[ LCT_CALORIMETERHIT_MAX ] ;
float _capoz[ LCT_CALORIMETERHIT_MAX ] ;
float _caene[ LCT_CALORIMETERHIT_MAX ] ;
float _catim[ LCT_CALORIMETERHIT_MAX ] ;

} ;

Expand Down
2 changes: 2 additions & 0 deletions src/CalorimeterHitBranches.cc
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ void CalorimeterHitBranches::initBranches( TTree* tree, const std::string& pre){
tree->Branch( (pre+"capoy").c_str() , _capoy , (pre+"capoy["+pre+"ncah]/F").c_str() ) ;
tree->Branch( (pre+"capoz").c_str() , _capoz , (pre+"capoz["+pre+"ncah]/F").c_str() ) ;
tree->Branch( (pre+"caene").c_str() , _caene , (pre+"caene["+pre+"ncah]/F").c_str() ) ;
tree->Branch( (pre+"catim").c_str() , _catim , (pre+"catim["+pre+"ncah]/F").c_str() ) ;


}
Expand Down Expand Up @@ -64,6 +65,7 @@ void CalorimeterHitBranches::fill(const EVENT::LCCollection* col, EVENT::LCEvent
_capoy[i] = hit->getPosition()[1] ;
_capoz[i] = hit->getPosition()[2] ;
_caene[i] = hit->getEnergy() ;
_catim[i] = hit->getTime() ;

}
}
Expand Down